A training dataset is what survives a chain of filters ordered from cheap to expensive, and every stage trades the same two things: how good each token is against how many unique tokens are left before the run has to repeat them.
Data curation is everything done to text before a model trains on it: finding it, turning it into clean text, throwing most of it away, removing copies and test questions, and deciding how much of each kind to show the model and when. This page is the map: what each stage is, how the stages compare, and which child page owns each one. The children teach the mechanisms.
Fig. 1 follows one Common Crawl file through the pipeline, cheapest stage first. Each stage is a glass gate: the documents that pass flow on, the ones it removes fall into the tray in front, and the white column after each gate is the share of the file's HTML pages still alive, to scale. Every count is measured on the running example (below) with datatrove 0.10.1.
The bars to scale, stage by stage, are Extraction and filtering's hero; the Pipeline lab runs the same funnel with three extractors. The real order varies (FineWeb deduplicates before its last rules; DCLM runs its quality model after dedup), but the principle is fixed: cheap stages run on everything, expensive ones only on what survives.
You need nothing beyond knowing what a language model trains on; token counts depend on the tokenizer (Tokenizers), which is why every corpus size here says whose count it is.
Token: the unit a model reads, a word piece of about four characters of English. Corpus: the documents a model trains on, sized in tokens. Crawl (snapshot, dump): one pass of Common Crawl over the web. WARC, WAT, WET: a crawl's raw HTTP responses, their metadata, and Common Crawl's own extracted text. Extraction: HTML to the page's main text. Language ID: a classifier giving each document a probability per language. Heuristic filter: a hand-written rule on a simple statistic with a threshold. Deduplication: removing exact or near copies. Quality model: a model that scores documents so a threshold can keep the best. Data ablation: train identical small proxy models on data differing in one decision and compare scores. Decontamination: removing training text that overlaps the test sets you will report. PII: personal data (emails, addresses, names). Mixture weights: the share of training tokens each domain supplies. Epoch: one pass over a domain's unique tokens. Mid-training or annealing: a short final stage on the best data while the learning rate decays. Continued pretraining (CPT): training a finished model further on one domain. Synthetic data: text written or rewritten by a model. SFT, preference, RLVR, environment data: the four shapes of post-training example (section 9).
Every lab tab measures on the same public data on one laptop, so numbers compare across tabs and child pages. The raw slice is one Common Crawl WARC file, the first of the July 2024 crawl (CC-MAIN-2024-30, 718.7 MB, 20,991 responses of which 20,463 HTML pages reach the pipeline), with its WET and WAT files; the Pipeline lab widens it to four files (81,738 HTML pages). It was chosen because FineWeb and FineWeb-Edu record the source WARC of every document, so the documents each kept from this exact file are known: 2,425 in FineWeb and 159 in FineWeb-Edu. DCLM-baseline only covers crawls before 2023, so a 50,000-document DCLM sample stands in for it and DCLM's own classifier is run on our pages; Nemotron-CC is represented by samples of each of its quality buckets from the same crawl. Seven benchmark test sets (MMLU, GSM8K, ARC-Challenge, ARC-Easy, HumanEval, MATH-500, HellaSwag) are the decontamination targets, and samples of Tulu 3's SFT mixture, UltraFeedback and Tulu 3's RLVR prompts stand for post-training data. The models are fastText lid.176 for language ID, the FineWeb-Edu classifier and DCLM's fastText classifier, all run on an Apple M1 Pro CPU; the full definition, with revisions and checksums, is in src/data/README.md.
Labels: measured means produced here in October 2026 on an Apple M1 Pro (CPU), self-reported a dataset's or method's makers evaluating their own work, third-party a comparison by someone without a stake in the result, derived computed from other numbers with the formula shown, and illustrative an input made up for teaching.
The question: at a fixed training budget, how much does it matter which tokens you use? Across seven years of open recipes, Dwarkesh Patel and Jerry Han crossed each year's representative open training recipe (GPT-2 in 2019 to OLMo 2 in 2025) with each year's public corpus (OpenWebText in 2019 to Ultra-FineWeb in 2025), trained every pair at budgets up to 1019 FLOPs and read off the compute each improvement saves. Better data saved 12.0x compute, better models 3.7x: data contributed 3.24 times more, and a simple additive model of "data effect plus model effect" explains 88% of the score differences, so in benchmark points the two barely interact third-party (Patel and Han, 2026-09-08). In compute they overlap: both together saved 15x, a third of the 45x product (our reading). The caveats are the authors' own: small models, little tuning, one benchmark suite (OLMES), one seed per cell; their remark that small models gain most from data quality is an argument, not a measurement.
The cleanest evidence is a data ablation: identical small proxy models trained on data that differs in one decision. Five years before the modern corpora, the T5 paper showed the direction: an unfiltered crawl 8 times larger than C4 (6.1 TB against 745 GB) scored lower on 6 of 7 task groups at the same budget (T5, Table 8; its text says "every task", but on SuperGLUE its Wikipedia-only model is 0.03 lower than the unfiltered one). The table puts every stage's best published ablation side by side; it is the comparison only this page can make, and it says where to spend effort.
| Stage | Best published effect at fixed compute | What it costs | Owner |
|---|---|---|---|
| Extraction | WET text 20.7 Core against 24.1 (resiliparse) and 24.5 (trafilatura), 1.4B model (DCLM Tables 3 and 16) | parses every page; resiliparse 4.55 MB of WARC per second per core, trafilatura 0.56 | Extraction and filtering |
| Heuristic rules | FineWeb's own three rules: about 22% of tokens removed, about 1% added to the aggregate score; C4's terminal-punctuation rule the largest HellaSwag boost of C4's rules, at about 30% of tokens (FineWeb Sections 3.5 and 3.6) | nearly free; the cost is good text wrongly dropped | Extraction and filtering |
| Deduplication | memorised output of a 1.5B model trained on C4 cut tenfold, 1.926% to 0.189% of generated tokens (Lee et al., Table 4); accuracy gains small: up to about 4 repeats is almost as good as fresh data (Muennighoff et al.) | MinHash signatures and buckets per crawl; global passes can hurt (section 4) | Deduplication |
| Quality model | DCLM's fastText filter 30.2 Core against 27.5 for no model-based selection, 1.4B model on 28.8B tokens; at 7B the filter alone moved MMLU from 35% to 44% (DCLM, Table 4) | fastText scores on CPU; FineWeb-Edu's classifier took 6,000 H100 hours for 15T tokens | Quality classifiers |
| Decontamination | DCLM removed the MMLU and HellaSwag overlaps it found and retrained a 7B model: MMLU 51.8 before, 52.7 after, so the gains were not leaked items (DCLM, Table 7) | an n-gram index of every test item; false positives drop good text | Decontamination, PII and governance |
| Mix and final stage | OLMo 2 7B: 50B tokens of mid-training (about 1.2% of the run) took GSM8K from 24.1 to 67.5 (OLMo 2, Table 9) | proxy runs to choose weights; a short anneal per candidate dataset | Data mixing |
| Synthetic rephrasing | Nemotron-CC's 8B on 15T tokens, low tiers rephrased instead of dropped: MMLU 70.3 against 65.3 for Llama 3.1 8B in NVIDIA's harness | an LLM pass over the rephrased tiers | Synthetic data |
Every row is self-reported except where the method was someone else's rerun under the same budget (most rows of DCLM's Table 4). Scales differ between rows (1.4B to 8B models), so compare the direction and rough size, not the numbers across rows. Sources: DCLM, arXiv 2406.11794; FineWeb, arXiv 2406.17557; Lee et al. 2021; Muennighoff et al. 2023; OLMo 2, arXiv 2501.00656; Nemotron-CC, arXiv 2412.02595. The Quality lab measures how differently real filters judge the same documents.
Data decisions are empirical: even "obviously good" steps have to be ablated. The sharpest example is FineWeb's attempt to deduplicate all 96 crawls against each other, whose model barely beat one trained on non-deduplicated data (section 4). How to read an ablation critically: check the model size, tokens, benchmarks and seeds before believing a gap; small proxies can only use benchmarks that already move at small scale, and a dataset's makers choose the benchmarks it is evaluated on (the mistakes block in section 11).
Almost every open pretraining corpus starts from Common Crawl (CC), a non-profit that has crawled the web since 2008 and publishes a new crawl every month or two. One crawl comes in three file types: WARC files hold the raw HTTP responses (the HTML exactly as served), WAT files the metadata (headers, links), WET files plain text that Common Crawl extracted itself, menus and footers included. The June 2025 crawl, for scale: 2.38 billion pages, 82.73 TiB of compressed WARC, 15.62 TiB of WAT and 6.24 TiB of WET (Common Crawl, 2025-06-27); after FineWeb's whole pipeline it yields 152.4 billion tokens (FineWeb dataset card).
The rest comes from sources with more structure and more legal care: code (The Stack v2; Stack-Edu, its educational slice), papers and PDFs (arXiv, peS2o, PDFs turned into text by OCR models; FinePDFs holds about 3 trillion tokens from 475 million PDFs), encyclopedias and books (the Books3 collection inside The Pile was taken down over copyright). A licence on a dataset (ODC-By for FineWeb and Dolma, CC-BY-4.0 for DCLM-baseline, an NVIDIA data agreement for Nemotron-CC v2) covers the compilation; it does not license each web page inside it. The Common Pile v0.1 is the attempt at 8 TB of text whose every piece is openly licensed or public domain (arXiv 2506.05209).
Each dot is a released corpus at its published size in tokens (log scale). Click one for what it changed.
Sizes grew from C4's 175 billion tokens to FineWeb's 18.5 trillion, mostly by processing every crawl rather than one. The newest generation splits two ways: keep only the top few percent by a quality model (FineWeb-Edu at 1.3 trillion, DCLM-baseline at 3.8 trillion out of a 240-trillion-token pool), or keep more and fix it (Nemotron-CC's 6.3 trillion, 1.9 trillion of them model rewrites); section 5 explains the split, section 11 says which to pick. Token counts are each source's own (C4 and Pile counts from the Dolma paper's list); sizes are of the released data, not of what a model trained on. Licences, status and lineage of every corpus: the Tool map.
An advocacy campaign page from the running example (WARC file 00000; an organisation's page). measured: the extractors' output (trafilatura 1.11.0 with FineWeb's options, resiliparse with Dolma's settings), the lid.176 scores and datatrove's verdicts (the Pipeline lab); the two quality scores (the Quality lab's scorers); FineWeb and FineWeb-Edu membership from their rows for this file. Computed live in your browser: the rule values (Gopher thresholds as in datatrove v0.10.1; words split roughly as datatrove splits them, so a value can differ in the third decimal) and the 5-gram Jaccard and MinHash (112 hashes in 14 bands of 8) between the three extractions. The page spans five children's subjects, which is why it lives here.
A raw crawl is mostly not text you want: menus, cookie banners, spam, machine-generated pages, adult content, other languages, and the same page many times over. Five of the stages are simple enough to define in a line each; deduplication, quality models and decontamination get their own sections.
lid.176, a bag of character n-grams) gives a probability per language; FineWeb keeps pages whose English probability is at least 0.65.Predict first: Fig. 3 runs the same campaign page as trafilatura, resiliparse and Common Crawl's WET text give it. Which version fails a heuristic rule? Let it play, then switch the text.
The stage with the largest published effect is extraction (section 1's table), and the running example shows why in counts: across four WARC files (81,738 HTML pages), the same filter chain kept 10,955 pages extracted by trafilatura, 8,676 by resiliparse and 3,526 from WET text, and 9,312 of the 9,339 pages FineWeb kept from those files are among trafilatura's 10,955 (measured, Pipeline lab, before any dedup). A pipeline's library defaults also change the dataset: FineWeb's released data matches datatrove's duplicated-line default of 0.01, not the paper's 0.1, and the shipped example's language filter is not English-only.
FineWebQualityFilter in datatrove v0.10.1 defaults to 0.01, ten times stricter, and adds a fourth check (newline-to-word ratio above 0.3) the paper does not describe (src/datatrove/pipeline/filters/fineweb_quality_filter.py, lines 14 to 20, read 2026-10-14). On the running example, the paper's 0.1 would keep 154 more documents than the default (2,846 against 2,692), and none of the 154 is in FineWeb, which holds 89% of the default's output: FineWeb's released data matches the code's 0.01, not the paper's 0.1 (measured, Pipeline lab; 6 of 8 hand-labelled drops at 0.01 were wrong drops). datatrove's C4QualityFilter swaps both of C4's numbers: at least 5 sentences per document and 3 words per line, where the T5 paper says 3 sentences and 5 words (c4_filters.py, lines 66 and 67). Its Trafilatura step runs with deduplicate=True, a process-wide cache that drops any paragraph of more than 100 characters from its fourth sighting in the same worker (on the running example it emptied 310 pages, and shuffling the page order changed 38 outputs); and the shipped FineWeb example calls LanguageFilter() without a language, so it keeps any language above 0.65 (122 non-English documents survive on our file). The mechanisms are on Extraction and filtering, section 8.The web repeats itself: syndicated news, mirrors, templates, boilerplate legal text, the same page crawled in many months. Duplicates waste compute, make a model memorise (reproduce training text verbatim) and leak test sets, since a benchmark question copied across many pages survives in some copy. The accuracy effect is smaller than people expect (section 1's table): deduplication is mostly about the token budget and memorisation. Four keys catch four kinds of copy:
The cross-page point is scope. How much duplication you find depends on how far you look: MinHash inside the running example's one WARC file removes 75 of 2,692 documents (2.8%), yet 914 of the same 2,692 (34.0%) have a copy at Jaccard 0.8 or more under the same URL in at least one of four older crawls (measured, Dedup lab). Wider is not always better: FineWeb deduplicated all crawls against each other, and the 2013-48 crawl's survivors scored worse than what was removed, because pages that never reappear later are disproportionately ads and keyword lists; it deduplicated each crawl on its own instead (the bars and the arithmetic are Deduplication, section 1). Nemotron-CC deduplicated globally with a different pipeline and did well, so the finding is about an interaction, not a law. The framing several corpora adopted: dedup tells you the counts, mixing decides the setting. TxT360 deduplicates globally but keeps each document's duplicate count, so documents the web repeated can be upsampled on purpose (section 7).
After extraction, rules and dedup, most of what remains is grammatical, unique and still not worth much: product listings, forum chatter, thin SEO pages. Every modern corpus therefore runs a quality model, a score per document and a threshold that keeps the top slice. "Quality" means whatever the model was trained to prefer, so the useful question is always quality according to what. Three recipes are in use:
| Recipe | What decides "good" | Example |
|---|---|---|
| Reference against crawl | a classifier separating a reference set you like from random crawl text | DCLM: fastText on OpenHermes 2.5 plus r/ExplainLikeImFive answers against random pages; keeps the top 10% |
| An LLM grades a sample, a small model learns the grades | a rubric applied by a large model | FineWeb-Edu: Llama-3-70B-Instruct scored 460,000 pages for educational value; a head on a small encoder scored all 15 trillion tokens; threshold 3 keeps 1.3 trillion, threshold 2 keeps 5.4 trillion |
| Perplexity under a reference model | how unsurprising the text is to a model of clean text | CCNet: an n-gram model on Wikipedia, 29.0 Core against fastText's 30.2 in DCLM's comparison; with a small modern LM the lowest-perplexity pages are often templated or machine-written |
The central trade-off: per-token quality against unique tokens. FineWeb-Edu and DCLM remove about 90% of their input. That is fine for a run of a few hundred billion tokens and a problem for 15 trillion, where a small corpus must be repeated many times; and the unique count is smaller than the headline: after a global fuzzy dedup across crawls, FineWeb-Edu's 1.3 trillion tokens shrink to 0.2 trillion and DCLM-baseline's 3.8 trillion to 1.0 trillion (Nemotron-CC, Table 4). Nemotron-CC's answer: score with an ensemble of three classifiers, sort documents into quality levels ranked by short annealing runs (section 7), keep the high levels, and have an LLM rephrase the low ones instead of dropping them (section 8): in NVIDIA's 8B, 1-trillion-token runs its high-quality slice beat DCLM by 5.6 MMLU points, and the full 6.3 trillion tokens matched DCLM with four times as many unique real tokens (self-reported). Check any filter by reading a stratified sample of what it drops (the Quality lab labels one). This trade-off runs through sections 2, 5, 7, 8 and the calculator in section 11.
1.7B models trained on 350 billion tokens of each, from SmolLM2, Table 1 (arXiv 2502.02737), Hugging Face, the makers of FineWeb-Edu: self-reported for one side. FineWeb-Edu wins MMLU, ARC and OpenBookQA; DCLM wins HellaSwag, CommonsenseQA and PIQA. SmolLM2 settled on 60% FineWeb-Edu and 40% DCLM. FineWeb-Edu's own paper shows the other side of a target: its models have higher perplexity than FineWeb's on Twitter, Reddit and African-American English text, lower on Wikipedia and academic text (FineWeb paper, Section 4.2). A filter is also a choice of whose writing the model learns from.
Benchmarks are on the web: questions are copied into forums, study sites and repositories, and end up in the crawl. A model that trained on a test item can score by remembering it. Decontamination removes training documents or spans that overlap the test sets you will report; detecting contamination in a model you did not train belongs to Topic: evaluation-and-llm-judges and Topic: benchmarks. Almost everyone uses n-gram overlap: GPT-3 used 13-grams; Llama 3 and Tulu 3 use 8-grams, and Tulu 3's rule is precise enough to reuse: a test item is matched by a training example if more than half of its tokens fall inside an 8-gram shared with it, and a whole training dataset was dropped or cleaned if it matched more than 2% of any evaluation's items (Tulu 3, Section 3.2). A Bloom filter seeded with every test n-gram (the Dolma toolkit's approach) does the lookup in one streaming pass. Paraphrases defeat n-grams, so data written by a teacher model that memorised a benchmark needs embedding similarity or an LLM check on top.
The cross-page finding: web text is rarely the leak, post-training data is. Across about 360,000 web documents (the running example and samples of FineWeb, FineWeb-Edu, DCLM and Nemotron-CC), 43 share a 13-gram with one of the 29,615 benchmark items, and reading every pair finds no test question. Tulu 3's RLVR prompts contain 70 MMLU test questions word for word, which is 0.50% of MMLU and so passes Tulu 3's own 2% rule, though it is 26% of that MMLU subject; and an n-gram rule short enough to catch everything flags ordinary text, since any shared 5-gram touches 64% to 84% of web documents (measured by Decontamination, PII and data governance and the Post-training data lab).
A pretraining corpus is a mixture of domains (web text, code, maths, papers, books, encyclopedias, other languages, synthetic text), and the mixture weights say what fraction of the training tokens each supplies. At a fixed budget every point of code is a point not spent on web text, so the weights move abilities directly: Llama 3's final mix was roughly 50% general knowledge, 25% maths and reasoning, 17% code and 8% multilingual tokens (Llama 3, Section 3.1.2). Natural shares drown small, valuable domains; multilingual models sample domain i with probability proportional to ni1/T, a temperature above 1 flattening the mix.
Repetition is the number every other stage feeds. Upsampling a small domain means repeating it. At large scale, up to about 4 epochs is nearly as good as fresh data and gains continue to about 16, after which extra repeats are worth almost nothing (Muennighoff et al., arXiv 2305.16264); in the T5 experiments, repeating a truncated C4 1,024 times cost about 4 GLUE points and 4.6 SQuAD points (T5, Table 9). So a strict quality cut (section 5) is a mixing decision: it sets how many epochs the best data must take.
Choosing weights means training small proxies and transferring what they learn (DoReMi, RegMix, Data Mixing Laws: Data mixing, section 3). The sobering check is Aioli: no existing method consistently beat simple stratified sampling on average test perplexity (Aioli, third-party), and optimal weights shift with model size and budget, so a published mix is a starting point. On the running example's five domains a 0.8M-parameter DoReMi proxy (4,000 steps, one seed) moved weight from natural shares of 17% web, 16% Wikipedia, 31% code, 21% maths and 15% papers to 2.6% web, 10.7% Wikipedia, 37.9% code, 38.5% maths and 10.3% papers, while the proxy itself ended 0.35 to 0.39 nats worse than its reference on every domain; whether those weights beat the natural shares was not run (measured, Mixing lab). It is a lesson in the method's sensitivity at small scale, not a recommended mix.
Staging: the mix changes during training. Modern recipes use a long first stage on broad data and a short final stage, mid-training or annealing, on the best data (maths, code, instruction-like and question-answer text, often synthetic) while the learning rate decays to zero. OLMo 2 7B's 50 billion Dolmino tokens, about 1.2% of the run, took GSM8K from 24.1 to 67.5 (section 1's table). Annealing is also the cheapest way to evaluate a dataset: decay a half-trained model over a short run where the candidate is a fixed share (Llama 3 used 40 billion tokens with 30% candidate data) and compare with the same run without it; Nemotron-CC ranked its quality buckets this way.
Continued pretraining (CPT) is the same split made later: train a finished model further on a domain, and mix general data back in (replay) or it forgets. The CMR scaling law fits general and domain loss on a few short probe runs and reads off the critical mixture ratio, the largest domain-data share that keeps general loss within a tolerance: 29.8% for a 460M model up to 47.8% for 3.1B on finance (Gu et al., arXiv 2407.17467). It is the method Khalid has used at work to set this ratio; Data mixing, section 6, owns CPT (forgetting, re-warming, schedules, the CMR calculator) and section 7 is its checklist.
The web is finite and the best of it is small: FineWeb-Edu's strict cut is 1.3 trillion tokens, and frontier runs train on 15 trillion or more. Past that point the choice is to repeat (section 7: cheap to about 4 times), keep lower-quality text, or manufacture tokens with a model. Two lineages: generate from seeds (Phi's textbooks; Cosmopedia's 30 million documents written by Mixtral-8x7B-Instruct, each prompt seeded with a real page or topic, because diversity, not generation, is the hard part) and rephrase real documents (WRAP, Nemotron-CC's 1.9 trillion rewritten tokens): the real page supplies the information and its diversity, the model fixes the form. Synthetic text is now a standard ingredient: 57.5% of Olmo 3's 100-billion-token mid-training mix is labelled synthetic (derived from the Dolma 3 Dolmino card).
Generating is not rephrasing, measured. On Cosmopedia documents and the web pages that seeded them, a generated document keeps almost none of its seed's wording (a median 99% of its 4-word sequences are new) and is 3.6 times as long, and the FineWeb-Edu classifier passes 79 of 200 generated documents against 9 of their 200 seeds (measured, Post-training data lab). Rephrasing changes the form far more than a classifier's verdict: Qwen3-4B's rewrites of 200 running-example pages in WRAP's four styles barely move the FineWeb-Edu pass rate except in the style that discards half the text (Synthetic data, section 3).
Model collapse: models trained recursively on their own output lose the tails of the distribution (Shumailov et al., Nature 2024), but the experiment assumes each generation replaces the previous data; with synthetic data added to the real data, collapse disappeared across model sizes and architectures (Gerstgrasser et al., arXiv 2404.01413: test loss 1.82 after the first iteration, 2.39 after four when replacing, 1.74 when accumulating). Real pipelines avoid collapse by construction (added, grounded, filtered); the live risks are a uniform style, the generator's biases, and crawls after 2023 that already hold model-written text nobody chose to add.
Synthetic data, Fig. 4 draws the difference: the word types a refit model can still produce, generation by generation, when each generation replaces the data and when it accumulates (its section 7 runs a categorical model and a bigram language model).
After pretraining, a model trains on much smaller, structured data, and each stage of post-training (Alignment: SFT, RLHF, DPO Family, RLVR) consumes a different shape of example: a prompt plus a signal of what good looks like. The shape has grown richer over time:
| Stage | One example is | Built now by |
|---|---|---|
| SFT | a prompt and a good response | curated prompts, responses distilled from a strong teacher, then filtered, deduplicated, decontaminated (Tulu 3: 939,344 prompts) |
| Preference | a prompt, a chosen and a rejected response | several models answer, an LLM judge rates them, best and a worse one form the pair, often on-policy |
| RLVR | a prompt and a program that checks the answer | maths with known answers, code with tests, checkable constraints; prompts the model always or never solves are removed |
| Environments | a task, a sandbox and a test | verified answer first, question after; environments rebuilt from recorded agent trajectories (Terminal-Universe: 37.3k) |
Three lessons carry across the rows. Quality beats quantity for style and coverage needs volume: LIMA's 1,000 examples teach format (its "superficial alignment" hypothesis), Tulu 3 needed hundreds of thousands to cover maths, code, safety and instruction following. Judges have biases the data inherits: a judge that prefers longer answers produces pairs that teach length. And every row must be checked against your evaluations, because distilled and synthetic data launder benchmark items (section 6). On the samples, Ai2's clean-up filters remove 30 of 5,000 Tulu 3 SFT rows while an "obvious" English-only rule would remove 1,277, and a last-number checker accepts only 4,334 of 7,500 correct MATH solutions where math-verify accepts 7,485 (measured, Post-training data lab). Operational know-how is a third kind of data beside instructions and traces, such as the AREX skill library distilled from 1,000 machine-learning repositories (Repo-To-Skill).
A corpus has two lives in two formats. While curating, one record per document with its metadata (URL, crawl, language and quality scores, duplicate-cluster id) in compressed JSONL or Parquet (columnar: a reader loads only the columns it needs); FineWeb ships as Parquet, DCLM-baseline as zstd JSONL. For training, documents are tokenized once into flat arrays of token ids (2 bytes per token below a 65,536-entry vocabulary, 4 above: storing Qwen3's ids as 16-bit integers would corrupt 97% of FineWeb documents), memory-mapped or packed into streaming shards (MosaicML's MDS, WebDataset's tar files); the loader samples domains with the weights of section 7, packs documents into fixed-length windows, shuffles approximately, and must resume exactly after a crash. When the weights are applied at load time rather than baked into the files, changing the mix needs no reprocessing.
The tools. Three open frameworks run whole pipelines; teams with big-data infrastructure also write their own stages on Spark or Ray.
| Tool | What it is | Reach for it when |
|---|---|---|
| datatrove (Hugging Face) | Python pipeline blocks (readers, extractors, filters, MinHash and exact dedup, tokenizers, writers) with local, Slurm and Ray executors; FineWeb's pipeline is its example script. v0.10.1 read for this page | you want a FineWeb-style pipeline you can read and change; CPU clusters |
| Dolma toolkit (AI2) | Rust-backed: taggers attach scores to every document, then a mixer filters and samples by those scores; a Rust Bloom filter for dedup and decontamination | you want "tag once, filter many ways" and very fast tagging |
| NeMo Curator (NVIDIA) | GPU-accelerated curation for text, image, video and audio; since release 26.02 every pipeline runs on Ray; fuzzy and semantic dedup, classifiers, PII and synthetic-data stages | you have GPUs to spare and dedup or classifiers dominate your cost |
| Spark or Ray, custom | your own stages on a general distributed engine | you already run that infrastructure or need logic no framework has |
Versions, release and commit dates, licences, a "which tool for which job" picker and every extractor, language-ID model, dedup library and corpus with its status: the Tool map.
Predict first: how many Common Crawl crawls would a 2-trillion-token run need at FineWeb-Edu's strict cut, with no repetition? Then change the selection and the repeats in Fig. 5.
deduplicate=False, language ID with the language set explicitly, Gopher, C4 and FineWeb rules, MinHash per crawl, PII), check its thresholds against the paper (and swap in resiliparse, which datatrove v0.10.1 does not ship as an extractor, if extraction cost dominates), then ablate one change at a time on small proxies (FineWeb used 1.71B models on 28B tokens).Training on Common Crawl's WET text. It keeps menus and footers, documents are about twice as long as the real content, and models score worse (DCLM Table 3: 20.7 against 24.1 Core). Re-extract from WARC.
Copying a paper's thresholds, or trusting a library's defaults, without reading the code. FineWeb's paper says 0.1 for the duplicated-line rule and datatrove's default is 0.01; RefinedWeb's prose says 20 buckets of 450 hashes and only 450 bands of 20 reproduce its probabilities; datatrove's C4 filter swaps C4's two numbers. Set every parameter explicitly, log it, and read what a sample run drops.
Reading an ablation without its setup. Check the model size, tokens, benchmarks and seeds before believing a gap. Small proxies can only use benchmarks that already move at small scale (FineWeb chose its eight for low seed variance and early signal), so effects on harder skills go unmeasured; without a seed-to-seed spread, a one-point gap may be noise; a dataset's makers choose its benchmarks.
Assuming more dedup is always better. FineWeb's global dedup kept the worst copies of the oldest crawl; Muennighoff et al. saw no downstream gain from dedup in their setting. Deduplicate to save compute and avoid memorisation, then decide how much to repeat on purpose.
Treating a quality score as ground truth. Each classifier encodes its reference set's taste. Read a stratified sample of what it drops.
Decontaminating too little, too much or too late. 13-grams miss paraphrases; short n-grams remove ordinary sentences; decontaminate before training against every evaluation you will report, and record what you removed.
Comparing token counts from different tokenizers. C4 is 175B tokens in the Dolma paper's count; The Pile is 387B there and about 300B in GPT-NeoX tokens. Say whose tokens, or compare bytes.
Over-filtering for a long run, or under-filtering for a short one. A strict cut is right when you will not exhaust it and wrong when you would repeat it 10 times; the calculator shows when that happens.
Reading the CMR ratio as the share of general data. The critical mixture ratio is the largest share of domain data (29.8% to 47.8% in the paper's finance runs), not the general share. An old version of this page had it backwards.
derived. Per-crawl yield: 166.4B FineWeb tokens on average (18,305.9B over the 110 distinct crawls in the FineWeb card's table, which lists CC-MAIN-2021-43 twice); selection shares: 1.3T and 5.4T out of FineWeb's 15T (paper and cards), so the defaults reproduce FineWeb-Edu's size by construction; compressed WARC per crawl: 82.73 TiB (June 2025 crawl, used for every crawl, which overstates older, smaller crawls); extractor throughput: DCLM Table 16, read as MB of compressed WARC per second per core; quality-model scoring: 6,000 H100 hours for FineWeb's 15T tokens (FineWeb-Edu), scaled linearly. Excludes language ID, rules, dedup, tokenization, storage and retries. It spans four children's numbers (extraction, quality, mixing, corpora), which is why it lives here.
Nine child pages own the mechanisms, in pipeline order. Times are each page's header: its Reading core, plus its closed blocks.
Design the data pipeline for a 2-trillion-token pretraining run. Clarify: model size and token budget (2T unique or 2T seen?), languages, domains (code, maths), licence constraints, and which evaluations matter. Sources: all available Common Crawl crawls (WARC), plus code, papers or PDFs, and maths. Stages, cheapest first, each writing what it drops: URL blocklist, extraction (resiliparse for throughput or trafilatura for precision), language ID, Gopher, C4 and FineWeb rules, MinHash dedup per crawl (5-grams, 14 bands of 8), then a quality model (a fastText classifier is cheap; an encoder distilled from LLM grades is better and costs GPU hours), decontamination against the evaluation suite, PII. The numbers: the calculator in section 11 shows that a strict top-10% cut cannot supply 2T unique tokens from the crawls that exist, so either relax the threshold, add rephrased lower tiers (Nemotron-CC), add other sources, or repeat the best data up to about 4 times. Mixing and staging: fit domain weights on small proxies, keep the best data for a mid-training stage, check candidate datasets by annealing runs. Infrastructure: stateless per-shard tasks (datatrove on Slurm or Ray), object storage, Parquet with metadata so filters can be re-run, tokenized shards for training, and a held-out slice for loss monitoring. Validation: ablate each stage on a 1 to 2B proxy, read stratified samples of what each stage drops, and track contamination.
How do you know whether a new dataset helps? Ablate: train identical small proxies with and without it at a fixed budget, on benchmarks with low seed variance; or anneal a partly trained model on a short run where the dataset is a fixed share (Llama 3: 30% of 40B tokens) and compare against the same run without it.
The per-stage questions (MinHash bands and rows, choosing a dedup method, building a quality classifier, decontamination failure modes, CPT ratios, synthetic-data risk, a good RLVR prompt set) are rehearsed on the child that owns each stage.
One raw Common Crawl file through a FineWeb-style curation pipeline, stage by stage, cheapest first: URL filtering, text extraction, language identification, heuristic filters, deduplication and PII scrubbing. Every number here was measured on the running example (defined in Reading, section 0): the 20,991 web pages of one WARC file from the July 2024 crawl, processed with datatrove 0.10.1 on an Apple M1 Pro (CPU), on 2026-10-14. Published numbers are kept apart and labelled.
WARC: Common Crawl's archive format; each record is one HTTP response exactly as the server sent it (headers plus raw HTML). WET: Common Crawl's own plain-text version of the same responses, every visible string kept. Extraction: turning HTML into the main text of the page, dropping menus, footers and cookie banners. Language ID: a classifier (here fastText's lid.176) that gives each document a probability per language. Heuristic filter: a rule computed from the text alone (for example "fraction of lines that end in punctuation") with a threshold; a document past the threshold is dropped. Funnel: the count that survives each stage. datatrove: Hugging Face's pipeline library that built FineWeb; each stage is a Python object (a reader, a filter, a writer) and a pipeline is a list of them.
The problem. A crawl is mostly not training text: menus, shop listings, error pages, other languages, spam, near copies. A curation pipeline removes it in stages, and the order matters because the stages cost very different amounts: a URL lookup costs microseconds, HTML extraction milliseconds, a neural quality classifier far more. So the cheap, high-recall stages go first and the expensive ones see only what survives. How it works here: the stages of datatrove's FineWeb example (examples/fineweb.py:33-73), run on one WARC file with languages=['en'] (see section 4 for why that argument matters), then MinHash deduplication inside this file and PII scrubbing. Every removed document was written to disk with the rule that removed it, so each bar below can be opened in the later sections.
Extraction and filtering draws the trafilatura path of this funnel to scale as its hero and opens each stage: language ID in section 6, the rules in sections 7 and 8, line-level edits in section 9. This lab keeps what that page does not: the same funnel for three extractors, in documents or characters.
Each bar is one stage: the blue part is what goes on, the coloured part what this stage removed (hover a coloured part for its rules). The extractor switch reruns the same filters on resiliparse's or Common Crawl's text for the same 20,280 pages (measured; dedup and PII were run only on the trafilatura path, so those two rows stay empty for the other two). In "characters", the extraction row starts from the raw HTML characters of the 20,280 pages and every later row counts extracted text, so the drop at extraction is mostly markup; the URL, dedup and PII rows have no character counts.
Share of documents (or tokens) that survives each comparable stage. Different units and scopes, so compare shapes, not exact values.
One WARC is 1/90,000 of the crawl. Within-file MinHash finds only copies inside this file (75 documents); FineWeb ran MinHash over each whole crawl, and Dolma 3 reports exact dedup removing 67% of what its heuristics kept, then MinHash another 23% (published, Dolma 3 pool README). That is why our final set holds 214 documents that FineWeb does not: the main expected cause is copies of them in other files of the crawl. Of the 2,425 documents FineWeb kept from this file, 2,403 (99.1%) are in our output, so the per-document filtering reproduces closely.
The problem. Adult and spam sites are a large share of any crawl, and you want to drop them before paying for extraction. How it works. datatrove's URLFilter (pipeline/filters/url_filter.py:104-132) checks, in order: the registered domain against a domain blocklist, the full host name, the exact URL, then the words of the URL against three word lists: a "hard" list (one hit drops the page), a "soft" list (two hits drop it), and "subwords" matched anywhere inside the normalised URL with an Aho-Corasick automaton. The lists ship inside the package: 4,558,939 domains and 19,586 URLs in assets/url_filterblacklistsv0_3_0.tar.gz, and 215 hard words, 88 soft words and 134 subwords (counted here; the code does not say where the lists come from). Cost: a set lookup and a string scan per URL, no page content read.
183 of 20,463 HTML pages (0.9%) removed, by the rule that fired first.
The 77 removals that were not a blocklisted domain, labelled from the URL alone (by the agent that built this tab; one reader): right drop, wrong drop, unclear. The 108 domain and host-name hits were not inspected.
A word in a URL is evidence, not proof. The cost of a wrong drop here is small (10 pages of 20,463), but it is not random: it falls on sports, religion and hobby pages whose vocabulary overlaps the list, which is a bias, not noise. Real pipelines accept it because the alternative, reading every page, costs more than the pages are worth.
The problem. A raw WARC record is HTML: markup, scripts, navigation, the article, the footer. A training document should be the article. How it works. A main-content extractor parses the page into a tree and keeps the blocks that look like content: trafilatura scores nodes by text density, link density and tag names and falls back to other algorithms when unsure; resiliparse walks the DOM once in C++ with simpler rules (skip nav, footer, elements with boilerplate class names, link-dense blocks). Common Crawl's WET is not a main-content extraction at all: it keeps every visible string. FineWeb re-extracted WARCs with trafilatura because WET "retained too much boilerplate and menu text" (FineWeb paper, section 3); DCLM chose resiliparse as about as good downstream and about 8 times faster (published, DCLM Table 16). Below, the same pages run through all three on this machine.
Lines are the WET text's lines (every visible string, in page order). A struck line is one the current extractor dropped (or did not reproduce word for word). The steps "output" show each extractor's text with its own line breaks. Pages chosen from organisations, among those where the extractors disagree; text shown after the same email and IP scrubbing as run0, and with em-dashes written as two hyphens (this site's house style).
The problem. An English corpus must drop other languages, and the crawl does not label them reliably. How it works. fastText's lid.176 is a linear classifier over averaged character n-gram embeddings: it turns the text (newlines replaced by spaces, utils/lid.py:54) into a probability for each of 176 languages. datatrove keeps a document when the English probability exceeds 0.65 (filters/language_filter.py:61-65), FineWeb's threshold. Cost: microseconds per document on a CPU, which is why it runs before every rule. How to check it: read what lands near the threshold.
English probability for the 19,241 documents trafilatura extracted (lid.176, measured). Most mass sits at the two ends; the slider moves the cut.
Every page shown between 0.52 and 0.82 (a random sample of organisation pages, seed 0) is in English. What lowers the score is not another language but text that is not prose: menus, search facets, data tables, a PHP error log, OCR of a scanned newspaper. lid.176 was trained on running text (Wikipedia, Tatoeba and SETimes, per the fastText language-identification page), so a list of short labels looks less like any language. The 0.65 threshold therefore also acts as a weak quality filter, and the rule filters after it remove most of these pages anyway.
The problem. After language ID, most English pages are still not prose worth training on. How it works. Each rule computes one number from the text and compares it with a threshold; the Gopher, C4 and FineWeb rule sets run in that order and the first rule that fires removes the document. Pick a rule, move its threshold, and see how many of the 6,971 English documents it would drop on its own, how many it drops among documents that pass every other rule (its real effect in the chain), and how many of those FineWeb itself kept. Real documents on both sides of the threshold are listed under the chart (short excerpts, scrubbed of emails).
Labels on dropped documents: right a careful curator would drop it too, wrong coherent, informative prose, unclear. Labelled by the agent that built this tab from the first few hundred characters (one reader; see section 6).
A filter's drop count says nothing about whether it drops the right documents. The only check is to read a sample. For every rule that removed documents, 8 documents it removed were drawn at random (seed 0; all of them when fewer), plus 24 documents the whole chain kept, and each was labelled from its first 360 to 700 characters. Labels are committed in src/pipe/labels/drops.json. Eight per rule is enough to see a pattern, not to estimate a rate: treat one wrong drop in eight as "happens", six in eight as "the rule is broken at this threshold".
The problem. Web text contains personal data: email addresses, phone numbers, home addresses, names. A model can memorise and repeat it. How it works in FineWeb. datatrove's PIIFormatter (pipeline/formatters/pii.py:42-94) runs two regular expressions: one for email addresses (replaced in turn by email@example.com and firstname.lastname@example.org) and one for IPv4 addresses, replaced only when Python's ipaddress says they are global (pii.py:34-39), so 192.168.x.x and other private addresses stay. Nothing else is touched. Cost: two regex passes per document; nothing is removed, text is edited.
Regex scrubbing is cheap and predictable, which is why FineWeb uses it; its limits are in the counts above. Phone numbers, street addresses and social handles remain, and almost half of what the email regex replaces (66 of 140) are role addresses of organisations (info@, sales@), not people. Stronger options cost more: NER-based tools such as Microsoft Presidio find names and addresses, with false positives of their own, and one way to afford them is to run them only on the higher-risk slices (forums, comments). To check a scrubber, count matches of independent detectors after it, as here, and read a sample.
Everything above is a handful of Python classes. Reading them is the fastest way to know what a pipeline really does (all paths under src/datatrove/, tag v0.10.1, commit 1977fbb0).
Each rule's file and line range is shown under the rule explorer chart; language ID at filters/language_filter.py:43-65 and utils/lid.py:53-59; URL filter at filters/url_filter.py:80-132.
Scripts, data and labels: src/pipe/ in this page's folder (see its README). Measured on Apple M1 Pro (CPU), 2026-10-14; per-document results transfer to a cluster exactly (same code, same inputs), timings do not.
The same web text appears many times: syndicated articles, mirrors, templates, and, above all, boilerplate. This lab runs every deduplication method a pretraining pipeline uses on the page's running example (one Common Crawl WARC file of CC-MAIN-2024-30, taken through a FineWeb-style datatrove pipeline as run0) and shows what each one removes, why, and what it costs.
Labels used below: measured on the running example on an Apple M1 Pro (CPU) on 2026-10-14; published by the authors (their scale, not rerun here); derived from a formula; vendor claims. Timings are rough (a shared machine, 4 threads, low priority).
The input is run0's filtered stage: the 2,692 English documents from our WARC that passed every heuristic filter, exactly what datatrove's MinHash step received. Each method was run on all of them; the bars count documents a method removes outright (the suffix-array row counts documents that lose at least half their bytes).
measured Exact: identical text, first copy kept. MinHash: datatrove 0.10.1 with FineWeb's settings (5-word shingles, 14 bands of 8 hashes), the same 75 documents run0 removed. C4 spans: datatrove's SentenceDedup (drop every repeated three-sentence span, then drop documents left with fewer than 3 sentences or 50 words). Suffix arrays: Google's deduplicate-text-datasets, repeated spans of 100 bytes or more, every copy removed. Semantic: SemDeDup's rule with an arctic-embed-m encoder, cosine at least 0.9.
Fourteen of the 2,692, picked to show where the methods disagree. Each card is one document (hostname, the start of its text after PII scrubbing). Every cluster here includes the copy a method keeps, except semantic dedup, whose kept copy of the banner sits outside this set. Fates come from the full run on all 2,692 documents.
Why bother at all (the Reading tab's section 1 table and Deduplication, section 1, have the evidence): repeats waste training compute, make a model memorise (a 1.5B model trained on C4 emitted memorised text in 1.9% of its output tokens, 0.19% after near-duplicate removal; published Lee et al. 2021, Table 4), and copy benchmark items. Muennighoff et al. found up to about 4 repeats nearly as good as fresh data, so dedup is mostly about not spending the budget twice on the same boilerplate.
The idea. Compute a hash (a short fingerprint, here 64 bits, so equal inputs give equal fingerprints and different inputs almost never collide) of each unit, sort or group by it, keep one per value. The unit decides what you catch:
measured Three run0 stages: extracted (19,241 documents straight out of Trafilatura, every language), filtered (2,692, after language ID and the Gopher, C4 and FineWeb rules) and final (2,617, after MinHash). "Normalised" hashes datatrove's simplify_text (lowercase, no punctuation, numbers normalised). Lines follow the Dolma toolkit's paragraph loop: split on newlines, skip blank ones, keep the first copy. No URL appears twice in one WARC file: Common Crawl deduplicates URLs within a crawl, so URL dedup only matters across crawls.
measured on the 19,241 extracted documents; only lines seen on at least 5 different hosts are listed, so none is one site's own text. 3,503 distinct lines qualify, with 111,609 occurrences between them. Short lines are navigation and table markup; among lines of 40 characters or more, consent-plugin text dominates: the extractor kept the cookie banner as if it were content.
C4 "discarded all but one of any three-sentence span occurring more than once" (Raffel et al. 2020). datatrove implements it as SentenceDedup: split each document into sentences, hash every window of 3 consecutive sentences after normalising, mark windows seen before, cut them, then drop documents left with fewer than 3 sentences or 50 words.
measured datatrove 0.10.1 SentenceDedupSignature, SentenceFindDedups and SentenceDedupFilter with n_sentences=3, min_doc_words=50, on run0's filtered (before MinHash) and final (after MinHash) stages. Of the 70 documents it drops before MinHash, 64 are also among MinHash's 75 and all 50 exact copies are among them: on whole-document duplicates the methods agree; the span rule adds the 24 documents it shortens. A trap in the code: SentenceDedupSignature.__init__ reads config.hash_config from its argument (sentence_dedup.py:96), so leaving config at its default None crashes; pass a SentDedupConfig.
Deduplication, section 3, explains the four steps (shingles, Jaccard, the min-hash trick, bands and rows) with a stepper and draws the S-curve in its Band designer; the Reading tab's section 4 defines them in a line. Here the curve meets real pairs. Among 2,692 documents there are 3,622,086 pairs. For every one of them we computed the true Jaccard similarity of the shingle sets (a sparse matrix product, no estimate) and compared datatrove's 112 MinHash values position by position.
measured Shingles and signatures recomputed with datatrove's own MinhashDedupSignature code; all 37,688 stored signature values (2,692 documents by 14 bands) equal run0's signature files, and union-find over the candidates reproduces run0's 31 clusters and its 75 removals. Only 19,675 pairs share even one shingle; 856 pairs have a Jaccard of at least 0.05 or at least 2 equal MinHash values, and every other pair has at most one equal value, so it can never become a candidate when a band has 2 or more rows. Those 856 pairs, with their 112-position equality masks, are embedded in this page.
measured Each dot is one of the 856 pairs: true Jaccard against the fraction of the 112 MinHash values that agree. The band is ±2 standard deviations of a binomial estimate, 2√(J(1−J)/112). datatrove computes (shingles * a + b) % _mersenne_prime in unsigned 64-bit arithmetic (minhash.py:182), so the product wraps around before the modulus and the functions are not exactly the textbook universal hash; the dots show it does not matter in practice.
Choosing b and r is taught on Deduplication, section 3, whose Band designer draws 1 − (1 − sr)b for any setting and checks it against these same measured pairs (the first b×r of the 112 values split into consecutive bands, as datatrove's np.split does at minhash.py:187). The point to carry here: the curve is steepest near (1/b)1/r, 0.72 for FineWeb's 14 × 8, so pairs a little below a 0.75 target still become candidates and pairs just above it are sometimes missed.
measured Signatures with 286 and 9,000 hash functions computed with datatrove's code (same shingles, same permutation generator, seed 1) for the 397 documents that appear in the 856 pairs; every other pair has Jaccard below 0.05, where these settings give a candidate probability below 10−12. Settings: published Dolma 3 pool README (allenai/dolma3 at 1a9daced, read 2026-10-14): web text used 26 bands of 11 (286 hashes) and then kept only pairs whose true Jaccard is at least 0.8; the same README says its PDF data used "the same parameters as FineWeb ... 14 bands of size 5", which is not FineWeb's 14 of 8. RefinedWeb (Penedo et al. 2023) used 9,000 hashes; its text says "20 buckets of 450", and only 450 bands of 20 rows reproduce its own published probabilities (76% at 0.75, 99.4% at 0.8). Read as written, 20 bands of 450 rows matches only byte-identical shingle sets: on our pairs it finds the 143 pairs with Jaccard 1 and nothing else.
A seeded sample of 35 pairs with Jaccard between 0.4 and 1, each document used at most once (so the 25-document banner cluster cannot fill the sample), read and labelled: Bboth are boilerplate or an extraction failure, Sthe same text copied, Ta template page where only the item differs, Ddifferent main content sharing boilerplate. "Removed" says which of the two run0 dropped.
MinhashDedupCluster, minhash.py:537-556), so a page with two sentences of real text joins the banner cluster through intermediate banner pages and is dropped, although its own pairs with its D partner were never candidates. Dolma 3 adds a check of the true Jaccard similarity (0.8) between documents inside each cluster, which can break such chains.Every cluster run0's MinHash step formed in our file, with what its members are (read by hand), its size and the spread of true Jaccard similarity inside it. Only hostnames are shown, never page text, except in the animation above.
measured Kinds: Bboilerplate or extraction failure, Sthe same text copied across sites, Ttemplate pages whose item differs, Mone page reached through two or more URLs (query strings, session ids: URL dedup cannot see these), Ddifferent content sharing a long template. None of the 31 is the same news article syndicated to two sites; inside one WARC file (1 of the crawl’s 90,000) such copies are rare, while FineWeb's per-crawl dedup sees all 90,000 files.
The problem. MinHash judges whole documents. A 600-byte disclaimer pasted into thousands of otherwise different pages leaves each page unique by Jaccard, but the model still reads the disclaimer thousands of times. The tool. A suffix array is the list of every starting position in a text, sorted by the text that follows each position. Identical spans then sit next to each other, so one pass over neighbours finds every span of length L or more that occurs twice anywhere. Lee et al. (2021) built this for C4 and the Pile; RefinedWeb and Dolma 3 used it after MinHash.
illustrative three short documents written for this demo, joined with a unique separator per document (#0, #1, ...) so no match can cross a boundary, as the real tool's loaders do with 0xFF 0xFF plus a document index. The array is built live in your browser. Real corpora use the same idea with a linear-time construction (the Rust tool), not this sort.
measured Google's deduplicate-text-datasets (commit 4e9888ac, built here with Rust 1.99): make, then self-similar --length-threshold L and collect per threshold, on bytes (no tokenizer). Lee et al.'s 50-token threshold is about 230 bytes of English (GPT-2 averages about 4.6 characters per token on FineWeb); Dolma 3 used 500 bytes. Remove all is what the tool's ranges mean: self-similar writes every position of a repeated span, the first included (main.rs:900-922), so deleting the ranges deletes every copy. Keep one is what Dolma 3 says it added ("we ensure we keep at least one copy of each substring"); estimated here by keeping the first range of each distinct span. Building the array took about s for the MB extracted file; the array file is bytes per text byte (pointer width grows with the text: 5 or 6 bytes at hundreds of GB).
The problem. Exact dedup needs a set of every hash seen so far: billions of entries. The tool. A Bloom filter is an array of m bits and k hash functions. Adding an item sets the k bits its hashes point to; testing an item checks whether all k are set. A new item can find all its bits already set by others (a false positive: "seen" when it was not), but a seen item is never missed. The Dolma toolkit streams documents through one: for each paragraph, if the filter says "seen", mark it a duplicate, otherwise add it.
measured paragraphs: lines from the running example that recur on many sites (the table in the Exact section), fed in a fixed order with repeats. The hash functions here are FNV-1a with different seeds, computed live; Dolma uses k seeded ahash hashers (bloom_filter.rs:181-212). With 32 bits the filter fills fast and starts saying "seen" for new paragraphs: watch for red.
The formula and the real tool. After n distinct items, a fresh item collides with probability about (1 − e−kn/m)k, smallest at k = (m/n) ln 2. We ran the real Dolma toolkit (dolma 1.2.1, paragraph mode) on the 743,644 non-blank lines of the 19,241 extracted documents, whose exact count of repeats is 256,024 (487,620 distinct), with filters from 64 KiB to 64 MiB. Because a Bloom filter never misses a repeat, every mark beyond 256,024 is a false positive.
measured three runs per size (Dolma draws new random hash seeds for every filter, bloom_filter.rs:76-98, so false positives differ run to run); expected = the sum over the 487,620 new paragraphs of the formula at the filter's fill when each arrives (the filter fills as it streams), with Dolma's own choice of k = ⌈(m/n) ln 2⌉ (bloom_filter.rs:27-32). Measured and expected agree within about 1%. At 1 MiB (17 bits per distinct paragraph) 11 to 14 paragraphs of 487,620 are wrongly dropped; at 64 KiB a third of all new paragraphs would be.
--dedupe.min_words switches paragraph dedup offdeduper.rs (lines 338-380) the word-count check is the first branch of an if / else if / else, and the deduplication sits in the final else, so whenever min_words is above 0 no paragraph ever reaches it. Measured: the same 64 MiB run with --dedupe.min_words 1 marks 0 paragraphs instead of 256,024. Document mode has the same branch structure (lines 261-277; read, not run). Two smaller notes: when no size is given, Dolma sizes the filter by doubling from 1 MiB until the formula meets the target rate (bloom_filter.rs:45-61), so small runs get at least 1 MiB; and datatrove's own Bloom filter caps its size with MAX_HASH = 1 << 32 - 1 (bloom_filter.py:20), which Python parses as 1 << 31.Two other uses of the same structure: Dolma seeds a filter with benchmark test items and flags any training paragraph that hits it (decontamination); DCLM used a Bloom-filter variant for near duplicates, marking a document when most of its n-grams have been seen before, because it "scales more easily to datasets surpassing 10TB" than MinHash (published DCLM Section 4.3). datatrove ships a similar step, SingleBloomFilter: 13-word shingles, a document is a duplicate when more than 80% of them were seen (bloom_filter.py:39-42, 185).
The problem. Two pages can say the same thing in different words: no shared 5-word phrase, Jaccard near 0. The tool. Embed every document with a text encoder (a model that maps text to a vector so that similar meanings land close together), cluster the vectors with k-means, and inside each cluster drop a document whose cosine similarity to an earlier-ranked one is at least 1 − ε. That is SemDeDup (Abbas et al. 2023) as NeMo Curator 1.4.0 runs it on GPUs: rank each cluster with the documents farthest from the centroid first ("hard", its default), keep the first, and remove any later document too close to one before it (stages/deduplication/semantic/pairwise.py, docstring at lines 95-131; defaults embeddinggemma-300m, 100 clusters, ε = 0.01 in stages/text/deduplication/semantic.py:80-92).
measured on CPU: the 2,692 filtered documents embedded with the encoder inside the FineWeb-Edu classifier on disk (Snowflake arctic-embed-m, first 512 tokens, the [CLS] vector, normalised); about s on 4 threads. Dots: the 856 MinHash pairs (true Jaccard across, cosine up), plus the 30 most similar pairs that share almost no shingles (Jaccard below 0.3, drawn in the second colour). The dashed line is the cosine cut 1 − ε. k-means with 20 clusters removes almost the same documents as comparing all pairs (the counts below), because near-identical documents land in the same cluster.
FineWeb deduplicated each crawl on its own and found that deduplicating all 96 crawls against each other made the model worse (Deduplication, section 1, has the numbers; the Reading tab's section 4 says what they do and do not show). Two measurements on our file make the two scopes concrete.
measured Joined on WARC-Record-ID with the 2,425 documents FineWeb kept from the same WARC file. Of our 2,692 filtered documents, the that we kept and FineWeb did not are where FineWeb's MinHash over all 90,000 files of CC-MAIN-2024-30 is the main suspect (other causes: FineWeb ran MinHash before its C4 and FineWeb rules, on a larger set, and its extraction differed on a few pages). Looking for their partners directly is a needle hunt: MinHash signatures of 50,000 random FineWeb rows from the rest of the crawl (0.02% of it) gave candidate pairs with our documents and inside the sample, as expected when each partner sits in one of 89,999 other files.
For every one of the 2,692 documents we looked its URL up in the URL index of four earlier crawls, fetched the capture, extracted it the same way and measured the true Jaccard similarity with our version. A pair at 0.8 or more would be removed by a global MinHash; per-crawl dedup keeps both.
measured URL index read from data.commoncrawl.org (cluster.idx, then one block of the sorted CDX index per lookup, the same lookup the index server performs), URLs in Common Crawl's SURT form; newest HTML capture with status 200; Trafilatura with run0's settings (5 s timeout); 5-word shingles as in datatrove.
Set the corpus and the calculator estimates the memory or disk each method needs. Every formula is shown; defaults are one crawl's worth of documents reaching dedup in a FineWeb-style pipeline.
derived MinHash signatures: documents × hashes × 8 bytes (datatrove stores 64-bit values, plus a 4-byte document id per band, sorted per band on disk). Bloom filter: m/n = −ln p / (ln 2)2 bits per distinct item, one item per document here (paragraph dedup multiplies the item count by paragraphs per document: 39 per document in our extracted stage). Suffix array: text plus w bytes per text byte, w = ⌈log2(text bytes)/8⌉ (the tool's pointer width; 3 on our 8 MB final stage). Defaults: 109 documents and 3,200 bytes each (the mean of run0's 2,692 filtered documents is characters). Not shown: compute, which for MinHash is documents × shingles × hashes multiply-adds ( for our median document) and is embarrassingly parallel, and the shuffle that groups band values across machines.
The lines that decide behaviour, at the pinned versions used above. Paths are inside each repository.
src/datatrove/pipeline/dedup/minhash.py (FineWeb's MinHash)n_grams: int = 5 num_buckets: int = 14 hashes_per_bucket: int = 8 seed: int = 1
simplify_text output (lowercase, punctuation removed, numbers normalised; utils/text.py:186-193), tokenised by a language-specific word tokenizer (spaCy for English, which is why the shared venv needs spaCy): for x in ngrams(
self.word_tokenizer.word_tokenize(simplify_text(text, self.config.norm_config)),phv = (shingles * a + b) % _mersenne_prime for x in np.split(np.min(phv, axis=0).astype(...), self.config.num_buckets)
if last is not None and last.sig == v.sig:
union_set[root_b] = root_a # make the smallest one join the biggest one ... if node != p:There is no check of the true similarity, so a chain of candidates can join documents that are not similar to each other (the stove page above).
sentence_dedup.py and bloom_filter.pyn_sentences = 3, min_doc_words = 50, min_num_sentences = 3. 96 self.hash_fc = create_hash_func(config.hash_config) reads the argument, not self.config: pass a config explicitly.duplicate_threshold: float = 0.8, n_grams: int = 13; 185 a document is a duplicate when duplicate_shingles / len(shingles) > duplicate_threshold. 20 MAX_HASH = 1 << 32 - 1 evaluates to 231.src/bloom_filter.rs and src/deduper.rsrand::thread_rng() (a new filter hashes differently every run); 214-235 insert and contains on 32-bit atomic words, shared by all threads without locks."\n", and per paragraph if bloom_filter.contains(&hashes) { mark the span } else { insert }: one pass, the first copy survives. The dedup branch is the final else after if min_word_count > 0 (339-353), the bug measured above.src/main.rslet does_match = suf2.len() >= length_threshold && suf1.len() >= length_threshold && suf1[..length_threshold] == suf2[..length_threshold];914-922 every position of a run of matches is written, the first included, unless
--only-save-one (which writes the span text instead of positions). So the standard pipeline removes every copy.model_identifier = "google/embeddinggemma-300m", n_clusters = 100, which_to_keep = "hard", eps = 0.01. stages/deduplication/semantic/pairwise.py 95-131 (docstring): within a ranked cluster, row i takes the maximum cosine with rows ranked before it, and is removed when that is at least 1 − ε; "an earlier candidate remains eligible here even if that candidate's own score later causes it to be removed". The pairwise kernel requires CUDA (line 141); the CPU version above re-implements the same rule in numpy.--dedupe.min_words turns deduplication off. Always run a tool on a sample where you know the right answer (here, an exact Python count) before running it on everything.Sources: Lee et al., "Deduplicating Training Data Makes Language Models Better" (arXiv 2107.06499, 2021); Broder, "On the resemblance and containment of documents" (1997); Penedo et al., FineWeb (arXiv 2406.17557, 2024) and RefinedWeb (arXiv 2306.01116, 2023); Raffel et al., C4/T5 (arXiv 1910.10683); Abbas et al., SemDeDup (arXiv 2303.09540, 2023); Li et al., DCLM (arXiv 2406.11794, 2024); allenai/dolma3 pool README (commit 1a9daced, read 2026-10-14); code at the pinned commits named above. Scripts and outputs: src/dedup/.
Every modern web corpus runs a model that scores each document and keeps a top slice. This lab runs the two published scorers that define today's open corpora, the FineWeb-Edu classifier and the DCLM fastText classifier, plus CCNet's perplexity filter and a fastText classifier trained here, on the same documents: the 2,617 pages of our Common Crawl file that survived the Pipeline lab's heuristic filters and the Dedup lab's MinHash step (run0). Then it reads what they drop. Everything below was measured on an Apple M1 Pro (CPU, 4 threads, low priority on a shared machine) on 2026-10-14, except two runs on its GPU on 2026-10-15 that say so, unless it says published.
A quality filter is a model that gives each document a number, plus a rule that keeps documents above a cut-off. There is no definition of quality behind it other than what the model was trained to prefer, so the first question about any filter is: preferred over what, by whom?
| Recipe | What the model learns | Model and cost | Cut-off | Used by |
|---|---|---|---|---|
| LLM grades, small model imitates | Llama-3-70B-Instruct's 0 to 5 "educational value" score for 460,000 FineWeb pages (the prompt is below) | Linear regression head on the frozen Snowflake arctic-embed-m encoder (110M parameters); 6,000 H100 GPU hours to score FineWeb's 15T tokens (published); here 0.14 s per document on 4 CPU threads (measured, rough) | Rounded score ≥ 3 | FineWeb-Edu (1.3T tokens), SmolLM2; Nemotron-CC trained two more like it on other LLMs' grades |
| Reference against crawl | Tell 200,000 positives (OpenHermes 2.5 instructions and top-voted r/ExplainLikeImFive answers) from 200,000 random pages of a RefinedWeb reproduction | fastText with word bigrams (2.39 GB file); here about 2 ms per document on one CPU thread (measured, rough) | Top 10% of the pool, which is P(hq) ≥ | DCLM-baseline (about 4T tokens), OLMo 2's pretraining mix, Nemotron-CC's ensemble |
| Perplexity under a reference LM | How surprising a page is to a 5-gram model trained on Wikipedia | KenLM n-gram model (4.4 GB) and a SentencePiece tokenizer; CPU only | Below the 30th percentile of a language's perplexity: "head"; 30th to 60th: "middle"; above: "tail" | CCNet (2019); in DCLM's comparison of filters, perplexity filtering scored 29.0 Core against 30.2 for the fastText filter (Table 4, published) |
Sources: FineWeb paper, Section 4; the classifier's model card; DCLM paper, Section 4.4 and Appendix J.1; CCNet paper, Section 3.3 and cc_net's code (section 10 below).
Verbatim from utils/prompt.txt in the classifier's repository (rev 284663cb), lines 1 to 14. Note the additive design: each point has its own criterion, and the fifth asks for "outstanding" material for primary or grade school. The FineWeb paper says this focus was chosen "to avoid having the LLM favor highly technical pages like arXiv abstracts".
fasttext_score among the first 50,000 rows of DCLM-baseline 1.0 is , and 10% of them score below (measured). The classifier was trained on balanced classes but the crawl is overwhelmingly unlike the positives, so almost every page gets a tiny probability and only the ranking matters. Read a fastText probability as a rank, never as a calibrated chance.Click any square to open it in the inspector (section 5). The "either keeps" filter is a stand-in for Nemotron-CC's ensemble, which takes the maximum of its classifiers' bucket ranks; it is not their exact recipe (their classifiers and thresholds differ). Words are counted by splitting on whitespace.
Watch the pile, not the survivors. Run FineWeb-Edu, then switch to DCLM: different squares fall, and step 6 outlines how many of each filter's survivors the other would have thrown away. Switch to "both must keep" and the shard shrinks to documents; "either keeps" keeps . That gap is the whole argument of Nemotron-CC: classifiers with different targets find different good documents, so an ensemble keeps more good text at a given quality.
Two ways to ask it. Rank correlation (Spearman) asks whether they order all documents the same way. Top-slice overlap asks what a filter actually does: if each keeps its top k%, how much of what one keeps does the other keep? The overlap is shown as intersection over union, the measure Nemotron-CC's Table 8 reports.
Reading it. On our WARC, when each keeps its top 10% the overlap is of the union ( of either slice), against about 5% for two unrelated random filters; on 2,000 random FineWeb rows of the same crawl it is . At the published cut-offs the two keep very different amounts (FineWeb-Edu , DCLM of our documents), and the overlap is . Nemotron-CC's figure, 10.1% on CC-MAIN-2021-21, sits in the same range, measured on a whole crawl rather than one file. On the Nemotron-CC sample the correlation is higher ( against ) because those buckets span the whole quality range, including the very low end that both models agree on: agreement depends on the population, and the hard, disputed documents are the ones in the middle of an already filtered crawl.
Scoring 50,000 documents with the FineWeb-Edu encoder needed the GPU (done, section 8), but the DCLM classifier is cheap, so it was run on all 232,000 Llama 3 annotations the FineWeb-Edu classifier was trained from. The share passing DCLM's cut rises steadily with the LLM's educational score: the two notions of quality point the same way, weakly (Spearman ).
The first 4 of the 8 annotation files (232,000 pages from CC-MAIN-2024-10), DCLM P(hq) ≥ . Score 5 has only 6 pages here. On the 50,000-row FineWeb-Edu sample, of documents pass DCLM's cut ( on the 50,000-row FineWeb sample).
Method. The 2,617 documents were split into five strata by what the two classifiers do at their published cut-offs, and 20 documents were drawn from each (seed 0), so the rare disagreements get as many reads as the common case. Each was read (its first 900 characters) and labelled: would I want it in the pretraining data of a general language model? Yes means coherent, informative or well-formed natural text of any kind (news, how-to, recipes, reviews, essays, organisation pages with real content); no means commerce boilerplate, navigation, cookie banners, templated directory pages, spun or keyword-stuffed text; unsure otherwise. A second tag records the format and whether the text reads like spun or machine-generated SEO copy.
Who labelled. The agent that built this lab (Claude), on 2026-10-14; the labels, with a one-line reason each, are committed in src/qual/labels.jsonl (ids only, no text) so they can be re-labelled by a person. One labeller and 20 documents per stratum: each stratum's share has a 95% interval of roughly ±20 points. And human judgement is not the target: DCLM had 16 annotators label about 500 pages (71% inter-annotator agreement) and found that a filter's agreement with them did not predict how good a model trained on its output was (AskLLM agreed best, about 82% ROC-AUC, and trained worse models than fastText filters at about 73%; DCLM, Appendix on human judgement). So "wrongly dropped" below means "dropped although a reader would call it fine text", not "proven to hurt".
Excerpts are the first 300 characters of the PII-scrubbed run0 output (line breaks shown as " / "), with the page's host name only. Four excerpts about private individuals are withheld.
The FineWeb-Edu recipe has two expensive parts: the LLM grades (460,000 Llama-3-70B calls) and the encoder that imitates them. The grades are public, so the second part can be redone with something much cheaper. Here a fastText classifier, the same kind as DCLM's, learns the binary question "did Llama 3 give this page 3 or more?" from of the published annotations, and is tested on it never saw.
How fastText classifies, from its source (fastText v0.9.2): the text is split on whitespace (src/dictionary.cc:208-232; a newline becomes an end-of-sentence token), each word and each word pair is hashed into one of 2 million rows of an embedding table (dictionary.cc:312-323: h = h * 116049371 + hashes[j], then h % bucket), the document vector is the average of its rows (src/model.cc:42-50), and one linear layer with a softmax gives the label probabilities. No attention, no word order beyond pairs: that is why it scores a document in about 2 ms on one core and why it can be fooled by phrasing.
F1 of the "score ≥ 3" class on held-out annotations; dots are seeds (3 seeds up to 20,000 examples, 1 above), the line their mean; threshold on P(hq) chosen on a separate validation split each time. Dashed: the published FineWeb-Edu classifier's F1 on 1,500 of the same held-out rows (see the caveat below). Config chosen on validation: .
| Binary F1 (score ≥ 3) | Macro F1 (both classes) | Spearman with the Llama 3 score | Size, speed | |
|---|---|---|---|---|
| Published FineWeb-Edu classifier (encoder + linear head) | 438 MB; 0.14 s per document on 4 CPU threads | |||
| Our fastText (bigrams), same 1,500 rows | ; about 2 minutes to train on 4 threads |
On all held-out rows our classifier's F1 is (precision , recall , threshold P(hq) ≥ ). Caveat on the published model's row: the 1,500 rows come from the classifier's own training data. Its train/test split cannot be rebuilt (the card's hold-out of 46,867 rows implies about 468,670 annotations at training time; the dataset now holds 467,424), so roughly 90% of these rows were seen in training. With a frozen encoder and a single linear output (769 trainable numbers fitted on 410,000 examples) memorisation is negligible, and its six-class accuracy here, , is close to the card's 71% on its true hold-out.
What "F1 82%" means. The FineWeb paper and the card both report "an F1 score of 82%" at threshold 3, without saying which F1. On the 1,500 rows the published classifier's F1 for the positive class is and the macro F1 over the two classes is ; the training script selects checkpoints by six-class macro F1 (train_edu_bert.py:31, 91), which is here and 50% on the card's hold-out. The 82% is most consistent with the two-class macro F1. Always ask which F1, on which class balance: 9% of pages are positives, so a classifier that drops everything has 91% accuracy.
So is an encoder worth it? On the same rows the encoder beats bigrams clearly in F1 and rank correlation, and takes about 60 times longer per document (0.14 s on 4 threads against about 2 ms on one). On our 2,617 documents our fastText ranks like the published classifier with a Spearman of (and with DCLM's), and keeps documents at its threshold. This is the trade every pipeline makes: DCLM chose fastText for the whole 240T-token pool; FineWeb-Edu paid 6,000 H100 hours for the encoder.
Nemotron-CC scores every document with three classifiers (two FineWeb-Edu-style encoders trained on Mistral 8x22B and Nemotron-340B grades, plus DCLM's fastText), turns each classifier's ranking into 20 buckets of about 5% each, takes the maximum bucket over the three, and groups the 20 buckets into 5 quality levels by annealing an 8B model on each (published, Section 2.2). The public data is partitioned by those levels, so the first 200 documents of each level for CC-MAIN-2024-30 were scored here with the two public classifiers.
Both scores fall monotonically from high to low, which checks that the buckets mean what the paper says. Two things stand out. DCLM passes of "high" and of "medium-high" but only of "medium": the DCLM cut sits near Nemotron's top two levels. FineWeb-Edu passes only of "high": with a maximum over three classifiers, most of Nemotron's top level is there because DCLM or the other classifiers liked it, not the educational one. These are head samples of one part file per level, not a random sample of the levels.
Why not join Nemotron-CC to our WARC? Its files are partitioned by quality level, not by source WARC; finding our file's documents would mean scanning all 722 part files of CC-MAIN-2024-30 (see the root's data README). Nemotron-CC did not use the FineWeb-Edu classifier itself "for license issue, since it is trained with annotations from Llama3" (footnote 18).
CCNet tokenises each page with SentencePiece, scores it with a 5-gram KenLM model trained on that language's Wikipedia, and computes the page's perplexity: 10 to the power of minus the average log10 probability per token, so a page the model finds predictable gets a low number. Pages are then split by per-language cut-offs into head, middle and tail. Its original English models were downloaded (4.4 GB) and its code ported line for line; the probe sentences from the model's documentation come out at 685 ("I am very perplexed") and 12,223 ("im hella trippin"), the same direction as documented.
Green: head (below 340, the 30th percentile of English in cc_net's cutoff.csv); yellow: middle (340 to 520, the 60th percentile); grey: tail. Measured: head , middle , tail ; median . Single CPU thread, under 3 minutes for all documents (measured, rough).
Perplexity measures "looks like Wikipedia", which overlaps with quality only partly: it ranks our documents with Spearman against the FineWeb-Edu score and against DCLM. Of the head bucket, FineWeb-Edu keeps and DCLM ; of the tail, and . The paper itself warns that "Some documents despite being valid text ends up in the tail because they have a vocabulary very different from Wikipedia" (Section 5). One more thing from the code: the paper says each language is split into "three even parts", while PerplexityBucket uses the 30th and 60th percentiles (cc_net/perplexity.py:257-286), so head is 30% and tail 40% of the reference crawl.
CCNet's 5-gram model knows only Wikipedia. The same 2,617 documents were also scored by Qwen3-0.6B, a 0.6B-parameter LM trained on web-scale data: perplexity of the first 512 tokens (float16 weights on the M1 Pro GPU, log-softmax in float32; q_ppl.py). Median perplexity . Its ranking agrees with CCNet's only moderately (Spearman ; the two "lowest 30%" sets overlap of their union), and with the quality classifiers weakly: Spearman with the FineWeb-Edu score and with DCLM's. FineWeb-Edu keeps of Qwen3's least-surprising 30% and of its most-surprising 30%; DCLM keeps and . So a lower-perplexity third is a better third by both classifiers, weakly. The striking part is at the bottom of the scale: the 12 least surprising documents (perplexity ) all read like machine-generated SEO explainers ("Are you in need of large custom aluminum extrusions for your next project?"), and among the 60 hand-labelled documents that at least one classifier keeps, the flagged as reading like generated text (flagged while labelling, a day before this run) have median perplexity against for the other (CCNet: against ). In this sample a modern LM finds generated-looking text the least surprising, so a "keep low perplexity" rule with such a reference model would favour generated filler. The filter's meaning lives in its reference model, exactly as with the classifiers.
The FineWeb-Edu classifier was run on all 50,000 rows of the FineWeb CC-MAIN-2024-30 sample (the same 50,000 rows the Dedup lab uses), next to the DCLM scores already computed on CPU; on the 2,000 rows also scored on CPU the GPU scores agree to within 0.00001. FineWeb-Edu's cut keeps of documents ( of tokens), DCLM's ; documents pass both, an overlap of of the union; with each keeping its top 10% the overlap is , and the rank correlation is . These match the 2,617-document and 2,000-document measurements above, so the disagreement is not an artefact of a small sample.
predict refuses text containing "\n" (FastText.py:211-213), so every pipeline must flatten lines first. DCLM and the Dolma toolkit join lines with a space (dolma/taggers/quality.py:29); datatrove's FastTextClassifierFilter replaces "\n" with newline_replacement, whose default is the empty string (datatrove/pipeline/filters/fasttext_filter.py:47, 99), gluing the last word of one line to the first of the next. With the space, our scores reproduce DCLM-baseline's stored fasttext_score to within on 2,000 rows; with datatrove's default they differ by 0.07 on average and up to 0.97, and on our WARC the keep decision flips for of 2,617 documents. Pass newline_replacement=" ".int_score is int(round(max(0, min(score, 5)))) (run_edu_bert.py:24), so "int_score ≥ 3" means score above 2.5; NeMo Curator labels a document high quality when the raw score is ≥ 2.5 (nemo_curator/stages/text/classifiers/fineweb_edu.py:117-118). Python rounds 2.5 down to 2, so the two differ only at exactly 2.5.run_edu_bert.py:9), and 158 of 159 rounded scores match. All FineWeb-Edu documents that are also in run0's output score ≥ 2.5 here (), and only of our other documents do: our extraction, filters and scores reproduce theirs almost exactly on this file.| What | Where | What to notice |
|---|---|---|
| FineWeb-Edu training | train_edu_bert.py (classifier repo rev 284663cb) 58-60, 73-76, 85-86, 91 | Stratified 90/10 split with seed 42; embeddings and encoder frozen, so only the regression head trains; lr 3e-4 for 20 epochs; best checkpoint by six-class macro F1 |
| FineWeb-Edu scoring | run_edu_bert.py 9, 18, 24 | bfloat16 on GPU; truncation at the encoder's 512 tokens, so only the start of a long page is judged; int_score rounding |
| The annotation prompt | utils/prompt.txt 1-14 | Additive 5-point rubric aimed at primary to grade school |
| NeMo Curator's FineWeb-Edu stage | nemo_curator/stages/text/classifiers/fineweb_edu.py 110-123 (v1.4.0) | Same rounding; "high_quality" if score ≥ 2.5; also wraps the Mixtral and Nemotron-annotated variants (lines 295, 358) |
| datatrove fastText filter | datatrove/pipeline/filters/fasttext_filter.py 40-111 (v0.10.1) | newline_replacement="" default; per-document, paragraph or sentence mode; label scores averaged into metadata |
| Dolma's DCLM tagger | dolma/python/dolma/taggers/quality.py 18-43 (v1.2.1) | Joins lines with a space; flips the probability when the top label is __label__cc |
| fastText internals | src/dictionary.cc 208-232, 312-323; src/model.cc 42-50 (v0.9.2) | Whitespace tokens, hashed word n-grams, averaged embeddings |
| CCNet | cc_net/text_normalizer.py 158-173; cc_net/perplexity.py 38-39, 207-222, 257-286 (commit bda555bd, archived) | Normalise (lower case, accents, digits to 0, punctuation), per-line log10 score, doc perplexity, 30th and 60th percentile buckets |
Scripts for this tab, all reusable on any document set: src/qual/q_common.py (scorers with each pipeline's exact preprocessing), q_check_models.py, q_score.py, q_train_ft.py, q_ccnet.py, q_sample.py, q_make_data.py; labels in labels.jsonl.
Why use a fastText classifier at all when encoders are better? Cost at the scale that matters: a few milliseconds per document on one CPU core against a GPU forward pass; DCLM scored a 240T-token pool. Here the encoder agreed better with the LLM labels (F1 against ) at about 60 times the time per document, on 4 threads against one.
Your quality filter keeps 10%. Your run needs 15T tokens and you have 1.3T after filtering. What do you do? Repeat (up to about 4 epochs costs little, Muennighoff et al.), loosen the threshold, ensemble classifiers with different targets to raise recall (Nemotron-CC), and rephrase the lower tiers with an LLM instead of dropping them; check each choice with small annealing runs.
How do you know a quality filter is not throwing away something important? Stratified sample of what it drops, read and labelled; per-domain and per-format drop rates; perplexity of the trained model on held-out slices such as news, dialects and code; and ablation models trained with and without the filter.
Two classifiers keep 10% each and overlap 15%. Which do you use? Neither choice is answered by the overlap; train small models on each kept set and on the union, and compare on your target evaluations. Low overlap says the union is a cheap way to more good tokens.
What does the LLM-annotation step cost, and what is it for? Hundreds of thousands of LLM calls once (FineWeb-Edu: 460,000 pages); the labels then train a small model that is cheap enough for the whole crawl. The prompt is the real definition of quality, so read it.
Published numbers: FineWeb (arXiv 2406.17557), DCLM (arXiv 2406.11794), Nemotron-CC (arXiv 2412.02595), Tables 8 and 9, CCNet (arXiv 1911.00359), FineWeb-Edu classifier card, DCLM fastText model, all read 2026-10-14. Measured inputs: the root's running example (src/data/README.md), FineWeb-Edu Llama 3 annotations rev 72df4c92, Nemotron-CC head samples, cc_net's English LM. The sibling child page on quality classifiers and data selection will go deeper.
A pretraining run draws its tokens from several domains (web, code, math, papers, encyclopedias, ...) and the mixture says how many tokens come from each, and when. This lab gives the overview: what the weights mean, how temperature sampling and repetition trade off on the running example's real domain sizes, how labs choose weights with small proxy models, how a short final stage changes the same token budget, and why aggressive filtering makes long runs a mixing problem.
Labels: measured here on an Apple M1 Pro (CPU) on 2026-10-14 or 15; published by the authors at their scale, not rerun here; derived by a stated formula from published or measured numbers. The depth (a DoReMi step-by-step animation, a mixing-law fitter on RegMix's 1,088 released runs, a stage-by-stage token-budget planner) is on the child page Data mixing, curricula and continued-pretraining ratios.
The proxy experiment below (shared with the child page) trains on five domains, each a public dataset the topic's samples come from. Their full sizes are published in five different units, because each card counts with its own tokenizer, or in words or bytes. Converting them to one unit is the first step of any mixing plan; here each is converted to GPT-2 tokens with a ratio measured on the topic's sample of that dataset.
Pick a token budget and a way to set the weights. The calculator shows each domain's weight, the tokens it supplies, its epochs, and its fresh-token equivalent: Muennighoff et al. fit how much repeated data is worth, D′ = U + U·R*·(1 − e−R/R*), with U unique tokens, R repetitions beyond the first pass and R* = 15.39 fitted (arXiv 2305.16264, App. A, published). Four epochs are worth 3.73 fresh passes (93%), sixteen are worth 10.58 (66%), and no amount of repetition is worth more than about 16.4 passes. The law was fitted on one corpus at a time; applying it per domain is this calculator's approximation (derived).
Bars: top, natural shares (T = 1); bottom, your setting, sliding from the natural shares when you change it. Epochs in orange pass 4 (the point after which Muennighoff et al. see measurable loss), underlined past 16 (repetition is then worth little). The curve is the value of a repeated token (D′ divided by tokens drawn) against epochs; the dots are your domains. Sizes are GPT-2 tokens, converted as in the table above.
Sizes say how much of each domain exists, not how much it helps. Every published method answers the second question the same way: train proxy models (small models, cheap runs) on different mixtures, measure, and transfer the answer to the big run. They differ in what they train and how they read the answer.
| Method | What it trains | How it picks the weights | Reported result (published) |
|---|---|---|---|
| Heuristics | nothing | natural, temperature, UniMax, or a mix that worked before | Still the baseline every method is compared with; a published mix was tuned for someone else's model size and budget. |
| DoReMi | a 280M reference model, then a 280M proxy | Group DRO: during proxy training, upweight the domains whose loss is furthest above the reference's (the excess loss); average the weights over training | An 8B model on the weights gained 6.5 points average one-shot accuracy and reached the baseline's accuracy 2.6 times faster; the search cost 8% of the 8B run's compute (DoReMi). |
| Data Mixing Laws | many small runs at different mixtures | fit loss as c + k·exp(Σ tjrj) of the proportions r, nest it with scaling laws, minimise | A 1B model on 100B RedPajama tokens matched the default mix trained 48% longer (arXiv 2403.16952). |
| RegMix | 512 models of 1M parameters, 1B tokens each, random mixtures | regress loss on the mixture (linear or LightGBM), score many candidate mixtures, average the best | Beat DoReMi on the 1B check below at about a tenth of its search compute (RegMix). |
| The check: Aioli | re-runs of the methods on the same data | (a new method, plus a test of the others) | No existing method beat simple stratified sampling (equal weight per domain) on average test perplexity in every setting (Aioli, Table 2, third-party for the methods it tests). |
RegMix trained a 1B model on 25B tokens of The Pile with each mixture and averaged 14 downstream tasks. The differences are a point or two of average accuracy, and the simplest alternative, web text only, ties DoReMi.
RegMix, Table 4, published; values as transcribed on the child page. "Best on" counts the 14 tasks where a mixture scored highest. The axis starts at 44, not 0. Search compute in FLOPs: DoReMi 3.7e19, RegMix 3.5e18 (); Human, ODM and Pile-CC need no search.
The child page designed one small experiment on the five domains above, so the page can show a mixture regression fitted on its own data rather than only quoting papers. This tab reuses it unchanged (no second experiment): the same script, the same pools, the same outputs.
| Part | Design |
|---|---|
| Data | 20M to 42M GPT-2 training tokens per domain streamed from the five datasets above (same files and revisions as the topic's samples), about 5% held out per domain. The experiment's "natural" shares are those pool sizes (15% to 31%), not the real-world shares of the table above (web ). |
| Proxy model | A tiny GPT: 793,344 parameters outside the embedding (7,259,008 with the tied 50,257-token embedding), context 256. |
| Sweep | Designed, not run (dropped 2026-10-15): 48 mixtures drawn as in RegMix (a Dirichlet whose parameters are the pool shares times a scale drawn between 0.1 and 5, so some mixtures are near-uniform and some almost one domain), 2,000 steps of 32 × 256 tokens (16.4M tokens) each; plus three anchors: natural, uniform, temperature 2. |
| Target and fit | Designed, not run: mean held-out loss over the five domains (one choice among several: RegMix targeted Pile-CC validation loss); the Data Mixing Laws form fitted to the sweep; then RegMix's selection: score 100,000 sampled mixtures, average the best 128. |
| DoReMi | Run on 2026-10-16: a reference proxy on natural shares, then Group DRO (η = 1), 4,000 steps of 30 × 256 tokens each, M1 Pro GPU. |
| Rank check | Designed, not run: two larger models (10.6M non-embedding) on about 98M tokens each: natural shares against the predicted best. If the best still wins at this scale, the regression transferred. |
Modern runs change the mixture during training: a long first stage on broad data, then a short final stage on the best data (math, instruction-like and question-answer text, filtered web, often partly synthetic) while the learning rate decays to zero. Labs call it mid-training or annealing. The animation takes OLMo 2 7B's real budget, 4T tokens of pretraining plus 50B tokens of the Dolmino mix, and plays it two ways: the published two stages, and one static mixture containing the same tokens per group spread evenly over the run.
OLMo 2, Tables 4, 9 and 13, published. Stage 1 is drawn with the shares of the 3.90T-token OLMo 2 1124 Mix (Table 4; the 7B trained 4T tokens on it); stage 2 with the 50B Dolmino mix's "Mix %" column (Table 13). Groups are this page's: arXiv counts as papers, FLAN and Stack Exchange as instruction and Q&A, the filtered DCLM slice of stage 2 as high-quality web. Token counts per group are derived as share times stage tokens. The learning-rate line is a sketch of the published schedule (warmup, cosine decay toward 10% of the peak, then linear decay to zero during mid-training), not a plot of logged values. What the stage bought (GSM8K 24.1 to 67.5) is on the Reading tab, section 7.
published stage sizes, fraction of the run's tokens derived; log scale. Not a rule: from 40 million tokens to 40% of the run. OLMo 2's own text calls mid-training "5 to 10% of training FLOPs" because it counts every mid-training run averaged into the final model ("souping"): three runs of 50B for the 7B (), three of 100B and one of 300B for the 13B (). Any single path to the final 7B weights saw 50B mid-training tokens, 1.2% of its tokens. Llama 3 also has a long-context stage of about 800B tokens before its annealing.
The quality lab's classifiers keep the top slice of the web; dedup removes copies. Both shrink the pool of unique tokens, and a long run must then repeat it. Nemotron-CC made this argument with numbers: DCLM-baseline and FineWeb-Edu "contain around 80% near-duplicates", leaving about 1T and 0.2T unique tokens, while their filters remove 90% of the data; a 15T-token run (Llama 3.1's horizon) on either would see the same documents many times (Nemotron-CC, Section 1 and Table 4). Its answer was to keep more of the crawl (an ensemble of classifiers sorted into quality buckets instead of one cut) and to add rephrased synthetic text.
Dataset sizes and unique tokens (after global fuzzy dedup of the real tokens): Nemotron-CC, Table 4, published, trillions of tokens. Epochs and fresh-token equivalents are derived: the whole budget drawn from one corpus's unique tokens, valued with Muennighoff et al.'s law as in the calculator. Nemotron-CC's 1.9T synthetic tokens are left out of "unique"; counting them as fresh would raise its bar further. A thought experiment, not a training result.
Continued pretraining (CPT) is the same mixing decision made later: train a finished model further on one domain and mix general data back in (replay) or it forgets. The CMR scaling law reads the critical mixture ratio, the largest share of domain data that keeps general loss within a tolerance, off a few short probe runs; bigger models and domains closer to the general data tolerate more (29.8% to 47.8% on finance from 460M to 3.1B, Gu et al., arXiv 2407.17467). Data mixing, section 6, owns CPT: forgetting, re-warming, schedules and a CMR calculator with these ratios; this lab's bar chart of them was retired on 2026-10-24.
Post-training data is small, structured and mostly written by other models. This lab opens four real samples, one per kind of data, measures them, runs a simple quality filter and three checks on them, and shows the same web page before and after a model rewrites it.
Each stage of post-training (explained in Reading, section 9 and, for how the data is used, on Alignment: SFT, RLHF, DPO Family, RLVR) eats a different shape of row. The samples were drawn by the setup step (see the root's src/data/README.md); a sample's shares are not the full mixture's: the Tulu 3 SFT sample holds 1,000 rows from each of five subsets, while the full mixture has 939,344 rows from many more (Tulu 3, Table 7). Lengths are counted in Qwen3 tokens.
Short excerpts of real rows, chosen by reading to show each kind of row and each rule that fires. Rows from WildChat (real user conversations) and the adversarial safety subsets are shown only where the prompt is harmless; they count in every statistic.
The problem. Distilled and crowd-sourced rows carry junk: a teacher model announcing it is ChatGPT, a "knowledge cutoff" sentence, a response stuck in a loop, the same conversation twice. How it works. Cheap rules, applied in order, each removing what it matches. The text rules here are Ai2's own clean-up scripts for the Tulu 3 SFT mixture, run unchanged from open-instruct (commit 72f46040): filter_dataset_by_keywords.py (model and provider names in assistant turns, PATTERNS lines 45 to 105), filter_cutoff_date.py (CUT_OFF_PATTERN lines 17 to 37) and filter_ngram_repetitions.py (repeated blocks or sentences, lines 679 to 694). The other rules are defined here and named as such. The cost is a regex per row; the risk is what the rules take that you wanted.
How to check a filter like this: count what each rule removes per subset, then read what it removed. On this sample the identity rule fires on refusals in the WildGuardMix subset that say "As an AI developed by OpenAI" (row examples above); the cutoff rule checks every message, so one sentence in any turn of a long WildChat conversation removes the whole conversation.
An RLVR row is a prompt plus a checker: a program that extracts the final answer from the model's response and compares it with the stored label. The reward is only as good as both halves. Six ways to extract and compare, run on every GSM8K and MATH row of Tulu 3's RLVR set against the reference solution of the same problem (GSM8K and MATH training splits, joined on the question text: rows): a correct checker should accept all of them.
Two ways to turn web text into synthetic training text (Reading, section 8): rephrase it (WRAP: keep the content, change the style) or generate from it (Cosmopedia: use the page as a seed for a new textbook section or blog post). Pick a document and a style; the animation rewrites the source into the output. Words in a 4-word sequence that also occurs in the source turn green; numbers from the source that survive are kept, the rest struck through.
The problem: a training row that contains a test question makes the test score a memory test. How it works: both texts are normalised (lower-case, punctuation to spaces; datatrove's simplify_text, numbers kept), cut into word n-grams, and compared. GPT-3 flagged any shared 13-gram; Tulu 3 flags a test item when more than 50% of its tokens sit inside 8-grams shared with one training row, and removes a training set that overlaps more than 2% of a benchmark (Tulu 3 paper, decontamination). The rows and items below are real pairs that some rule flagged, labelled by reading on the Decontamination child page; the matching runs live here with that page's normalisation, so its numbers and these agree.
scripts/dg_contam.py and hand labels), 29,615 benchmark items: MMLU, GSM8K, ARC-Challenge, ARC-Easy, HumanEval, MATH-500, HellaSwag. Labels are an agent's reading, not a human annotator's.overall_score with "one of the remaining 3 at random" (dataset card); its create_dataset.py (lines 29 to 37) only re-draws when the same completion comes up, so equal scores are allowed. Tulu 3 trains SFT at a maximum sequence length of 4,096 (open-instruct configs/train_configs/tulu3/tulu3_sft.yaml, line 11).open_instruct/ground_truth_utils.py (lines 216 to 220, 243 to 278, 297 to 307) and math_utils.py; IF constraints through if_functions.py (as IFEvalVerifierOld, lines 376 to 389); math-verify 0.8.0. Reference solutions: openai/gsm8k train (rev 740312ad), DigitalLearningGmbH/MATH-lighteval train (rev 0530c786).src/post/: pt_stats.py, pt_filter.py, pt_checkers.py, pt_rephrase.py, pt_generate.py, pt_make_data.py, run_pending.sh; notes in src/post/README.md.The tools and datasets of data curation on one map, each with what it is, when to use it, its licence, and whether it is still alive, checked live on against PyPI, the GitHub API and feeds, and the Hugging Face API. The question this tab answers: for each stage of the pipeline, which tool or corpus would you pick today, and what does that choice commit you to?
Labels: measured run here (Apple M1 Pro, CPU), published stated by a paper, card or README, vendor claim a maker's own performance claim, not checked, judgement this page's opinion (verdicts, the picker's rules). Status: active release or commits in the last few months, maintained fixes but slow releases, quiet no meaningful change for about a year, archived read-only on GitHub.
A curation pipeline is a chain of stages; each stage has a few tools. Click a stage to filter the cards, then a card for its details. Versions, dates, licences and the archived flag are machine-read (the sources are linked in each card); the one-line verdicts are judgement.
Answer four questions; the picker proposes a tool per stage with the reason, the runner-up, and any licence trap. The rules are judgement built from the facts in the atlas (each tool name opens its card); they encode the usual trade-off: CPU stages are cheap per document and run on everything, GPU stages are expensive and run only on what survives.
Each dot is a public corpus at its first public release, placed by date; a line means the later corpus was built from the earlier one (a filter, a dedup or a mix). A small CC mark means it was extracted directly from Common Crawl. Play the years to watch the field move from mixes of curated sources (The Pile, RedPajama) to filtered web (RefinedWeb, FineWeb, DCLM), then to model-scored and rephrased web (FineWeb-Edu, Nemotron-CC) and licence-clean sets (Common Corpus, Common Pile). Then switch to today: the same corpora coloured by what you can download now and under which terms.
Select a dot (or a name in the table below) for the corpus card.
Three layers of rights stack on every web corpus: the original pages' copyright (which no dataset licence can waive), Common Crawl's Terms of Use for the crawl itself, and the dataset's own licence for the compilation (the selection, cleaning and metadata). ODC-By (Open Data Commons Attribution) licenses only the compilation and asks for attribution; it says nothing about the pages inside. Gated datasets add a click-through agreement on top. The table reads each licence verbatim from the Hugging Face card metadata (fetched ); it is not legal advice.
The atlas says datatrove filters inline and the Dolma toolkit tags, then mixes. To see what that means, the same twelve small documents go through both. They are illustrative: written for this test (no real pages), each built to trip one rule: an exact copy, a near copy, a banner, a repeated line, German text, hashtag spam, a menu, lorem ipsum, an email address, a code fragment, and two clean articles. The runs are measured: both libraries' real code, at the versions shown.
A finished corpus is stored twice. First as documents (text plus metadata) in Parquet or compressed JSONL, so it can be inspected, filtered again and published. Then, after tokenization, as token shards: one flat array of token ids per file plus an index of where each document ends, which the training loader memory-maps and cuts into fixed-length windows. The second form is what a pretraining run actually reads.
Packing lays documents end to end into fixed-length windows instead of one document per padded window: on these 2,000 documents almost every position becomes real text (the numbers are in the loader note below). Storage and loading at scale, section 6, owns it: a placement stepper on the same documents, attention per window and document masks. This tab's packing stepper was retired on 2026-10-24.
Sources: PyPI JSON API, GitHub REST API and Atom feeds, Hugging Face API and dataset cards, arXiv API, all read on ; papers and READMEs linked in each card. Scripts: src/map/fetch_meta.py, gen_data.py, toy/, storage/.
The tabs of this page, its nine child pages (continued pretraining now lives in Data mixing), the knowledge base pages it leans on and the best outside resources, each with an approximate time and its date. Outside sources are marked self-reported (the makers evaluating their own dataset or method) or third-party. Links checked on 2026-10-14.
The map: the pipeline with one WARC file's counts and each stage's owner, what each stage is worth as published, one section per stage (definition, the comparison only the root can make, the owning child's sections), choosing, a pipeline-sizing calculator, the child pages. 35 min, plus 6 in closed details
The funnel on a real Common Crawl file for three extractors, URL filtering, language ID, every heuristic rule with its drops, PII, compared with FineWeb's funnel; widened to four WARC files. 25 min, plus 2
Exact, MinHash, suffix-array, Bloom-filter and semantic dedup on the running example; MinHash against true Jaccard on 3.6 million pairs; clusters and boundary pairs; cross-crawl copies and a whole FineWeb shard joined. 32 min, plus 4
FineWeb-Edu, DCLM and CCNet perplexity filters on the same documents, a fastText classifier trained on CPU, hand-labelled wrong drops. 23 min, plus 3
A mixture calculator on the running example's five domains, OLMo 2 staging before and after, long horizons; DoReMi measured on five domains. 15 min, plus 2
Tulu 3 SFT, UltraFeedback, RLVR and Cosmopedia samples measured; a filter, answer checkers and a contamination checker; rephrasing before and after. 20 min, plus 2
Pipelines, extractors, language ID, dedup libraries, storage formats and every corpus with status, dates and licences; a tool picker and a corpus lineage. 14 min, plus 7 in tables
Common Crawl from zero, the lineage tree, what each corpus kept of the running example, licences, what to use. 31 min, plus 15
Six extractors and every rule measured; language ID; library defaults; URL and toxicity filters. 32 min, plus 25
Each method on the same documents, with costs; MinHash step by step, a Band designer, union-find clusters. 34 min, plus 23
The classifiers, their reference sets and biases; thresholds, perplexity, DSIR and gradient-based selection. 42 min, plus 13
Decontamination rules over every sample, PII detectors, opt-outs and provenance. 38 min, plus 21
Weights, repetition, proxy methods (DoReMi measured), stages, and continued pretraining with its replay ratios. 45 min, plus 23
Generating from seeds, rephrasing 200 pages in WRAP's four styles, checked synthesis, collapse. 42 min, plus 13
SFT lineages, traces, preference pairs and a judge measured in both orders, checkers, environments. 32 min, plus 24
Formats, token files, packing, sharding, shuffling, streaming, resuming. 34 min, plus 5
The training runs these datasets feed, stage by stage. 26 min, plus 22
The pretraining run itself: objectives, schedules, scaling. see the page
Why "annealing" names both a data switch and a learning-rate decay, and the WSD schedule mid-training rides on. see the page
Why token counts depend on the tokenizer, and training a tokenizer on your corpus. see the page
How the post-training data of section 9 is consumed. see the page
Teacher-generated SFT data and small-model recipes. see the page
Why RLVR prompts need correct keys and the right difficulty. see the pages
Contamination from the evaluation side; LLM judges and their biases. see the pages
Embedding models and similarity search, the machinery behind semantic dedup. see the page
Columnar formats and storage engines behind Parquet. see the page
Hugging Face, 2024. The best end-to-end account of building a web corpus, every stage ablated. Self-reported. about 1 h 30 min
Li et al., 2024. A benchmark for data curation at fixed compute; extraction, dedup and filter comparisons (Tables 3, 4, 16). Self-reported for its own filter, third-party for the others it reruns. about 1 h 30 min
NVIDIA, December 2024. The quality-against-quantity trade-off, classifier ensembles and rephrasing. Self-reported. about 45 min
Dwarkesh Patel and Jerry Han, 2026-09-08. Recipes crossed with corpora from 2019 to 2025. Third-party, small scale; our reading, with the curves recomputed: Pretraining progress is mostly coming from data (11 min). 12 min
AI2, November 2024. The open reference for post-training data: SFT mixture, on-policy preferences, RLVR, decontamination. Self-reported. about 1 h 30 min
FineWeb paper (2024, 1 h 30 min); RefinedWeb (2023, 45 min); Dolma (2024, 1 h 30 min); T5, Sections 2.2 and 3.4 (2019, 30 min); Common Pile v0.1 (2025, 45 min); Essential-Web v1.0 (2025, 30 min). All self-reported.
Deduplicating Training Data Makes Language Models Better (Lee et al., 2021, 45 min); SemDeDup (2023, 30 min); Scaling Data-Constrained Language Models (Muennighoff et al., 2023, 1 h; repetition and the limits of dedup).
SmolLM2 (2025, 1 h; FineWeb-Edu against DCLM, staged mixes); the DCLM and Nemotron-CC papers above.
DoReMi (2023, 45 min); Data Mixing Laws (2024, 45 min); RegMix (2024, 45 min); Aioli (2024, 45 min; third-party check of the others); CMR scaling law (2024, 45 min); OLMo 2 (2024, 1 h 30 min; Dolmino); Llama 3, Section 3.1 (2024, 30 min).
Cosmopedia blog (2024, 25 min); Rephrasing the Web (WRAP) (2024, 45 min); BeyondWeb (DatologyAI, 2025, 45 min; a vendor's report); AI models collapse when trained on recursively generated data (Nature, 2024, 40 min); Is Model Collapse Inevitable? (2024, 40 min; third-party test of the collapse premise).
README and examples/fineweb.py; v0.10.1 read for this page. about 30 min
Taggers, mixer and the Rust Bloom filter. about 20 min
GPU curation on Ray (since 26.02); has a CPU smoke-test path. about 25 min
WARC, WAT and WET, crawl listings and index access. about 15 min