Who it is forAn engineer processing a big corpus on a single workstation.
The problemA single process is too slow, and rerunning everything after one failure wastes hours.
The outcomeA completed run with logs, plus the ability to relaunch only failed tasks.
What you need first
- Python 3.11 or newer
- uv for installing
- Input text data such as CSV, JSONL or parquet
Steps
- Install with
uv sync - Import
from datatrove.executor import LocalPipelineExecutor - Create the executor with
tasks=10andworkers=5, plus alogging_dirof your own - Call
executor.run() - If tasks fail, relaunch the exact same executor without changing the task count
Prompt for your agent
With huggingface/datatrove, wrap my pipeline in `LocalPipelineExecutor` using `tasks=10` and `workers=5`, then call `executor.run()` and report failures.
Caveat. The README warns not to change the total number of tasks when relaunching.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for huggingface/datatrove and "Run a pipeline in parallel on one machine"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer