Dolma combines a large open text corpus for language-model training with a toolkit for curating and processing those datasets at scale.
Overview
Dolma covers two related offerings from the Allen Institute for AI. The Dolma Dataset is an open collection of three trillion tokens drawn from web pages, academic work, code, books, and encyclopedic sources, built as training material for the OLMo language model and published for download on the Hugging Face Hub.
The Dolma Toolkit is the software side: a performance-oriented pipeline for building and refining datasets used in machine-learning pre-training. It can process very large document collections using built-in parallelism, run on one machine, a cluster, or cloud setups, and includes fast document deduplication via a Rust Bloom filter.
The toolkit ships ready-made taggers aligned with common open corpora such as Gopher, C4, and OpenWebText, and you can add custom taggers. Storage access includes AWS S3-compatible locations. Install the toolkit with pip from the terminal; fuller usage is described in the project documentation.
Key features
- Three-trillion-token open training corpus
- Parallel processing of huge document sets
- Rust Bloom-filter document deduplication
- Built-in Gopher, C4, and OpenWebText taggers
- Custom tagger support
- AWS S3-compatible storage access
- Single machine, cluster, or cloud operation
- pip-installable toolkit package
Use cases
- Building OLMo-style pre-training corpora
- Curating web and academic text for LLMs
- Deduplicating large text collections
- Inspecting OLMo pre-training data