PTXBench

Can LLMs master new GPU hardware features at the assembly level? What are the data recipes to improve this capability? Should LLMs program directly in inline PTX, or in a high-level kernel language like Triton?

The Fixit recipe

Fixit fine-tunes Qwen3.6-27B on repairs of its own failed CUDA-PTX kernels.

  1. Input Wrong kernels generated by the StudentQwen3.6-27B with the compiler, correctness and profiler feedback it received
  2. Target, part 1 Teacher's reasoning for fixing the kernelGLM 5.2 from the failure and its feedback to the repair
  3. Target, part 2 Teacher's fixed kernelGemini 3.1 Pro kept only if it passes the correctness check

Each example gives the student the task, its wrong kernel and the feedback, and trains it to write the reasoning followed by the fixed kernel. The fixed kernel comes first in time: once it passes, the reasoning teacher writes the rationale that leads from the failure to it.

Results

GPU
Metric
Instruction qualification
Which instructions count?
Language
Workloads, references and roofline

Training data

Checkpoints and dataset