K1ta141k's picture
Add teacher trace provenance (Gemini 4 Neon)
decfeca verified
|
Raw History Blame Contribute Delete
2.75 kB
metadata
license: apache-2.0
task_categories:
  - text-generation
language:
  - en
tags:
  - triton
  - cuda
  - gpu-kernels
  - kernelbench
  - rlvr
  - post-training
configs:
  - config_name: problems
    data_files:
      - split: train
        path: train_problems.jsonl
  - config_name: teacher_traces
    data_files:
      - split: train
        path: teacher_traces_v2_clean.jsonl

kernel-train-problems

Training problems and Verifier-v2-verified Triton teacher traces for alithekazakh/kernel-pipeline.

Contents

  • problems/*.py & train_problems.jsonl: 140 training problems derived from the KernelBench Level-1 split (80 base PyTorch ops across matmul, activation, normalization, reduction_scan, pooling, convolution, and loss_attention + 60 dtype/shape variants such as __fp16, __bf16, __shape_wide, __shape_tall, __shape_nonpow2).
  • teacher_traces_v2_clean.jsonl: 140 clean Triton teacher traces covering all 140 training problems (80/80 base ops).
  • manifest_train.json: Train-only problem manifest (140 train / 0 eval).

How Traces Were Generated and Verified

Teacher traces were generated by Gemini 4 Neon and kept only if they passed verifier v2 end to end: 140/140 PASS, 0 dead-kernel fallbacks.

Every teacher kernel in teacher_traces_v2_clean.jsonl was authored cleanly as a @triton.jit kernel wrapped in ModelNew(nn.Module) (matching the reference PyTorch Model signature and parameters) and verified end to end on GPU using verifier.py v2 from alithekazakh/kernel-pipeline:

  • Static + runtime genuine-launch check: wraps triton.runtime.jit.JITFunction.run at runtime to verify that candidate-defined Triton kernels actually launch during ModelNew.forward() (0/140 dead-kernel PyTorch fallbacks).
  • Candidate-before-reference trial execution: eliminates stale output-buffer reuse exploits.
  • Full-device all-stream CUDA synchronization: prevents asynchronous side-stream timing cheats.
  • 140 / 140 traces PASS under Verifier v2 (status == "PASS" and triton_launched == True).

Held-Out Eval Set Policy (Important)

The 20-problem held-out evaluation split (strictly disjoint from these 140 training problems by upstream KernelBench source_kb_id) is deliberately withheld from this public dataset and from the public GitHub repository so that benchmark measurements stay honest and uncontaminated.

Source & License