{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "huggingface-datatrove--run-a-datatrove-pipeline-in-parallel-locally",
 "repo": "huggingface/datatrove",
 "repo_url": "https://github.com/huggingface/datatrove",
 "repo_slug": "huggingface-datatrove",
 "title": "Run a pipeline in parallel on one machine",
 "page_title": "How to run a pipeline in parallel on one machine with Datatrove",
 "summary": "Use LocalPipelineExecutor with several workers and resume failed tasks.",
 "who": "An engineer processing a big corpus on a single workstation.",
 "problem": "A single process is too slow, and rerunning everything after one failure wastes hours.",
 "outcome": "A completed run with logs, plus the ability to relaunch only failed tasks.",
 "steps": [
  "Install with `uv sync`",
  "Import `from datatrove.executor import LocalPipelineExecutor`",
  "Create the executor with `tasks=10` and `workers=5`, plus a `logging_dir` of your own",
  "Call `executor.run()`",
  "If tasks fail, relaunch the exact same executor without changing the task count"
 ],
 "agent_prompt": "With huggingface/datatrove, wrap my pipeline in `LocalPipelineExecutor` using `tasks=10` and `workers=5`, then call `executor.run()` and report failures.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README warns not to change the total number of tasks when relaunching.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.11 or newer",
  "uv for installing",
  "Input text data such as CSV, JSONL or parquet"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/huggingface-datatrove/run-a-datatrove-pipeline-in-parallel-locally/",
 "md": "https://dedupedai.com/use-cases/huggingface-datatrove/run-a-datatrove-pipeline-in-parallel-locally/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/huggingface-datatrove--run-a-datatrove-pipeline-in-parallel-locally.json",
 "api_version": "v1"
}
