dolma

Dolma Toolkit Documentation

The Dolma toolkit enables dataset curation for pretraining AI models. Reason to use the Dolma toolkit are:

Dataset curation with the Dolma toolkit usually happens in four steps:

  1. Using taggers, spans of documents in a dataset are tagged with properties (e.g. the language their are in, toxicity, etc);
  2. Documents are optionally deduplicated based on their content or metadata;
  3. Using the mixer, documents removed or filtered depending on value of attributes;
  4. Finally, documents can be tokenized using any HuggingFace-compatible tokenizer.

The four steps of dataset curation with Dolma.

Dolma toolkit can be installed using pip:

pip install dolma

Dolma toolkit can be used either as a Python library or as a command line tool. The command line tool can be accessed using the dolma command. To see the available commands, use the --help flag.

dolma --help

Index

To read Dolma toolkit’s documentation, visit the following pages: