Nobody trains a model on the raw web. Follow the four stations that turn the open internet into a small, clean, carefully-blended training recipe — gather, extract, deduplicate, mix. Play with each step.
Rank the whole web by authority and keep only the top slice — before fetching a single byte.
You can't crawl the whole web on a fixed budget — so before fetching anything, a lab ranks domains by authority and keeps only the top slice.
A crawled page looks big, but almost none of it is prose a model can learn from. This is one real 104.6 KB page, every rectangle sized by its bytes.
Strip pages down to clean text, then blend in denser sources — code, maths and books.
The last step showed how little of a page is text. This is the machine that extracts that text and turns it into something a GPU can train on — fast.
.bin that streams straight from disk (NVMe) into GPU memory (VRAM), with no re-parsing.Raw web text is mostly chatter — thin on step-by-step reasoning. Labs deliberately blend in denser sources, but the mix is a balancing act.
Remove exact, near, and reworded copies so the model learns instead of memorising.
See a sentence 100 times in training and a model stops learning it and starts memorising it — prompt the opening words and it recites the rest verbatim. Deduplication is an information-density dial.
Dedup is a balancing act: strip too little and the model memorises; strip too much and you lose useful repetition. A staged funnel gets the density up while keeping enough volume.
Decide how much of each kind of text — and manufacture more of the dense stuff when it runs out.
The raw web is about 82% general chatter and almost no code or math. Train on it as-is and most of the model's capacity learns to autocomplete blog posts — so labs deliberately rewrite the mix.
When the human supply of dense text runs dry, labs make more — a frontier model rewrites messy web pages into clean, textbook-style prose.
Real and synthetic streams are clean, deduplicated, and verified. The last step blends all five into one multi-trillion-token schedule the trainer reads start to finish.
.bin/.idx files the GPUs stream.You've walked the whole pipeline end to end. Part 2 opens each station up — the robots.txt and copyright rules, the code and PDF cleanup, the three dedup algorithms, and the temperature and epoch knobs that tune the recipe. Same four stations, one level deeper.