Macrodata_Labs
AboutBlogDemo
Announcing MacroHands, our SOTA model for 3D hands and camera path from egocentric video!
// Docs›
Quickstart
Running pipelines
  • In-process debugging
  • Local launcher
Reading data
  • Reader model
  • Sharding
  • LeRobot reader
  • HDF5 reader
  • Zarr reader
  • MCAP reader
  • Tabular files
  • Files and videos
  • Hugging Face
  • TensorFlow
  • Lance
  • Custom readers
Episode data
  • Episode rows
  • Frames and videos
  • Metadata, tasks, and stats
  • Converting to robot rows
Transforms
  • Row transforms
  • Async and batch transforms
  • Vectorized transforms
  • Expressions
  • Schemas and DTypes
Episode operations
  • Motion trimming
  • Subtask annotation
Inference
  • Generate text
  • Multimodal and structured output
  • Inference providers
  • Pooling
Writing data
  • Writer model
  • LeRobot writer
  • Zarr writer
  • Parquet and JSONL writers
  • Lance
  • Media assets and reducers
Examples
  • ALOHA HDF5
  • robomimic HDF5
  • Zarr replay buffer
  • MCAP Franka
  • LIBERO HDF5
  • Merge LeRobot datasets
  • Annotate subtasks
Reference
  • Path formats
  • Optional dependencies
// Docs
Quickstart
Running pipelines
  • In-process debugging
  • Local launcher
Reading data
  • Reader model
  • Sharding
  • LeRobot reader
  • HDF5 reader
  • Zarr reader
  • MCAP reader
  • Tabular files
  • Files and videos
  • Hugging Face
  • TensorFlow
  • Lance
  • Custom readers
Episode data
  • Episode rows
  • Frames and videos
  • Metadata, tasks, and stats
  • Converting to robot rows
Transforms
  • Row transforms
  • Async and batch transforms
  • Vectorized transforms
  • Expressions
  • Schemas and DTypes
Episode operations
  • Motion trimming
  • Subtask annotation
Inference
  • Generate text
  • Multimodal and structured output
  • Inference providers
  • Pooling
Writing data
  • Writer model
  • LeRobot writer
  • Zarr writer
  • Parquet and JSONL writers
  • Lance
  • Media assets and reducers
Examples
  • ALOHA HDF5
  • robomimic HDF5
  • Zarr replay buffer
  • MCAP Franka
  • LIBERO HDF5
  • Merge LeRobot datasets
  • Annotate subtasks
Reference
  • Path formats
  • Optional dependencies

Running pipelines

How Refiner pipelines execute on your own infrastructure

A Refiner pipeline can be evaluated two ways:

ModeUse it whenEntry point
In processYou are inspecting rows, testing a transform, or debugging quickly.iter_rows(), take(), materialize()
Local launchYou want real worker/shard behavior on your machine.launch_local(...)

Start with In-Process Debugging, then move to Local Launcher.

Execution terms

TermMeaning
SourceThe reader that plans shards and emits input rows or tables.
ShardA unit of source work assigned to a worker.
WorkerA process that claims shards, runs transforms, and writes output.
StageA named pipeline with its own source, sink, and resources. Stages in one job run in order; writers may add internal follow-up stages.
SinkA writer attached to the end of the pipeline.

For input planning details, see Reader Model and Sharding.

Task shard claiming

Each worker processes mdr.task(...) shards sequentially and claims one shard at a time by default. The worker does not claim another shard until the current shard's transforms and sink output finish. To preserve unbounded shard claiming:

1
2
3
4
5
6
7
import refiner as mdr

pipeline = mdr.task(
    run_partition,
    num_tasks=32,
    claim_shards_sequentially=False,
)

Reader pipelines remain unbounded by default, preserving their existing cross-shard batching behavior.

Related pages

  • In-Process Debugging
  • Local Launcher

// Table of Contents

  1. Execution terms
  2. Task shard claiming
  3. Related pages
Macrodata_Labs
TermsPrivacyContact
  • GitHub
  • LinkedIn
  • X
  • HuggingFace
  • Discord