allenai/dolma

Dataset

1,075

stars

46

commits

3

linked in READMEs

Apr 17, 2024

updated

casual-lm
language-modeling
llm
Browse cluster: LLM Pretraining Datasets & Corpora

README

Dolma

Dolma's official logo. It's dolma written in yellow, round lowercase letters over a blue background.

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.

Versions

At the moment, there are six versions of Dolma available:

VersionDefault?Release DateSize (gzip)Description
v1_72024-04-154.5 TBUsed to train OLMo-7B-v1.7. New sources, more quality filtering, fuzzy deduplication.
v1_62024-01-315.4 TBAn update to v1.5 with some deduplication of documents with too few tokens or too many repeated n-grams.
v1_6-sample2024-01-3116.4 GBA smaller sample of Dolma, with roughly 10 billion tokens. Useful for data exploration.
v1_52023-10-316.4 TBUsed to train OLMo-1B. Roughly 3 trillion tokens.
v1_5-sample2023-10-312.9 TBA sample of roughly 1.9 trillion tokens used to train OLMo-7B
v12023-08-186.0 TBThe first version of Dolma.

Summary Statistics (v1.7)

SourceProvenanceNew?Documents (millions)OLMo tokens (billions)Sample ProportionCutoff DateProcessing
Dolma's CCCommon Crawl via Dolma v1.6Updated875.21,195.550%Mar 2023Extracted using the Dolma pipeline; new quality filtering and deduplication steps.
Refined WebRefined WebYes664.0456.4100%Feb 2023Filtered using the Dolma pipeline; new quality filtering and deduplication steps.
StarCoderStarCoderYes206.6263.8100%May 2023No further processing.
C4C4 via Dolma v1.6Updated249.9138.450%Apr 2019Filtered using the Dolma pipeline; new quality filtering and deduplication steps.
RedditPushShift APIUpdated377.479.9100%Mar 2023Extracted using the Dolma pipeline; new quality filtering and deduplication steps.
Semantic Scholar (S2ORC & S2AG)peS2o via Dolma v1.6No38.857.2100%Mar 2023Same as Dolma v1.6
arXivRedPajama v1Yes1.528.0100%Mar 2023No further processing.
StackExchangeRedPajama v1Yes29.319.6100%Mar 2023No further processing.
FlanFlan Collection, reproduced following the original code, as performed by Dettmers et al., (2023)Yes52.116.5100%Feb 2023After reproducing Flan, sampled to balance different Flan subsets. Reformatted for pretraining with newlines separating instruction and demonstration.
CC NewsCommon CrawlYes22.014.3100%Mar 2023Extracted using the Dolma pipeline; new quality filtering and deduplication steps.
OpenWebMathOpenWebMath via Proof Pile IIYes2.912.6100%May 2023Training subset; no further processing.
Algebraic StackProof Pile IIYes2.812.6100%Oct 2023Training subset; no further processing.
Project GutenbergProject Gutenberg via Dolma v1.6No0.05565.3100%Mar 2023Same as Dolma v1.6
MegaWikaMetaWikaYes3.24.6100%Jul 2023English web pages cited from Wikipedia; curated using the full Dolma pipeline.
Wikipedia & WikibooksWikimedia via Dolma v1.6No6.23.7200%Mar 2023Same as Dolma v1.6
Total2532.02,308.51,715.1Oct 2023

(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)

SourceDoc TypeUTF-8 bytes (GB)Documents (millions)Unicode words (billions)Llama tokens (billions)
Common Crawlweb pages9,0223,3701,7752,281
The Stackcode1,043210260411
C4web pages790364153198
Redditsocial media3393777289
PeS2oSTEM papers26838.85070
Project Gutenbergbooks20.40.0564.06.0
Wikipedia, Wikibooksencyclopedic16.26.23.74.3
Total11,5194,3672,3183,059

Download

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:

import os
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.

Bibtex

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}},
  author={
    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},
}

Contributors

soldni

38 commits

kylel

5 commits

Muennighoff

3 commits

