Notes

OpenWebText

GPT-2 was trained on a corpus called WebText that OpenAI described in a paper but never released. OpenWebText is the community's rebuild of it from that description — and it became one of the most reused pretraining corpora in open research.

The recipe and the reproduction

WebText's trick was a cheap human quality filter: instead of crawling the web indiscriminately, take every outbound link posted to Reddit that received at least three karma, on the theory that a person found it worth sharing. The reproduction followed that exactly — pull links from public Reddit submission dumps, fetch the pages, extract the text, drop non-English documents, and deduplicate. The result is roughly 8 million documents and about 38 GB of text, released openly in 2019.

Why it is still used
  • It is the standard corpus for reproducing GPT-2-scale results. nanoGPT trains on it by default, which makes it the dataset many people meet first when they pretrain anything themselves.
  • Its size is a sweet spot: large enough that a few-hundred-million-parameter model cannot simply memorise it, small enough to download and tokenise on one machine.
  • OpenWebText2, an extended version with more Reddit years and document metadata, is one of the component corpora inside The Pile.

It also carries the limits of its source. Reddit-shared links skew towards English, towards the demographics of Reddit at the time, and away from paywalled or long-form material — a reminder that in pretraining, filtered for quality always means filtered by somebody's proxy for quality.

OpenWebText is an open reproduction of WebText, the unreleased corpus behind GPT-2. It was built by scraping every web page linked from Reddit with at least three karma, then deduplicating and filtering to English — about 8 million documents and 38 GB of text. It matters as the default corpus for reproducible GPT-2-scale pretraining, and as the clearest example of using a human signal as a cheap quality filter.

To teach a language model to write, you first need an enormous pile of decent text. One clever shortcut: collect the web pages that people bothered to share and upvote on Reddit, on the grounds that a human already judged them worth reading. OpenAI used that idea for an early version of the technology behind today's chat assistants, but kept its collection private. OpenWebText is the version volunteers rebuilt and published — roughly eight million web pages, free for anyone to download. It let researchers outside the big labs train and study comparable models, which is a large part of why open AI research exists at all.