akg-data / README.md
kiplingliu's picture
Upload from scripts/upload_datasets.py
80abd36 verified
|
Raw History Blame Contribute Delete
1.87 kB
---
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")
```