BytedTsinghua-SIA/CUDA-Agent
BytedTsinghua-SIA/CUDA-Agent has 1,353 GitHub stars and 137 forks. GitHot measured 0 stars in 24 hours and +4 in 7 days. Last checked 2026-11-09 05:42 UTC. Last push 2026-07-08.
CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation
Measured star growth
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalCUDA-Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation
1. Project Overview
CUDA-Agent is the first known RL-trained model to surpass advanced models such as Claude Opus-4.6 and Gemini 3 Pro on high-performance CUDA kernel generation. It achieves state-of-the-art results on KernelBench, consistently outperforming the torch.compile baseline across difficulty levels, with especially strong gains on the hardest cases. To support the LLM-based CUDA generation community, we have released our training data, expert-designed SKILL.md and agent environment.

2. Dataset Release: CUDA-Agent-Ops-6K
We released the training dataset CUDA-Agent-Ops-6K:
- Dataset URL: BytedTsinghua-SIA/CUDA-Agent-Ops-6K
- Scale: 6,000 training samples
- Construction pipeline:
- Collect reference operators from
torchandtransformers - Use an LLM to compose multiple operators into fused tasks
- Apply rule-based filtering to keep executable, deterministic, and non-trivial samples
- Collect reference operators from
- Filtering criteria:
- Must execute correctly in both eager mode and
torch.compile - Remove stochastic operators and degenerate outputs
- Control runtime range and remove samples highly similar to KernelBench tests to reduce contamination risk
- Must execute correctly in both eager mode and

3. agent_workdir Overview
agent_workdir is a standardized agent workspace example for the full loop:
implement CUDA kernels -> compile -> verify correctness -> profile performance -> iterate.
Key files in this directory:
SKILL.md: workflow constraints and optimization rules for agent executionmodel.py: original PyTorch baseline modelmodel_new.py: optimized model using the custom CUDA extensionbinding.cpp/binding_registry.h: shared Python binding registration infrastructurekernels/: custom CUDA/C++ kernels and their bindingsutils/compile.py+utils/compile.sh: extension build scriptsutils/verification.py: correctness validation scriptutils/profiling.py: performance comparison against baseline andtorch.compile
Common commands (run inside agent_workdir):
bash utils/compile.sh
python3 -m utils.verification
python3 -m utils.profiling

Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,144 starspublic-apis/public-apis
A collective list of free APIs
497,361 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
444,435 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,214 stars