Deduplicating across all 96 Common Crawl snapshots at once shrinks the corpus from 36 trillion tokens to 4 trillion and hurts model quality, because older crawls end up dominated by unique ads and gibberish while clean recurring pages get removed. Guilherme Penedo and the Hugging Face team resolved this failure by running over 70 controlled 1.71B-parameter Llama ablations (80,000 H100 GPU hours) to build FineWeb, a 15-trillion-token corpus, alongside FineWeb-Edu, a 1.3-trillion-token educational subset.

Both datasets, the datatrove processing code, and every ablation checkpoint are open-source, giving teams a reproducible baseline against closed web recipes.

  • 15T tokens from 96 crawls: FineWeb spans 2013 to 2024 Common Crawl WARC files, enough for a Chinchilla-optimal model above 500B parameters.
  • Global MinHash backfired: Global chronological deduplication cut up to 90% of older crawls like 2013-48, where the kept 10% (31B tokens) trained worse models than the removed 90% (171B tokens); independent per-crawl MinHash (20T tokens) matched RefinedWeb.
  • 22% cut, +1% aggregate gain: Three data-driven heuristic filters outperformed C4’s 30% terminal-punctuation drop while cutting 22% of tokens, boosting 28B-token benchmark accuracy by roughly 1%.
  • 10x faster MMLU learning: FineWeb-Edu pushed 350B-token MMLU from 33% to 37% (+12% relative) and ARC from 46% to 57% (+24% relative), hitting 33.6% MMLU in 38B tokens versus Matrix’s ~300B tokens.
The FineWeb curation funnel across 96 Common Crawl snapshots
1. WARC + base filtering
Extract HTML with trafilatura (beating WET text), block adult URLs, keep English (fastText >= 0.65), and run MassiveText rules -> 36T tokens.
2. Per-crawl MinHash
Deduplicate each snapshot independently using 112 hashes (14 buckets x 8) on 5-grams -> 20T tokens.
3. C4 + custom heuristics + PII
Apply non-punctuation C4 rules (~7% drop), three distribution-tuned filters (~22% drop), and email/IP masking -> 15T tokens (FineWeb).
4. Synthetic educational classifier
Score 460k pages with Llama-3-70B-Instruct, train frozen Arctic-embed-m linear regressor (threshold 3, 82% F1) -> 1.3T tokens (FineWeb-Edu).

Source: Penedo et al. (2024), Sections 3 and 4.

How the curation pipeline works

Every stage in FineWeb was validated by training two 1.71B-parameter Llama models on independent random subsets of 28B tokens (for filtering) or 350B tokens (for deduplication and cross-corpus comparisons) and averaging eight evaluation benchmarks. Unlike RedPajama-V2, which ships quality signals without an opinionated filter stack, or DCLM, which emphasizes fastText model-based filtering, FineWeb isolates both rule-based web cleaning and classifier-based educational selection.

First, extracting main text from raw WARC HTML via trafilatura consistently beat Common Crawl’s pre-parsed WET files, which retain heavy menu boilerplate. Second, when tuning heuristic filters, the team skipped intuition-only thresholds: they computed 50+ document statistics across the high-quality (individually deduplicated) and low-quality (globally deduplicated) slices of 2013-48, picked 16 diverging metrics, and kept the three winners that dropped documents with punctuation-ending line ratio at or below 0.12 (10.14% removed vs. C4’s 30%), duplicated-line character ratio at or above 0.1 (12.47% removed), or short-line ratio under 30 chars at or above 0.67 (3.73% removed).

Key findings: deduplication traps and classifier lift

The sharpest engineering surprise is that aggressive global training-data deduplication degrades web corpora once massive spam clusters are gone. Using 112 MinHash signatures (much cheaper than RefinedWeb’s 9,000 hashes while catching 98.8% of pairs at 85% similarity), global deduplication left clean snapshots recent and starved older snapshots of high-quality recurring articles. Lighter global passes over the 20T-token per-crawl dataset (URL deduplication cutting 71.5%, or line and 3-line deduplication cutting 77.8% to 85%) also performed worse than per-crawl MinHash alone.

On top of FineWeb, the synthetic educational filter delivered the largest jump on reasoning and knowledge tasks. Scoring 15T tokens with a lightweight linear head over frozen Snowflake-arctic-embed-m embeddings took 6,000 H100 hours and filtered FineWeb down to 1.3T tokens. At 350B training tokens, FineWeb-Edu beat Matrix, Dolma 1.7, RefinedWeb, C4, SlimPajama, RedPajama2, The Pile, and OSCAR on aggregate accuracy, led by an 11-point jump on ARC (46% to 57%).

Domain perplexity shift: FineWeb vs. FineWeb-Edu on Paloma (lower is better)
Where FineWeb-Edu wins

Dolma pes2o: 10.24 vs. 12.23. RedPajama arXiv: 23.37 vs. 32.34. RedPajama GitHub: 5.25 vs. 5.61.

Where broad FineWeb wins

Common Crawl: 14.50 vs. 18.34. Reddit: 23.81 vs. 29.86. Twitter AAE: 246.91 vs. 575.11.

Topic mix shift (Edu vs. Web)

Up: Education (+3.2%), History (+2.2%). Down: Business/Law (-3.2%), Entertainment (-2.8%), Travel (-2.5%).

Source: Penedo et al. (2024), Section 4, Figure 18, and Table 3.

Caveats and builder takeaway

FineWeb-Edu optimizes for textbook clarity, not universal coverage. In Paloma perplexity evaluations, FineWeb-Edu sharply worsens fit on everyday web text, Reddit, C4, and African American English tweets, while cutting topics like business, finance, law, travel, and entertainment. Both corpora also remain English-only web snapshots: the authors warn that code is scarce after filtering and recommend mixing in dedicated code, books, and formatted Wikipedia corpora, noting also that all ablations ran on 1.71B base models without instruction tuning.

For pretraining teams, treat FineWeb as a strong, clean web backbone and blend FineWeb-Edu as a high-leverage slice rather than a full replacement whenever conversational breadth, dialect coverage, or commercial domain knowledge matter.