Skip to content

Dataset · GPUMODE

PyTorch code and equivalent Triton kernel pairs

GPUMODE/KernelBook

A curated collection of PyTorch programs and corresponding Triton code for training GPU optimization models.

What's inside

The dataset contains between 10 thousand and 100 thousand records in JSON and parquet formats with English text and tabular data. It consists of pairs of PyTorch programs and equivalent Triton code generated via torch inductor using PyTorch version 2.5.0. The set was compiled by the GPUMODE community.

What you can do with it

  • Train code translation models from PyTorch to Triton
  • Fine-tune code LLMs and LoRA for writing and optimizing GPU kernels
  • Benchmark low-level code generation for PyTorch 2.5.0
Languages
English
Size
10K–100K rows
Downloads this month
731
Likes
63

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("GPUMODE/KernelBook")