← All articles

Education

Best LLM Training Datasets for 2026

Daniel K. · May 18, 2026 · 12 min read


Quick guide: If you're pretraining or fine-tuning an LLM in 2026 you're probably using some mix of Common Crawl (raw web, the foundation) filtered through a quality classifier like FineWeb-Edu or Dolma, then mixed with code (The Stack v2, StarCoderData), math (OpenWebMath, FineMath), and Wikipedia + Stack Exchange + Books. For instruction tuning, mix human-labeled (OpenAssistant, UltraFeedback) with synthetic (Magpie, distilabel outputs). All-rights-reserved data like NYT or Stack Overflow snapshot need licenses post-2024.

Pretraining Datasets

Common Crawl

The free monthly archive of the web; ~250B+ pages, ~400 TB compressed. Every frontier lab starts here. Released under the Common Crawl License (permissive for research and commercial use). Practical workflow: download a snapshot, run language ID + dedup + quality classifier; you'll keep 2–10% of bytes.

FineWeb (Hugging Face)

FineWeb is Common Crawl filtered through HuggingFace's 2024–25 pipeline: language ID, fastText quality classifier, NSFW filter, dedup. Result: 15 trillion English tokens that outperform raw Common Crawl by ~10% on benchmarks per token spent.

Dolma (AI2)

Allen Institute's open pretraining corpus. 3T tokens v1.7. Mix of Common Crawl, The Stack code, peS2o academic papers, Project Gutenberg books, Wikipedia, Reddit. The full data pipeline is open.

RedPajama-V2

Together AI's open replication of the LLaMA pretraining mix. 30T tokens with quality and language metadata at the document level, letting you re-filter on the fly. Used as the base for many open models including the OLMo series.

The Pile (EleutherAI)

The 2020 standard open pretraining corpus. 825 GB of curated text. Smaller than the others (~300B tokens) but still useful for smaller models. Withdrawn-then-restored in 2023 after copyright concerns; the current version has Books3 removed.

Code Datasets

DatasetSizeLicenseNotes
The Stack v2 (Hugging Face)~900B tokens, 600+ langsLicense-filtered (only OSI-approved)The new standard. Filters by license per repo.
StarCoderData~250B tokensPermissive onlySame lineage as The Stack; used to train StarCoder2.
CodeParrot~50B tokens PythonMIT/Apache filteredSmaller, focused on Python.
BigCode CommitPackFT~2B tokensLicense-filteredCommit + message pairs for code-instruction tuning.

Math & Reasoning

Multilingual

Instruction Tuning Datasets

Vision-Language (Image-Caption) Datasets

Speech & Audio

Curated High-Quality Text

DatasetTokensLicense
Wikipedia (all languages)~25BCC-BY-SA
Stack Exchange dump~10BCC-BY-SA
Project Gutenberg~6BPublic domain
arXiv full-text~30BMixed (per paper)
peS2o (S2ORC academic)~40BOpen access
FineFineWeb (subset of FineWeb-Edu)~370BODC-By

How to Pick

  1. Are you commercial? Use ODC-By / Apache / MIT licensed sources. Skip CC-NC and "research only" corpora.
  2. Compute-bound? FineWeb-Edu over raw Common Crawl. 5x compute efficiency per token.
  3. Multilingual? FineWeb-2, HPLT 2.0, Madlad-400.
  4. Code-heavy model? The Stack v2 + StarCoderData.
  5. Instruction tuning? Tulu 3 SFT Mix + UltraFeedback for preference data.
  6. Vision-language? DataComp-CommonPool over LAION-5B in 2026.

Where Proxies Fit in Custom Crawling

If you're augmenting public datasets with a domain-specific crawl — medical literature, e-commerce, news — you'll need to scrape ethically and at volume. Spreading requests across a rotating residential pool is the only way to crawl meaningfully without hot-spotting any single IP. Budget Residential at $1.75/GB is the standard pick for high-volume AI data collection.

Related: AI data collection process · Proxies for LLM training · What is AI scraping? · AI web scraping tools.

Building AI training datasets?

See AI data collection ↗Start now ↗