Dolma is an open pretraining dataset of roughly three trillion tokens of mostly English text, assembled by the Allen Institute for AI to train the OLMo family of open language models. In the Topic of training data within artificial intelligence, Dolma matters because it publishes not only the text but also the full curation pipeline, so researchers can inspect, reproduce and modify every filtering decision.
The name stands for “Data to feed OLMo’s Appetite”. Its significance lies less in raw size than in transparency: most commercial pretraining corpora remain undisclosed, which makes it hard to study how data composition shapes model behavior. Dolma turns that question into something that can be tested openly.
What the Dolma dataset contains
The Dolma dataset is a mixture of web, code, academic, encyclopedic, literary and conversational text, each processed by a source-specific pipeline. The web portion dominates by volume, while smaller sources add domain diversity and higher average quality. The first public release (version 1.0, 2023) contained about three trillion tokens measured with the GPT-NeoX tokenizer across roughly five billion documents.
The table below summarizes the main components of the original release. Token counts are approximate and differ between versions because later releases changed filters and added sources.
| Source | Content type | Approximate share of tokens |
|---|---|---|
| Common Crawl | Filtered web pages | About 75 to 80 percent |
| The Stack | Permissively licensed source code | About 13 percent |
| peS2o | Academic papers from Semantic Scholar | About 2 percent |
| Conversational threads | About 3 percent | |
| Project Gutenberg | Public-domain books | Under 1 percent |
| Wikipedia and Wikibooks | Encyclopedic reference text | Under 1 percent |
Later versions, such as Dolma 1.7, added sources including StackExchange, arXiv, OpenWebMath and curated reference collections, and applied stricter quality filtering. As a result, version 1.7 is smaller in tokens than version 1.0 but was designed to yield better downstream accuracy per training token.
How the curation pipeline processes raw text
Dolma was built with an open-source toolkit that applies a fixed sequence of stages to every document. The toolkit uses taggers that attach scores or labels to text spans, followed by mixers that keep or drop spans according to configurable rules. This separation lets researchers rerun the pipeline with different thresholds without recomputing every signal.
The stages below appear, with source-specific variations, across the corpus. Their order matters: cheap filters run first so that expensive steps such as deduplication process less data.
| Stage | Technique | Purpose |
|---|---|---|
| Language identification | fastText classifier with a score threshold | Keep mostly English documents |
| Quality filtering | Gopher and C4 style heuristic rules | Remove boilerplate, short or garbled text |
| Content filtering | Toxicity classifiers and PII pattern matching | Reduce harmful text and personal data |
| Deduplication | URL, document and paragraph matching with Bloom filters | Remove repeated content |
| Decontamination | Overlap checks against evaluation sets | Limit benchmark leakage |
Personal information such as email addresses, phone numbers and IP addresses is masked with placeholder tokens rather than removed entirely, while documents with many such matches are dropped. Paragraph-level deduplication is especially important for web text, where navigation menus and legal notices repeat across millions of pages.
How Dolma compares with other pretraining corpora
Dolma belongs to a group of open web-scale corpora that differ in size, source mix and documentation. The comparison below focuses on properties that affect research use rather than on exact token counts, which change between releases.
| Dataset | Main sources | Distinguishing property |
|---|---|---|
| Dolma | Web, code, papers, books, Reddit, encyclopedias | Released with toolkit and trained OLMo models |
| The Pile | Twenty-two curated academic and web subsets | Early diverse corpus of about 800 GB |
| C4 | Single filtered Common Crawl snapshot | Simple heuristic cleaning for T5 |
| RedPajama | Reproduction of the LLaMA data recipe | Very large web portion with quality signals |
| FineWeb | Many Common Crawl snapshots | Web-only corpus with ablation-tested filters |
The decisive difference is the pairing of data and models. Because the OLMo models were trained on Dolma and released with intermediate checkpoints, researchers can trace a model capability or failure back to specific documents, which is rarely possible with other corpora.
Licensing, access and documentation
Dolma was first distributed under the AI2 ImpACT license, which required users to agree to usage terms. In 2024 the dataset moved to the ODC-BY license, an open attribution license that permits commercial and research use. The underlying documents keep their original rights, so users remain responsible for how they apply content from third-party sources.
The release includes a datasheet that documents collection dates, filtering choices and known risks. The data is hosted as compressed JSON Lines files, with each record carrying an identifier, the text, the source name and metadata such as timestamps. Researchers often download only selected sources, because the full corpus occupies several terabytes even when compressed.
Limitations and common misunderstandings
Dolma is a research resource, not a cleaned or certified dataset, and its documentation states several limits. The most significant ones are listed below.
- English dominance: non-English text is filtered out, so models trained only on Dolma perform poorly in other languages.
- Residual harmful content: classifier-based filtering reduces but does not eliminate toxic or biased text.
- Heuristic quality bias: rules tuned on formal prose can remove dialects and informal registers disproportionately.
- Imperfect decontamination: overlap checks cover known benchmarks only, so some evaluation leakage may remain.
- Version confusion: token counts and results reported for one version do not transfer to another.
A frequent misconception is that an open dataset is automatically free of legal questions. Open licensing of the compilation does not settle copyright in every underlying document, and practitioners should review training data licensing obligations for their jurisdiction and use case.
Stripped to the essentials
Large language models learn by reading enormous amounts of text. Dolma is one such collection of text, gathered from web pages, programming code, science papers, old books and online discussions. It is free to download and study.
What makes it special is openness. Most companies keep their training text secret. Dolma shows exactly what went in and how it was cleaned. Think of a recipe that lists every ingredient and every step. Anyone can cook it again or change one ingredient and compare the result.
Where it is applied
A university research group wants to understand why a language model repeats certain factual errors. With a closed model, the group can only guess at the cause. Instead, it uses an OLMo model trained on Dolma and searches the corpus for the passages behind the faulty answers.
The team indexes a web subset of several hundred billion tokens and finds that one incorrect claim appears on thousands of near-duplicate pages that survived filtering. It then reruns the Dolma toolkit with a stricter paragraph deduplication threshold and continues pretraining a small model on the cleaned mixture. The frequency of the repeated error drops noticeably in the new model, and the group publishes the configuration so other researchers can verify the result.