Processing LLM training data at scale with pluggable blocks and any file system

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Teams building LLM training datasets can now run one pipeline locally and on SLURM or Ray clusters without rewriting code, cutting the engineering cost of processing terabyte-scale text.

Read this as

DataTrove is a free, open-source tool from Hugging Face for cleaning the huge amounts of text needed to train large language models. Its main difference is that the same data-processing recipe runs unchanged on a laptop or on a cluster of machines, so testing small and running big use identical code. It also works with different storage systems, like your own disk or Amazon S3, without changes. It matters to anyone building the datasets behind models like those trained on Common Crawl data.

Hugging Face has released DataTrove, an open-source pipeline for processing, filtering and deduplicating the terabyte-scale text used in LLM training. For organisations training models in-house, it removes the need to build and maintain bespoke data infrastructure, and its downloadable examples reproduce the FineWeb dataset and Common Crawl processing end to end. Competing homegrown pipelines and some commercial data tooling lose ground. The cost is engineering time to learn it; the risk is none, since the code is public on GitHub under Hugging Face's account.

DataTrove chains processing blocks (read, extract, filter, deduplicate, save) and executes them via pluggable executors: LocalPipelineExecutor, SlurmPipelineExecutor, RayPipelineExecutor and JobsPipelineExecutor. Storage is abstracted through fsspec, so input and output can mix local paths and S3. The multi-step design keeps memory low across billions of documents, and custom blocks come in three tiers: simple data, custom functions, full blocks. It requires Python 3.10+ with uv-managed extras for WARC and S3 support; no benchmark numbers are given, though it ships a complete FineWeb reproduction, a Common Crawl WARC pipeline, C4 tokenisation and a synthetic data generation workflow.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

DataTrove Hugging Face FineWeb Common Crawl C4 SLURM Ray

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading