File size: 1,874 Bytes
80abd36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
pretty_name: Agentic kernel generation, preprocessed Dr. Kernel data
tags: [triton, gpu-kernels, kernelbench, code]
configs:
- config_name: coldstart_sft
  data_files: [{split: train, path: data/coldstart_sft.parquet}]
- config_name: rl_pool
  data_files: [{split: train, path: data/rl_pool.parquet}]
- config_name: test
  data_files: [{split: test, path: data/test.parquet}]
---
# Preprocessed Dr. Kernel data

The data used to train and evaluate small Triton kernel-optimization students, built by `scripts/preprocess.py` of
[agentic-kernel-generation-distiled](https://github.com/arianbeh/agentic-kernel-generation-distiled) from
[hkust-nlp/drkernel-coldstart-8k](https://huggingface.co/datasets/hkust-nlp/drkernel-coldstart-8k), [hkust-nlp/drkernel-rl-data](https://huggingface.co/datasets/hkust-nlp/drkernel-rl-data), [hkust-nlp/drkernel-validation-data](https://huggingface.co/datasets/hkust-nlp/drkernel-validation-data) (MIT).

| Config | Rows | What |
|---|---|---|
| `test` | 100 | The 100 KernelBench Level 2 tasks of `drkernel-validation-data`, in Dr. Kernel's prompt format |
| `coldstart_sft` | 8918 | Multi-turn SFT trajectories from `drkernel-coldstart-8k`, with feedback turns |
| `rl_pool` | 71972 | RL prompts from `drkernel-rl-data` |

`coldstart_sft` and `rl_pool` are decontaminated against `test`: rows whose code has 5-gram Jaccard similarity
>= 0.8 to any test task are dropped (`test_similarity`, `test_nearest` give each kept row's closest task). Added
columns: `has_gemm`, `has_softmax`, `has_rmsnorm` (operator tags from regexes over the PyTorch code); in
`coldstart_sft` also `any_correct` (some turn's feedback reports a correct kernel) and `num_tokens` (Qwen3 tokenizer,
thinking-off chat template).

```python
from datasets import load_dataset
sft = load_dataset("kiplingliu/akg-data", "coldstart_sft", split = "train")
```