← All entries
Dataset2022#92

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.

Venue
Hugging Face / BigCode
Access
restricted
License
Various permissive open-source licenses (193 in v1.1); each file's original license must be respected; opt-out supported
License family
Permissive
Language
358 programming languages; comments/docstrings in 40+ natural languages (EN, ZH, FR, PT, ES, RU, DE, KO, JA, etc.)
Hugging Face
bigcode/the-stack
Author type
human
Added
Jul 17, 2026
Verified
Jul 17, 2026
Research status
done

From the source

Repository
bigcode/the-stack
Created
Oct 3, 2022
Last updated
Aug 3, 2026
Downloads (last month)
9,409
Likes
1,082
Size
100M to 1B rows
Modalities
code, text
Tasks
text-generation
Formats
parquet
Gated
yes

Fetched Oct 3, 2026 from Hugging Face. These numbers change; the curated fields above do not come from here.

Topics

Code / Software Engineering

Dataset profile

Scale
Paper: 3.1 TB / 30 langs; v1.0 near-dedup ~3 TB. Hub tags 100M<n<1B; parquet shards per language (e.g. large c/c++/html/css/go configs). Exact total rows not re-counted (gated 401).
Format
Parquet shards under data/<language>/; gated Hub dataset
Type
raw multilingual source-code pretraining corpus
License
Other — Stack Terms of Use + per-file original licenses (attribution). Hosting must include ToU.
Cost
Free gated download; very large storage/bandwidth
Languages
Programming languages (Hub: 300+ language configs; paper v1.0 highlighted 30). Natural-language comments embedded in code.
Modality
Text (source code)
Domain
multilingual source code / code LLM pretraining
Time period
GitHub-sourced code through BigCode Stack releases (paper 2022-11); Hub lastModified 2026-08-03; Discord 1422597711273656371 (2025-09-30)
Purpose
Provide a large permissively licensed, governance-aware code corpus for open code LLM research
Used for
Code LLM pretraining (StarCoder lineage et al.); per-language code modeling; responsible data research
Authors
BigCode (Kocetkov, Li, Ben Allal, von Werra, et al.). Code authors = original GitHub contributors per provenance.
Bias
GitHub popularity / language skew; English-heavy comments; license-filter bias toward permissive projects; possible personal/secret leakage historically addressed via opt-out governance
Text quality
Raw source files with provenance; near-dedup in releases; quality varies by repo. Card emphasizes license compliance over heavy cleaning.
Sample size
Highly skewed by language popularity (HTML/C/C++/CSS etc. dominate shard counts)
Long context
No (file-level; some files long)
Intermediate steps
N/A (pretraining raw code; not CoT)
Idea quality
High
Novelty
High at release (largest open permissive multi-lang code set with governance)
Text conversion
Hub datasets loaders / Dask/Polars after gate accept; multi-TB download
Collection method
Accept HF gate/ToU; download desired language configs; honor opt-out/version notices
Static
No (maintainers push removal updates; ToU requires refreshing)
Processed
Partially (license filter, near-dedup, language packing; not instruction-formatted)

Research notes

  • Gated; requires accepting Terms of Use and contact-info sharing. v1.0 had 30 languages/18 licenses (3TB); v1.1 expanded to 358 languages/193 licenses (6TB) and removed copyleft (MPL/EPL/LGPL). Papers: arxiv 2211.15533, 2107.03374, 2207.14157. A newer version, The Stack v2, also exists.
  • Deep-eval from #data-source-dump mid=1422597711273656371. papers_local id follows. Gated — Curator could not cat README this pass. Issues companion already cataloged separately.

Related entries

  • Datasetresearch profile2025added Jul 17, 2026242 downloads/moshares a link

    KernelBook

    GPUMODE

    `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.

  • Datasetresearch profile2023added Jul 17, 2026500 downloads/moshares a link

    The Stack GitHub Issues

    BigCode

    The Stack GitHub Issues dataset contains ~30.9 million conversations from GitHub issues and pull requests, extracted as part of the larger Stack code dataset. Each conversation includes events such as issue opening, comments, and closures, with author usernames masked for PII protection. The dataset was cleaned from 180GB down to 54GB by removing bot comments, automated email replies, and low-quality conversations, and is used to train code generation models like Stable Code 3B.

  • Datasetresearch profile2025added Sep 8, 2026242 downloads/moshares a link

    GPUMODE/KernelBook

    GPUMODE

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

Similar entries