CUDA Agent uses agentic RL to generate GPU kernels that beat torch.compile
marktechpost.com

CUDA Agent uses agentic RL to generate GPU kernels that beat torch.compile

Tech News
1 min read

Published by AINave Editorial • Reviewed by Ramit

TL;DRByteDance Seed and Tsinghua AIR released CUDA Agent, an agentic RL system that trains an LLM to generate CUDA kernels achieving 98.8% pass rate and 2.11x speedup over torch.compile on KernelBench. The trained model is not released, but the dataset and training recipes are public.

ByteDance Seed and Tsinghua AIR have released CUDA Agent, an agentic reinforcement learning system that trains a large language model to write GPU kernels that outperform traditional compilers. On the KernelBench benchmark, CUDA Agent achieves a 98.8% pass rate and a 2.11x geometric-mean speedup over torch.compile, closing a gap where frontier models produce correct but slow CUDA code. The system uses a permission-locked sandbox with profiling and correctness checks, trained with PPO for 150 steps. Public artifacts include the CUDA-Agent-Ops-6K dataset and training recipes, but the trained weights are not released.

How CUDA Agent trains LLMs to beat torch.compile

The baseline model, Seed1.6, is a 23B active / 230B total parameter MoE that passes 74% of KernelBench tasks but is slower than torch.compile on most of them, with a 0.69x geometric-mean speedup. CUDA Agent inserts the model into a real CUDA development environment with tools like Bash, Read/Write, and Edit, and trains it using PPO with a discrete reward signal. The reward is -1 for correctness failure

Sources

Latest Tech News