ByteDance-Seed/cudaLLM-8B

Model

CudaLLM: A Language Model for High-Performance CUDA Kernel Generation

29

4 commits

1 linked in READMEs

updated Aug 3, 2025

See the code

README

CudaLLM: A Language Model for High-Performance CUDA Kernel Generation

Model Description

cudaLLM-8B is a language model for generating high-performance and syntactically correct CUDA kernels. It is based on the Qwen3-8B model and has undergone a two-stage training process to master the complexities of parallel programming for GPUs.

Performance on KernelBench:

Bo1Bo2Bo4Bo8Bo16
Level-179.7583848687
Level-267.3070717273
Level-320.8326303436

Training Procedure

The model was trained using the verl library. The model was trained and evaluated on:

  • SFT Dataset: A high-quality dataset of CUDA problem-solution pairs (sft_cuda_llm_r1.parquet), originally generated by DeepSeek R1, DeepSeel Coder-7B, and Qwen2-32B.
  • RL Dataset: A refined dataset (rl_cuda_llm_0424.parquet) used to provide performance-based rewards during the RL stage.
  • Evaluation Dataset: The model's performance was benchmarked against the KernelBench dataset.

Intended Use and Limitations

Intended Use

The primary use of CudaLLM is to assist developers in writing and optimizing high-performance CUDA kernels. It can be used for:

  • Accelerating scientific computing and machine learning workloads.
  • As a co-pilot or productivity tool for HPC and CUDA developers.
  • Research into AI-driven code generation and optimization.

Limitations and Bias

  • Correctness is Not Guaranteed: While trained to produce correct code, the model's output should always be rigorously tested and verified before deployment in production systems.
  • Security Risks: The generated code is not guaranteed to be secure. Never run model-generated code from an untrusted source without careful inspection.
  • Performance Variability: Kernel performance can vary significantly depending on the target GPU architecture, input data sizes, and compiler version. The generated code may require further manual tuning.
  • Specialized Domain: This model is highly specialized for CUDA code generation. Its performance on general-purpose programming tasks or natural language conversation will be limited.
code
conversational
CUDA
qwen3
safetensors
text-generation

Contributors

preminstrel

4 commits

ByteDance-Seed/cudaLLM-8B

Model

CudaLLM: A Language Model for High-Performance CUDA Kernel Generation

29

4 commits

1 linked in READMEs

updated Aug 3, 2025

See the code

README

CudaLLM: A Language Model for High-Performance CUDA Kernel Generation

Model Description

cudaLLM-8B is a language model for generating high-performance and syntactically correct CUDA kernels. It is based on the Qwen3-8B model and has undergone a two-stage training process to master the complexities of parallel programming for GPUs.

Performance on KernelBench:

Bo1Bo2Bo4Bo8Bo16
Level-179.7583848687
Level-267.3070717273
Level-320.8326303436

Training Procedure

The model was trained using the verl library. The model was trained and evaluated on:

  • SFT Dataset: A high-quality dataset of CUDA problem-solution pairs (sft_cuda_llm_r1.parquet), originally generated by DeepSeek R1, DeepSeel Coder-7B, and Qwen2-32B.
  • RL Dataset: A refined dataset (rl_cuda_llm_0424.parquet) used to provide performance-based rewards during the RL stage.
  • Evaluation Dataset: The model's performance was benchmarked against the KernelBench dataset.

Intended Use and Limitations

Intended Use

The primary use of CudaLLM is to assist developers in writing and optimizing high-performance CUDA kernels. It can be used for:

  • Accelerating scientific computing and machine learning workloads.
  • As a co-pilot or productivity tool for HPC and CUDA developers.
  • Research into AI-driven code generation and optimization.

Limitations and Bias

  • Correctness is Not Guaranteed: While trained to produce correct code, the model's output should always be rigorously tested and verified before deployment in production systems.
  • Security Risks: The generated code is not guaranteed to be secure. Never run model-generated code from an untrusted source without careful inspection.
  • Performance Variability: Kernel performance can vary significantly depending on the target GPU architecture, input data sizes, and compiler version. The generated code may require further manual tuning.
  • Specialized Domain: This model is highly specialized for CUDA code generation. Its performance on general-purpose programming tasks or natural language conversation will be limited.
code
conversational
CUDA
qwen3
safetensors
text-generation

Contributors

preminstrel

4 commits