allenai/dolma

Dataset

1,075

stars

46

commits

3

linked in READMEs

Apr 17, 2024

updated

casual-lm
language-modeling
llm
Browse cluster: LLM Pretraining Datasets & Corpora

README

Dolma

Dolma's official logo. It's dolma written in yellow, round lowercase letters over a blue background.

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.

Versions

At the moment, there are six versions of Dolma available:

VersionDefault?Release DateSize (gzip)Description
v1_72024-04-154.5 TBUsed to train OLMo-7B-v1.7. New sources, more quality filtering, fuzzy deduplication.
v1_62024-01-315.4 TBAn update to v1.5 with some deduplication of documents with too few tokens or too many repeated n-grams.
v1_6-sample2024-01-3116.4 GBA smaller sample of Dolma, with roughly 10 billion tokens. Useful for data exploration.
v1_52023-10-316.4 TBUsed to train OLMo-1B. Roughly 3 trillion tokens.
v1_5-sample2023-10-312.9 TBA sample of roughly 1.9 trillion tokens used to train OLMo-7B
v12023-08-186.0 TBThe first version of Dolma.

Summary Statistics (v1.7)

SourceProvenanceNew?Documents (millions)OLMo tokens (billions)Sample ProportionCutoff DateProcessing
Dolma's CCCommon Crawl via Dolma v1.6Updated875.21,195.550%Mar 2023Extracted using the Dolma pipeline; new quality filtering and deduplication steps.
Refined WebRefined WebYes664.0456.4100%Feb 2023Filtered using the Dolma pipeline; new quality filtering and deduplication steps.
StarCoderStarCoderYes206.6263.8100%May 2023No further processing.
C4C4 via Dolma v1.6Updated249.9138.450%Apr 2019Filtered using the Dolma pipeline; new quality filtering and deduplication steps.
RedditPushShift APIUpdated377.479.9100%Mar 2023Extracted using the Dolma pipeline; new quality filtering and deduplication steps.
Semantic Scholar (S2ORC & S2AG)peS2o via Dolma v1.6No38.857.2100%Mar 2023Same as Dolma v1.6
arXivRedPajama v1Yes1.528.0100%Mar 2023No further processing.
StackExchangeRedPajama v1Yes29.319.6100%Mar 2023No further processing.
FlanFlan Collection, reproduced following the original code, as performed by Dettmers et al., (2023)Yes52.116.5100%Feb 2023After reproducing Flan, sampled to balance different Flan subsets. Reformatted for pretraining with newlines separating instruction and demonstration.
CC NewsCommon CrawlYes22.014.3100%Mar 2023Extracted using the Dolma pipeline; new quality filtering and deduplication steps.
OpenWebMathOpenWebMath via Proof Pile IIYes2.912.6100%May 2023Training subset; no further processing.
Algebraic StackProof Pile IIYes2.812.6100%Oct 2023Training subset; no further processing.
Project GutenbergProject Gutenberg via Dolma v1.6No0.05565.3100%Mar 2023Same as Dolma v1.6
MegaWikaMetaWikaYes3.24.6100%Jul 2023English web pages cited from Wikipedia; curated using the full Dolma pipeline.
Wikipedia & WikibooksWikimedia via Dolma v1.6No6.23.7200%Mar 2023Same as Dolma v1.6
Total2532.02,308.51,715.1Oct 2023

(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)

SourceDoc TypeUTF-8 bytes (GB)Documents (millions)Unicode words (billions)Llama tokens (billions)
Common Crawlweb pages9,0223,3701,7752,281
The Stackcode1,043210260411
C4web pages790364153198
Redditsocial media3393777289
PeS2oSTEM papers26838.85070
Project Gutenbergbooks20.40.0564.06.0
Wikipedia, Wikibooksencyclopedic16.26.23.74.3
Total11,5194,3672,3183,059

Download

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:

import os
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.

Bibtex

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}},
  author={
    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},
}

Contributors

soldni

38 commits

kylel

5 commits

Muennighoff

3 commits