{
  "id": 105,
  "kind": "dataset",
  "title": "KernelBook",
  "summary": "`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.",
  "body": "",
  "notes": "downloads=378; likes=56 | Discord posted this HF pointer (message 1428356240630747206). gated=false; public; CuratorBote listed dataset_permissive.parquet and .json. Parent bigcode/the-stack remains gated and was skipped; this permissive inductor slice is the public dump. Do not catalog gated GPUMODE/pytorch_scrape_inductor_data. Cite Paliskara and Saroufim 2025 KernelBook. Not in papers_local.csv.",
  "url": "https://huggingface.co/datasets/GPUMODE/KernelBook",
  "links": [
    {
      "url": "https://huggingface.co/datasets/GPUMODE/KernelBook",
      "label": "Dataset"
    },
    {
      "url": "https://huggingface.co/datasets/GPUMODE/KernelBook",
      "label": "Related"
    },
    {
      "url": "https://github.com/pytorch-labs/popcorn-kernels",
      "label": "Related"
    },
    {
      "url": "https://github.com/ScalingIntelligence/KernelBench",
      "label": "Related"
    },
    {
      "url": "https://huggingface.co/datasets/bigcode/the-stack",
      "label": "Related"
    }
  ],
  "authors": [
    "GPUMODE"
  ],
  "tags": [],
  "topics": "",
  "venue": "GPUMODE",
  "publisher": "",
  "source": "huggingface",
  "language": "en",
  "access": "free",
  "license": "other",
  "published_year": 2025,
  "added_at": "2026-07-17T19:58:29.818Z",
  "verified_at": "2026-07-17T19:58:29.818Z",
  "attrs": {
    "hf": {
      "kind": "dataset",
      "name": "KernelBook",
      "namespace": "GPUMODE"
    },
    "scale": "10K<n<100K",
    "dataset": {
      "cost": "Free",
      "type": "Paired code corpus / PyTorch→Triton kernel translation",
      "scale": "Hub 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.",
      "domain": "GPU kernels; PyTorch nn.Module to Triton translation; compiler-generated kernels; KernelBench-style code",
      "format": "parquet (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.",
      "license": "June 9 Researcher Reciprocity License v1.0 (card license:other). Broad reuse with attribution; Training Use of covered AI models requires reciprocal generation access (\"If you train on it, you let us generate.\"). Upstream per-repo licenses in `licenses` still apply. Not a standard OSI license.",
      "novelty": "High (public paired PyTorch/Triton kernel dump in KernelBench format)",
      "purpose": "Train models to translate PyTorch modules into equivalent Triton kernels",
      "used_for": "GPU 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.",
      "bias_dist": "Stack 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.",
      "is_static": "Unknown (HF lastModified 2026-06-09 is a license refresh; code snapshot is one-shot Stack v1 / PyTorch 2.5.0)",
      "processed": "Unknown",
      "author_dist": "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.",
      "sample_size": "Single 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.",
      "time_period": "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.",
      "idea_quality": "High",
      "long_context": "No (single-module Python/Triton pairs; not full-repo context).",
      "text_quality": "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.",
      "language_dist": "English 100% (card language:en) plus Python/Triton source. Comments inherit GitHub-repo language mix; not quantified. No LID table.",
      "modality_dist": "Text-only (Python + Triton source). No PTX/cubin binaries in the schema.",
      "relevant_links": "https://huggingface.co/datasets/GPUMODE/KernelBook; https://github.com/pytorch-labs/popcorn-kernels; https://github.com/ScalingIntelligence/KernelBench; https://huggingface.co/datasets/bigcode/the-stack",
      "dataset_location": "https://huggingface.co/datasets/GPUMODE/KernelBook",
      "collection_method": "Download",
      "intermediate_steps": "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.",
      "text_conversion_ease": "Ready parquet; load_dataset('GPUMODE/KernelBook') or pandas.read_parquet. ~87.4 MB parquet / ~416 MB JSON."
    },
    "author_type": "unknown",
    "time_period": "created 2025-03-14; updated 2026-06-09"
  },
  "enrichment": {
    "hf": {
      "id": "GPUMODE/KernelBook",
      "size": "10K<n<100K",
      "type": "dataset",
      "gated": false,
      "likes": 57,
      "author": "GPUMODE",
      "created": "2025-03-14",
      "formats": [
        "parquet"
      ],
      "license": "other",
      "modified": "2026-06-09",
      "downloads": 242,
      "languages": [
        "en"
      ],
      "fetched_at": "2026-10-03T14:33:17.334Z",
      "modalities": [
        "tabular",
        "text"
      ]
    }
  },
  "enriched_at": "2026-10-03T14:33:17.378Z",
  "license_class": "other",
  "langs": [
    "en"
  ],
  "modalities": [
    "text"
  ],
  "size_class": "10K<n<100K",
  "provenance": {
    "legacy_paper_id": "107",
    "pipeline_status": "done",
    "research_status": "done",
    "legacy_dataset_id": 154
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:33:17.378Z",
  "page": "https://papers.projxon.ai/entries/105",
  "markdown": "https://papers.projxon.ai/entries/105.md",
  "api": "https://papers.projxon.ai/api/entries/105",
  "relations": [
    {
      "relation": "related",
      "direction": "out",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 92,
        "kind": "dataset",
        "title": "The Stack",
        "summary": "The Stack is a collection of over 6TB of permissively-licensed source code files covering 358 programming languages, created as part of the BigCode Project (an open scientific collaboration for responsible Code LLM development). It serves as a pretraining dataset for code-generating LLMs and provides per-file provenance metadata (repository name, licenses, stars/forks/issues counts, git hashes) to support attribution and license compliance. The dataset has an opt-out mechanism and is regularly updated to enact validated data-removal requests.",
        "url": "https://huggingface.co/datasets/bigcode/the-stack",
        "authors": [
          "BigCode Project"
        ],
        "tags": [],
        "venue": "Hugging Face / BigCode",
        "source": "huggingface",
        "license": "Various permissive open-source licenses (193 in v1.1); each file's original license must be respected; opt-out supported",
        "published_year": 2022,
        "added_at": "2026-07-17T20:18:03.654Z",
        "has_dataset_profile": true,
        "license_class": "permissive",
        "langs": [
          "code"
        ],
        "modalities": [
          "code",
          "text"
        ],
        "size_class": "100M<n<1B",
        "citation_count": null,
        "downloads": 9409,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/92",
        "markdown": "https://papers.projxon.ai/entries/92.md",
        "api": "https://papers.projxon.ai/api/entries/92"
      }
    },
    {
      "relation": "related",
      "direction": "in",
      "note": "shared link",
      "via": "shared-link",
      "entry": {
        "id": 1173,
        "kind": "dataset",
        "title": "GPUMODE/KernelBook",
        "summary": "Paired pytorch↔triton data to train models that emit KernelBench-like Triton from PyTorch modules",
        "url": "https://huggingface.co/datasets/GPUMODE/KernelBook",
        "authors": [
          "GPUMODE"
        ],
        "tags": [],
        "venue": "",
        "source": "huggingface",
        "license": "June 9 Researcher Reciprocity License (other). Training/improving AI services triggers reciprocity clause. Underlying repo licenses still apply.",
        "published_year": 2025,
        "added_at": "2026-09-08T16:29:42.000Z",
        "has_dataset_profile": true,
        "license_class": "other",
        "langs": [
          "en"
        ],
        "modalities": [
          "code",
          "text"
        ],
        "size_class": "10K<n<100K",
        "citation_count": null,
        "downloads": 242,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/1173",
        "markdown": "https://papers.projxon.ai/entries/1173.md",
        "api": "https://papers.projxon.ai/api/entries/1173"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 324,
      "kind": "dataset",
      "title": "High-Coder-Reasoning-Multi-Turn",
      "summary": "High-Coder-Reasoning-Multi-Turn is a synthetic dataset of 26.9k multi-turn coding conversations generated using the openrouter/hunter-alpha model. Each sample includes code in various programming languages with transformations (translate, fix, critique+analyze), provenance metadata, quality signals, and deduplication hashes. The dataset covers code review, translation between languages, and bug-fixing tasks with detailed reasoning traces.",
      "url": "https://huggingface.co/datasets/Crownelius/High-Coder-Reasoning-Multi-Turn",
      "authors": [
        "Crownelius"
      ],
      "tags": [],
      "venue": "Crownelius (individual)",
      "source": "huggingface",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-07-17T20:18:03.799Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "code",
        "go"
      ],
      "modalities": [
        "text"
      ],
      "size_class": "10K<n<100K",
      "citation_count": null,
      "downloads": 642,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/324",
      "markdown": "https://papers.projxon.ai/entries/324.md",
      "api": "https://papers.projxon.ai/api/entries/324"
    },
    {
      "id": 1419,
      "kind": "post",
      "title": "One Search, Two Layers: Compiler Controls Inside PyTorch Helion Using NVIDIA CompileIQ",
      "summary": "Helion is PyTorch's Python-embedded DSL for GPU kernels (released 2025): write PyTorch with hl.tile, the autotuner explores thousands of Triton configs (block sizes, loop orders, num_warps, num_stages, indexing, pid_type, reduction_loops), lowering through TorchInductor → Triton → PTX → ptxas → SASS. The post's argument: every kernel autotuner (Helion, Triton, torch.compile) searches the same space — \"what work each thread block does\" — while a second space sits below it: how that work becomes machine assembly via ptxas (NVIDIA's PTX assembler), i.e. register allocation policy, fine-grained instruction scheduling, code-gen heuristics, exposed as tunable \"advanced controls\" since CUDA 13.3 and left at defaults by everything shipping today. Helion's new autotune_search_acf hands a list of Advanced Control Files (ACFs — binary, portable, versionable compile-time artifacts) to Helion's own autotuner as just another search dimension; the empty string (compiler defaults) is auto-appended so the default is always a candidate — worst case you get back the kernel you had. The substantive argument for joint search: sequential tuning finds a local optimum because the spaces are coupled through hardware — block size/stage count determine register pressure, and register allocation decides whether that pressure causes spills; a control set that would shine at block_sizes=[64,64] is never evaluated there if the kernel config was frozen first under default controls. ACFs are produced by NVIDIA's CompileIQ, which treats compiler-control selection as hyperparameter optimization (evolutionary search: propose population, compile each, correctness-check vs reference, time survivors, breed winners); pip install compileiq. Pre-tuned \"Booster Packs\" are published on CompileIQ's GitHub releases — the helion-booster-pack holds 24 ACFs tuned across Helion kernels, validated against ptxas from CUDA 13.4, targeting B200 — so the realistic workflow is download the pack, point autotune_search_acf at it, autotune once, pin the winner. Case study (all vendor/first-party, GB200 sm_100 Blackwell, ptxas 13.3.73 / CUDA 13.3, CompileIQ 1.0.3, Triton 3.8.0, locked clocks, correctness vs PyTorch reference, Welch's t-test p<0.05 + Cohen's d>0.2 on every claim): nvfp4_gemv_fp4in_kernel, a W4A4 NVFP4 decode GEMV (N=8192, K=28672 down_proj) that already ships a checked-in Helion AOT config — i.e. the baseline was already swept, so headroom is real. Runtime objective: 0.0971 → 0.0928 ms = 1.047× (4.7%), confirmed in two independent runs (d≈2.5). Occupancy objective (ncu metric): +0.16pp achieved occupancy → ~1.75–2.0% runtime win. Multi-objective (runtime + L1TEX throughput): 6.9% runtime speedup + 4.5pp L1TEX gain (81.51%→85.96%), one Pareto-dominant point, nothing traded off. Joint ACF across two shapes (down_proj + N=15360,K=5120): one ACF beats baseline on both (1.05× d=67.71, 1.01× d=4.54). Stated expectations: 2–7% on already-highly-optimized kernels (meaningful for decode-step kernels running fleet-wide), double digits on less-optimized ones. Caveats (authors' own): ACFs are hardware- and toolkit-specific (sm_90 ACF invalid on sm_100 — can produce incorrect results, not just slower code; correctness check in the search loop is not optional); search time is nontrivial — run offline on kernels that matter, then pin; gains are workload-specific (\"the only number that matters for your kernel is the one you measure on your kernel\"). Links: github.com/pytorch/helion, helionlang.com, helion examples/acfs, pretuned_kernels; github.com/NVIDIA/CompileIQ, nvidia.github.io/CompileIQ, NVIDIA's CompileIQ blog post.",
      "url": "https://pytorch.org/blog/one-search-two-layers-compiler-controls-inside-pytorch-helion-using-nvidia-compileiq/",
      "authors": [
        "PyTorch team",
        "with NVIDIA (published on the official PyTorch blog 2026-10-19",
        "individual author byline not shown on the page)"
      ],
      "tags": [],
      "venue": "PyTorch blog",
      "source": "blog",
      "license": "",
      "published_year": null,
      "added_at": "2026-10-19T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1419",
      "markdown": "https://papers.projxon.ai/entries/1419.md",
      "api": "https://papers.projxon.ai/api/entries/1419"
    },
    {
      "id": 239,
      "kind": "dataset",
      "title": "CUDA-Agent-Ops-6K",
      "summary": "CUDA-Agent-Ops-6K is a curated training dataset for CUDA kernel generation and optimization.",
      "url": "https://huggingface.co/datasets/BytedTsinghua-SIA/CUDA-Agent-Ops-6K",
      "authors": [
        "BytedTsinghua-SIA"
      ],
      "tags": [],
      "venue": "BytedTsinghua-SIA",
      "source": "huggingface",
      "license": "cc-by-4.0",
      "published_year": 2026,
      "added_at": "2026-07-17T20:00:44.693Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "text"
      ],
      "size_class": "1K<n<10K",
      "citation_count": null,
      "downloads": 325,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/239",
      "markdown": "https://papers.projxon.ai/entries/239.md",
      "api": "https://papers.projxon.ai/api/entries/239"
    },
    {
      "id": 207,
      "kind": "dataset",
      "title": "RLVR_Coding_Problems",
      "summary": "This dataset is directly taken from DeepCoder x Agentica's release: https://huggingface.co/datasets/agentica-org/DeepCoder-Preview-Dataset. It is slightly reformatted to fit our use cases.",
      "url": "https://huggingface.co/datasets/NousResearch/RLVR_Coding_Problems",
      "authors": [
        "NousResearch"
      ],
      "tags": [
        "hf-dataset"
      ],
      "venue": "NousResearch",
      "source": "huggingface",
      "license": "apache-2.0",
      "published_year": 2025,
      "added_at": "2026-07-17T20:00:22.035Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [],
      "modalities": [
        "text"
      ],
      "size_class": null,
      "citation_count": null,
      "downloads": 157,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/207",
      "markdown": "https://papers.projxon.ai/entries/207.md",
      "api": "https://papers.projxon.ai/api/entries/207"
    }
  ]
}
