Skip to main content

Models · Data · Code & domain

The Stack

Extracted from public GitHub repositories and deduplicated, with licence and repository metadata.

SourceBigCode
SizeAbout 3TB deduplicated code / 300+ languages
LanguagesMultiple code languages
FormatJSONL / Parquet
LicenceMIT (dataset packaging); code follows the original repositories
Commercial useCheck each repository’s code licence
AccessGated download
Task fitCode pretraining / Code retrieval
Verified2026-11-19

Quality and bias

Extracted from public GitHub repositories and deduplicated, with licence and repository metadata.

Use boundaries

Code licences are mixed, including copyleft and unlicensed repositories. Filter before training and distribution.

Next steps

  • Open the source page, download the dataset card and licence, and confirm the version and access terms.
  • Sample 100–500 records for quality, language and sensitive content before adding it to a training pipeline.
  • For RAG or SFT, first read how to choose a RAG corpus and how to mix SFT data.
Source:https://huggingface.co/datasets/bigcode/the-stack · Verified 2026-11-19 · Licence terms follow the source page