Garbage in, garbage out — at 30-trillion-token scale.
The open frontier recipes of 2026 disclose roughly 28-32T+ pretraining tokens: GLM-5 trained on 28.5T (Feb 2026) and DeepSeek-V4 on 32T+ (Apr 2026). Quality, not raw volume, is still what separates a great model from an also-ran. The pipeline starts from raw web crawl and runs through filtering, deduplication, decontamination and model-based quality scoring. The result is blended with code, math, multilingual, synthetic and, increasingly, native image/video/audio data. Agentic RL environments are now a second data supply chain sitting alongside the pretraining corpus.
A frontier-grade implementation, in order.
Common Crawl WARC dumps → trafilatura/Resiliparse for HTML→text. Filter by language ID (fastText), domain blocklists and NSFW classifiers. Keep PDFs, code repos and long documents as separate streams, since you will need them for long-context training.
Label a few hundred thousand pages with a strong LLM, then distill the labels into a small classifier (the FineWeb-Edu pattern). Drop most of the web, but rephrase rather than discard the middle band (Nemotron-CC style).
MinHash + LSH at document level (Jaccard ~0.7), then semantic dedup (SemDeDup) and paragraph-level near-dup removal. Expect a 60-80% reduction on raw crawl.
Do n-gram and embedding overlap checks against every eval you might report, including new suites (HLE, FrontierMath, ARC-AGI, SWE-bench Pro, Terminal-Bench). With so many benchmarks saturated, a contaminated point is a fake headline.
Web 55-70%, code 15-25%, math 5-10%, multilingual 5-15%, books/papers 1-5%, plus interleaved image/video/audio for a native multimodal model. Fit mixture weights with small-scale ablations on your own data, then anneal on the highest-quality slice and long documents at the end.
Rephrase web text, generate textbook-style rewrites (Phi) and distill reasoning traces. Separately, build a library of verifiable environments (unit-tested repos, sandboxed terminals, browsers) that post-training RL will consume.
In rough order of foundational → recent. Click any title to open the arXiv abstract.
DeepSeek-AI · 2026
Apr 2026. 1.6T/49B MoE pretrained on 32T+ tokens; tech report linked from the release notes.
Moonshot AI · 2026
Native text/image/video; vision encoder trained purely with next-token prediction.
Zhipu AI · 2026
744B/40B MoE trained on 28.5T tokens; asynchronous agent RL.
Qwen Team (Alibaba) · 2026
Trained on over 100M hours of audio-visual data.
Various · 2026
Data scaling laws for agentic RL environments.
ByteDance et al. · 2025
1.4B/2.6B models on 7.7T tokens — extreme over-training.
Jiang et al. · 2025
NeurIPS 2025 Best Paper.
Penedo et al. (Hugging Face) · 2024
Li et al. · 2024
NVIDIA · 2024
Maini et al. · 2024
Chan et al. · 2024
Microsoft · 2024
Sardana et al. · 2024
Muennighoff et al. · 2023
Abbas et al. · 2023
Penedo et al. · 2023
Hoffmann et al. (DeepMind) · 2022