DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a pipeline in parallel on one machine with Datatrove

Use LocalPipelineExecutor with several workers and resume failed tasks.

Short answer: Install with uv sync; then import from datatrove.executor import LocalPipelineExecutor; create the executor with tasks=10 and workers=5, plus a logging_dir of your own. All steps.

  • Data and analytics
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

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

  1. Install with uv sync
  2. Import from datatrove.executor import LocalPipelineExecutor
  3. Create the executor with tasks=10 and workers=5, plus a logging_dir of your own
  4. Call executor.run()
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer