Notes

Wikipedia Dumps

Every pretraining corpus needs a source of clean, factual prose to balance the sprawl of scraped web pages, and the most dependable one is free. Wikimedia publishes complete snapshots of Wikipedia, in every language it hosts, as downloadable archives — Wikipedia dumps are those snapshots, the full article text and edit metadata, regenerated on a fixed schedule.

What you actually download

The files are XML and SQL archives, and the article dump arrives as wiki markup: templates, infoboxes, tables, reference tags, inter-language links. Turning it into training text is a cleanup job:

  • strip markup and expand or discard templates (WikiExtractor and mwparserfromhell are the usual tools);
  • drop redirects, disambiguation pages and stubs;
  • choose a language set, since coverage runs from six million English articles down to a few thousand in low-resource languages.
Why it earns its place

English Wikipedia is only a few billion tokens, a rounding error beside Common Crawl derivatives such as C4 or FineWeb, but its density of checkable fact per token is exceptional — which is why it appears in nearly every published data mixture from BERT through LLaMA, and inside aggregate corpora such as The Pile and RedPajama. Builders routinely upsample it, taking two or more passes over Wikipedia while seeing web text once. It is also the sharpest illustration of the knowledge cutoff: a model's grasp of a topic reflects the day its dump was cut, and an article rewritten after that date is invisible to the weights until someone trains again.

Wikipedia dumps are Wikimedia's periodic full snapshots of Wikipedia — article text and metadata in XML and SQL archives, published per language and free to download. They give a pretraining mixture dense, well-edited, factual prose, and are commonly upsampled relative to web text for that reason. Using them means stripping wiki markup first, and accepting that factual recall freezes at the date the snapshot was cut.

Wikipedia offers a copy of itself to anyone who wants one. Every couple of weeks it packages up all of its articles, in every language, into files that anybody can download — a dump. These files are a favourite ingredient when teaching a language model to write, because the text is clean, carefully edited and full of facts you can check, which most of the internet is not. There is one catch worth knowing. A dump is a photograph taken on a particular day. Anything written on Wikipedia after that day is simply not in the model, which is part of why an assistant can be confidently out of date.