← Datasets

Compare

The Stack v2
#1179 · remove
GPUMODE/KernelBook
#1173 · remove
Kinddatasetdataset
Published20242025
Licenseother / per-file SPDX; ToU requires original license compliance + SWH LLM principlesJune 9 Researcher Reciprocity License (other). Training/improving AI services triggers reciprocity clause. Underlying repo licenses still apply.
License familyOtherOther
AccessFree metadata after gate; bulk content agreement requiredFree download; legal friction if training commercial models without reciprocity
Language codescodeen
Modalitiescode, textcode, text
Size—10K to 100K rows
Downloads (last month)6,031242
Likes63857
Last updated2026-08-032026-06-09
Taskstext-generation—
Formats—parquet
ScaleFull 67.5TB / >3B files / 104.2M repos; dedup 32.1TB; train-full ~900B tokens. Hub metadata usedStorage ~427 GB. size_categories unknown.18,162 train rows (datasets-server); 12 columns; ~87 MB parquet / ~401 MB memory; Hub size_categories 10K<n<100K
FormatParquet metadata per language config (600+); contents fetched via blob_id from s3://softwareheritage/content/dataset_permissive.parquet / .json on Hub
TypeCode corpus / SWHID + metadata (contents on SWH S3)paired code translation (PyTorch → Triton)
CostFree metadata after gate; bulk content agreement requiredFree download; legal friction if training commercial models without reciprocity
Languages658 langs (card); paper 619. High-resource langs (C, JS, etc.) overrepresented vs niche (Julia, Scala). Natural language in comments mostly English.English metadata; Python (PyTorch) and Triton code
ModalitySource code / text. No images.Text (code)
Domaincode pretraining; multilingual source code; Software HeritageGPU kernel / PyTorch-to-Triton code translation
Time periodSWH graph 2023-09-06; GH Archive to 2023-09-14. Paper 2024-02-29. Hub created 2024-02-26; lastModified 2026-08-03 (v2.2.0 opt-out purge). Discord mid 1478777064818479185 (2026-03-04).Stack v1 GitHub PyTorch sources; Inductor w/ PyTorch 2.5.0; software cite 2025-05; Hub 2026-06-09; Discord 1428356240630747206 (2025-10-16)
PurposeOpen reproducible Code LLM pretraining corpus with license/provenance metadata and developer opt-outPaired pytorch↔triton data to train models that emit KernelBench-like Triton from PyTorch modules
Used forStarCoder2 3B/7B/15B (paper). Hub 6.3K downloads / 626 likes at check; paper 160 upvotes.Kernel codegen model training; compiler/transpiler research; KernelBench-adjacent eval
AuthorsBigCode collaboration (Lozhkov, Li, Ben Allal, von Werra, de Vries et al.; ServiceNow/HF/many labs). Source producers: GitHub users with unique repos through 2023-09-06.GPU Mode (Paliskara, Saroufim). Code derived from permissive GitHub PyTorch repos via Stack v1 hashes.
BiasPermissive-license skew; some langs rarely permissive (SQL/Batchfile/TS ~4% vs ~10% avg). Longer files more often permissive. Comment toxicity risk. HTML may not be WCAG-compliant.Only modules that compiled + got unit tests; Stack/GitHub popularity skew; permissive-license filter; PyTorch 2.5.0 Inductor idiosyncrasies
Text qualityExact-dedup + near-dedup (~40% of permissive files were near-dups). Filters: no binary/empty/undecodable; drop >10MB. Vendor/generated flags via go-enry. Train-* variants add heuristics + repo grouping.Executable-oriented pairs with tests; Triton reshaped toward KernelBench. Still synthetic compiler output — may not match hand-written kernels.
Sample sizeNo official train/test split (near-dup leakage risk). Language configs e.g. Python, Dockerfile, default=all.18,162 single train split; star/repo metadata uneven
Long contextMixed (file-level; train-* group by repo for full-repo context).Sometimes (full module + triton can be long)
Intermediate stepsYes (SWH traversal; GH Archive metadata; ScanCode license detect; permissive filter; near-dedup; opt-out removals v2.0.1–v2.2.0).N/A (code pairs; not natural-language CoT)
Idea qualityHighHigh
NoveltyHigh (largest open SWH-backed code dump with governance; still foundational vs newer niche dumps)Medium-High (focused Inductor-derived PyTorch-Triton pairs with reciprocity license)
Text conversionMetadata load_dataset works after gated ToU. Bulk contents need SWH/INRIA agreement + AWS credentials. Streaming supported.Ready parquet/json via datasets
Collection methodDownload (gated) + optional SWH S3Hub download of dataset_permissive.parquet; use PyTorch 2.5.0 if re-running Triton
StaticNo (periodic opt-out updates; lastModified 2026-08-03)Yes (fixed release files; no monthly refresh observed)
ProcessedUnknownYes (module extract, tests, Inductor, KernelBench-style transform)
SummaryOpen reproducible Code LLM pretraining corpus with license/provenance metadata and developer opt-outPaired pytorch↔triton data to train models that emit KernelBench-like Triton from PyTorch modules