← Datasets

Compare

GPUMODE/KernelBook
#1173 · remove
KernelBook
#105 · remove
Kinddatasetdataset
Published20252025
LicenseJune 9 Researcher Reciprocity License (other). Training/improving AI services triggers reciprocity clause. Underlying repo licenses still apply.other
License familyOtherOther
AccessFree download; legal friction if training commercial models without reciprocityfree
Language codesenen
Modalitiescode, texttext
Size10K to 100K rows10K to 100K rows
Downloads (last month)242242
Likes5757
Last updated2026-06-092026-06-09
Formatsparquetparquet
Scale18,162 train rows (datasets-server); 12 columns; ~87 MB parquet / ~401 MB memory; Hub size_categories 10K<n<100KHub datasets-server: 18,162 train rows / 12 columns; size_categories 10K<n<100K. Parquet download_size 87,425,771 bytes (~87.4 MB); uncompressed dataset_size 400,578,833 (~400.6 MB). JSON twin dataset_permissive.json 416.4 MB. Hub usedStorage 604,388,003 bytes (~604.4 MB). Hub 829 downloads / 57 likes at check.
Formatdataset_permissive.parquet / .json on Hubparquet (dataset_permissive.parquet) and JSON (dataset_permissive.json). Columns: entry_point, original_triton_code, python_code, triton_code, repo_name, module_name, synthetic, uuid, licenses, stars, sha, repo_link.
Typepaired code translation (PyTorch → Triton)Paired code corpus / PyTorch→Triton kernel translation
CostFree download; legal friction if training commercial models without reciprocityFree
LanguagesEnglish metadata; Python (PyTorch) and Triton codeEnglish 100% (card language:en) plus Python/Triton source. Comments inherit GitHub-repo language mix; not quantified. No LID table.
ModalityText (code)Text-only (Python + Triton source). No PTX/cubin binaries in the schema.
DomainGPU kernel / PyTorch-to-Triton code translationGPU kernels; PyTorch nn.Module to Triton translation; compiler-generated kernels; KernelBench-style code
Time periodStack v1 GitHub PyTorch sources; Inductor w/ PyTorch 2.5.0; software cite 2025-05; Hub 2026-06-09; Discord 1428356240630747206 (2025-10-16)HF createdAt 2025-03-14; lastModified 2026-06-09 (Researcher Reciprocity license v1.0 dated 2026-06-09). Citation month May 2025. Triton generated with PyTorch 2.5.0 inductor. Source repos/hashes from The Stack v1 GitHub snapshot, not a live crawl.
PurposePaired pytorch↔triton data to train models that emit KernelBench-like Triton from PyTorch modulesTrain models to translate PyTorch modules into equivalent Triton kernels
Used forKernel codegen model training; compiler/transpiler research; KernelBench-adjacent evalGPU Mode / popcorn-kernels research and KernelBench-format kernel generation. Hub 829 downloads / 57 likes at check. Discord posted the HF URL. Sibling GPUMODE/pytorch_scrape_inductor_data is gated=manual — skipped; this is the public permissive slice.
AuthorsGPU Mode (Paliskara, Saroufim). Code derived from permissive GitHub PyTorch repos via Stack v1 hashes.Public GitHub authors on permissively licensed PyTorch repos (MIT/Apache-2.0/BSD/MPL/Unlicense/zlib listed). Curated by Sahan Paliskara and Mark Saroufim (GPU Mode). Triton is TorchInductor output, not human-written kernels. `synthetic` bool column marks some rows.
BiasOnly modules that compiled + got unit tests; Stack/GitHub popularity skew; permissive-license filter; PyTorch 2.5.0 Inductor idiosyncrasiesStack v1 GitHub PyTorch modules that compiled and unit-tested, not general CUDA/Triton. Permissive-license subset only. Popular/starred repos overweighted (`stars` column). Inductor/PyTorch 2.5.0 kernel style, not hand-tuned kernels. KernelBench format transform. Parent bigcode/the-stack remains gated — this derived slice is public.
Text qualityExecutable-oriented pairs with tests; Triton reshaped toward KernelBench. Still synthetic compiler output — may not match hand-written kernels.Extracted torch.nn modules with generated unit tests; modules that could not be tested were dropped. Triton from torch.compile then rewritten toward KernelBench format. Residual compiler boilerplate and version-locked kernels (card: use PyTorch 2.5.0 to run). Not independently re-executed here.
Sample size18,162 single train split; star/repo metadata unevenSingle default train 18,162. No official val/test or language configs. JSON and parquet are the same permissive set. Gated siblings (pytorch_scrape_inductor_data, synthetic_data) are not this file.
Long contextSometimes (full module + triton can be long)No (single-module Python/Triton pairs; not full-repo context).
Intermediate stepsN/A (code pairs; not natural-language CoT)Yes (Stack v1 repo+hash collection; nn.Module extraction; unit-test generation; torch.compile Triton; KernelBench-style rewrite; license/star/SHA metadata). Scripts: github.com/pytorch-labs/popcorn-kernels/tree/main/github_pytorch_index.
Idea qualityHighHigh
NoveltyMedium-High (focused Inductor-derived PyTorch-Triton pairs with reciprocity license)High (public paired PyTorch/Triton kernel dump in KernelBench format)
Text conversionReady parquet/json via datasetsReady parquet; load_dataset('GPUMODE/KernelBook') or pandas.read_parquet. ~87.4 MB parquet / ~416 MB JSON.
Collection methodHub download of dataset_permissive.parquet; use PyTorch 2.5.0 if re-running TritonDownload
StaticYes (fixed release files; no monthly refresh observed)Unknown (HF lastModified 2026-06-09 is a license refresh; code snapshot is one-shot Stack v1 / PyTorch 2.5.0)
ProcessedYes (module extract, tests, Inductor, KernelBench-style transform)Unknown
SummaryPaired pytorch↔triton data to train models that emit KernelBench-like Triton from PyTorch modules`dataset_permissive{.json/.parquet}` is a curated collection of pairs of pytorch programs and equivalent triton code (generated by torch inductor) which can be used to train models to translate pytorch code to triton code.