Hugging Face
Search models, datasets, users... ⌘K
Text Generation
arxiv: 2402.00159
arxiv: 2301.13688
language-modeling
Dataset card Files Files and versions
The Dataset Viewer has been disabled on this dataset.
Dolma is a dataset of 3 trillion tokens from a diverse mix of web content, academic publications, code, books, and encyclopedic materials.
More information:
Read Dolma manuscript and its Data Sheet on ArXiv;
Explore the open source tools we created to curate Dolma.
Want to request removal of personal data? Use this form to notify us of documents containing PII about a specific user.
To learn more about the toolkit used to create Dolma, including how to replicate this dataset, head over our GitHub project page!
2024-04-17: Dolma v1.7 Release. We have released an updated version of Dolma that we used to train our latest OLMo 7B-v1.7 model.
2024-04-15: License Change. We have updated the license of Dolma to ODC-BY. Please see this blog post for more information.
At the moment, there are six versions of Dolma available:
Release Date
Used to train OLMo-7B-v1.7. New sources, more quality filtering, fuzzy deduplication.
An update to v1.5 with some deduplication of documents with too few tokens or too many repeated n-grams.
A smaller sample of Dolma, with roughly 10 billion tokens. Useful for data exploration.
Used to train OLMo-1B. Roughly 3 trillion tokens.
A sample of roughly 1.9 trillion tokens used to train OLMo-7B
The first version of Dolma.
Summary Statistics (v1.7)
Documents (millions)
OLMo tokens (billions)
Sample Proportion
Common Crawl via Dolma v1.6
Extracted using the Dolma pipeline; new quality filtering and deduplication steps.
Filtered using the Dolma pipeline; new quality filtering and deduplication steps.
No further processing.
C4 via Dolma v1.6
PushShift API
Semantic Scholar (S2ORC & S2AG)
peS2o via Dolma v1.6
Same as Dolma v1.6
RedPajama v1
StackExchange
Flan Collection, reproduced following the original code, as performed by Dettmers et al., (2023)
After reproducing Flan, sampled to balance different Flan subsets. Reformatted for pretraining with newlines separating instruction and demonstration.
Common Crawl
OpenWebMath via Proof Pile II
Training subset; no further processing.
Algebraic Stack
Proof Pile II
Project Gutenberg
Project Gutenberg via Dolma v1.6
English web pages cited from Wikipedia; curated using the full Dolma pipeline.
Wikipedia & Wikibooks
Wikimedia via Dolma v1.6
(A subset of total data was used for training of OLMo 7B-v1.7. The token counts are based on the full dataset, whereas taking into account sampling proportion gives the final actual token counts used for training --- 1.715 trillion tokens.)
Summary Statistics (v1.6)
UTF-8 bytes (GB)
Unicode words (billions)
Llama tokens (billions)
social media
Wikipedia, Wikibooks
encyclopedic
The fastest way to download Dolma is to clone this repository and use the files in the url directory.
We recommend using wget in parallel mode to download the files. For example:
DATA_DIR="<path_to_your_data_directory>"
PARALLEL_DOWNLOADS="<number_of_parallel_downloads>"
DOLMA_VERSION="<version_of_dolma_to_download>"
git clone https://huggingface.co/datasets/allenai/dolma
mkdir -p "${DATA_DIR}"
cat "dolma/urls/${DOLMA_VERSION}.txt" | xargs -n 1 -P "${PARALLEL_DOWNLOADS}" wget -q -P "$DATA_DIR"
Then, to load this data using HuggingFace's datasets library, you can use the following code:
from datasets import load_dataset
os.environ["DATA_DIR"] = "<path_to_your_data_directory>"
dataset = load_dataset("allenai/dolma", split="train")
Licensing Information
We are releasing this dataset under the terms of ODC-BY.
By using this dataset, you are also bound any license agreements and terms of use of the original data sources.
If you use our dataset or tooling, please cite us at:
@article{dolma,
title = {{Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research}},
Luca Soldaini and Rodney Kinney and Akshita Bhagia and Dustin Schwenk and David Atkinson and
Russell Authur and Ben Bogin and Khyathi Chandu and Jennifer Dumas and Yanai Elazar and
Valentin Hofmann and Ananya Harsh Jha and Sachin Kumar and Li Lucy and Xinxi Lyu and
Nathan Lambert and Ian Magnusson and Jacob Morrison and Niklas Muennighoff and Aakanksha Naik and
Crystal Nam and Matthew E. Peters and Abhilasha Ravichander and Kyle Richardson and Zejiang Shen and
Emma Strubell and Nishant Subramani and Oyvind Tafjord and Pete Walsh and Luke Zettlemoyer and
Noah A. Smith and Hannaneh Hajishirzi and Iz Beltagy and Dirk Groeneveld and Jesse Dodge and Kyle Lo
year = {2024},
journal={arXiv preprint},
Copy to bucket
Downloads last month
Total file size:
Models trained or fine-tuned on allenai/dolma
allenai/OLMo-1B-hf
Text Generation • 1B • Updated Aug 14, 2024 • 25.2k • 29
dmis-lab/UltraBERT-150M
Fill-Mask • 0.2B • Updated Oct 16 • 13.4k • 66
dmis-lab/UltraBERT-380M
Fill-Mask • 0.4B • Updated Oct 16 • 9.88k • 82
lmstudio-community/AMD-OLMo-1B-SFT-DPO-GGUF
Text Generation • 1B • Updated Nov 1, 2024 • 5.74k • 1
allenai/OLMo-7B
Text Generation • 7B • Updated Oct 9, 2025 • 4.17k • 657
allenai/OLMo-7B-hf
Text Generation • 7B • Updated Jul 16, 2024 • 4.15k • 17
Browse 245 models trained on this dataset
Spaces using allenai/dolma 4
Collection including allenai/dolma
Artifacts for the first set of OLMo models. • 18 items • Updated Dec 23, 2025 • 75
Papers for allenai/dolma
Dolma: an Open Corpus of Three Trillion Tokens for Language Model
Pretraining Research
Paper • 2402.00159 • Published Jan 31, 2024 • 66
The Flan Collection: Designing Data and Methods for Effective
Instruction Tuning
Paper • 2301.13688 • Published Jan 31, 2023 • 10