File size: 2,747 Bytes
3e697eb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
decfeca
 
3e697eb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
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`](https://github.com/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`](https://github.com/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

- **Upstream source**: [ScalingIntelligence/KernelBench](https://github.com/ScalingIntelligence/KernelBench) (Level-1 problems, MIT license).
- **Dataset & traces license**: Apache-2.0.