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

Reader model

How Refiner readers plan shards and emit rows

A Refiner reader has two jobs:

  1. Plan work into shards.
  2. Read each shard into rows or tabular blocks.

That separation is important. Planning should be lightweight enough to run at submission time. Reading can do the expensive I/O inside workers.

Rows and blocks

Most user code sees rows:

1
2
for row in pipeline.take(3):
    print(row)

Internally, readers may emit either:

UnitWhy it exists
RowNatural for Python transforms and episode-level robotics data.
Tabular blockEfficient for Arrow-backed readers and vectorized operations.

You usually do not need to choose. Refiner converts blocks to rows when a row transform needs them and keeps Arrow tables when vectorized transforms can run directly.

Reader arguments you see often

ArgumentMeaning
target_shard_bytesApproximate shard size for byte-splittable inputs.
num_shardsOptional target shard count.
recursiveWhether directory inputs should be scanned recursively.
file_path_columnMetadata column that records the source file path.
dtypesOptional schema hints used by downstream writers and expressions.

See Sharding for how these options affect worker work.

Path inputs

Readers accept local paths and fsspec-backed URLs. Refiner commonly uses:

PrefixExample
Local path/data/episodes/*.hdf5
Hugging Face datasethf://datasets/org/name
Hugging Face buckethf://buckets/org/bucket/path
Cloud/object storage supported by fsspecs3://bucket/path

See Path Formats.

Related pages

  • Sharding
  • Episode Rows
  • Custom Readers

// Table of Contents

  1. Rows and blocks
  2. Reader arguments you see often
  3. Path inputs
  4. Related pages
Macrodata_Labs
TermsPrivacyContact
  • GitHub
  • LinkedIn
  • X
  • HuggingFace
  • Discord