# GPUMODE/KernelBook

- **ID:** 1173
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/GPUMODE/KernelBook
- **Authors:** GPUMODE
- **Published:** 2025
- **Source:** huggingface
- **Language:** en
- **Access:** Free download; legal friction if training commercial models without reciprocity
- **License:** June 9 Researcher Reciprocity License (other). Training/improving AI services triggers reciprocity clause. Underlying repo licenses still apply.
- **License family:** Other (auto-classified)
- **Topics:** GPU kernel / PyTorch-to-Triton code translation
- **Added:** 2026-09-08
- **Verified:** 2026-09-08
- **Page:** https://papers.projxon.ai/entries/1173

## Summary

Paired pytorch↔triton data to train models that emit KernelBench-like Triton from PyTorch modules

## From the source (fetched 2026-10-03)

- **Repository:** GPUMODE/KernelBook (Hugging Face)
- **Created:** Mar 14, 2025 (Hugging Face)
- **Last updated:** Jun 9, 2026 (Hugging Face)
- **Downloads (last month):** 242 (Hugging Face)
- **Likes:** 57 (Hugging Face)
- **Size:** 10K to 100K rows (Hugging Face)
- **Modalities:** code, text (Hugging Face)
- **Formats:** parquet (Hugging Face)

## Dataset profile

- **Scale:** 18,162 train rows (datasets-server); 12 columns; ~87 MB parquet / ~401 MB memory; Hub size_categories 10K<n<100K
- **Format:** dataset_permissive.parquet / .json on Hub
- **Type:** paired code translation (PyTorch → Triton)
- **License:** June 9 Researcher Reciprocity License (other). Training/improving AI services triggers reciprocity clause. Underlying repo licenses still apply.
- **Cost:** Free download; legal friction if training commercial models without reciprocity
- **Languages:** English metadata; Python (PyTorch) and Triton code
- **Modality:** Text (code)
- **Domain:** GPU kernel / PyTorch-to-Triton code translation
- **Time period:** Stack v1 GitHub PyTorch sources; Inductor w/ PyTorch 2.5.0; software cite 2025-05; Hub 2026-06-09; Discord 1428356240630747206 (2025-10-16)
- **Purpose:** Paired pytorch↔triton data to train models that emit KernelBench-like Triton from PyTorch modules
- **Used for:** Kernel codegen model training; compiler/transpiler research; KernelBench-adjacent eval
- **Authors:** GPU Mode (Paliskara, Saroufim). Code derived from permissive GitHub PyTorch repos via Stack v1 hashes.
- **Bias:** Only modules that compiled + got unit tests; Stack/GitHub popularity skew; permissive-license filter; PyTorch 2.5.0 Inductor idiosyncrasies
- **Text quality:** Executable-oriented pairs with tests; Triton reshaped toward KernelBench. Still synthetic compiler output — may not match hand-written kernels.
- **Sample size:** 18,162 single train split; star/repo metadata uneven
- **Long context:** Sometimes (full module + triton can be long)
- **Intermediate steps:** N/A (code pairs; not natural-language CoT)
- **Idea quality:** High
- **Novelty:** Medium-High (focused Inductor-derived PyTorch-Triton pairs with reciprocity license)
- **Text conversion:** Ready parquet/json via datasets
- **Collection method:** Hub download of dataset_permissive.parquet; use PyTorch 2.5.0 if re-running Triton
- **Static:** Yes (fixed release files; no monthly refresh observed)
- **Processed:** Yes (module extract, tests, Inductor, KernelBench-style transform)

## Links

- Dataset: https://huggingface.co/datasets/GPUMODE/KernelBook
- Related: https://huggingface.co/datasets/GPUMODE/KernelBook
- Related: https://github.com/pytorch-labs/popcorn-kernels
- Related: https://github.com/ScalingIntelligence/KernelBench
- Related: https://huggingface.co/datasets/bigcode/the-stack

## Research notes

- Deep-eval from #data-source-dump mid=1428356240630747206. Distinct from SakanaAI/AI-CUDA-Engineer-Archive. papers_local id follows.

## Related entries

- Related: [The Stack](https://papers.projxon.ai/entries/92) (dataset, #92)
- Related: [KernelBook](https://papers.projxon.ai/entries/105) (dataset, #105)

## Similar entries

- [Hawkeye: Hardware-Aware GPU Kernel Optimization with Minimal Supervision](https://papers.projxon.ai/entries/888) (paper, #888)
- [UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)](https://papers.projxon.ai/entries/1035) (dataset, #1035)
- [Liger Kernel: Efficient Triton Kernels for LLM Training](https://papers.projxon.ai/entries/567) (paper, #567)
- [One Search, Two Layers: Compiler Controls Inside PyTorch Helion Using NVIDIA CompileIQ](https://papers.projxon.ai/entries/1419) (post, #1419)
- [BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?](https://papers.projxon.ai/entries/777) (paper, #777)
- [vime × RL-Kernel × AMD: Bitwise Train–Rollout Consistency on ROCm (RL-Kernel v0.1.0)](https://papers.projxon.ai/entries/1044) (post, #1044)
