Refiner: Robotics library from the ex-Hugging Face pre-training team
Summary
Refiner is an open-source engine from Macrodata Labs for converting raw robotics and multimodal data into high-quality datasets for model training, with local and cloud execution.
View Cached Full Text
Cached at: 06/11/26, 02:01 PM
macrodata-labs/refiner
Source: https://github.com/macrodata-labs/refiner
Macrodata Refiner
Refiner is an open-source engine for turning raw robotics and multimodal data into high-quality datasets for model training.
It gives training-data teams one pipeline model for multimodal data, robotics workflows, and model-based processing.
It also plugs into the Macrodata platform, which gives you visibility into what is happening to your data while pipelines run: job and shard lifecycle, logs, metrics, manifests, and pipeline behavior. The same code can run locally for development and then scale out through Macrodata’s elastic serverless cloud.
Quickstart
Install:
pip install macrodata-refiner
This gives you:
- the Python package as
refiner - the CLI as
macrodata
Launch a local pipeline:
import refiner as mdr
def add_preview(row):
return row.update(
preview=" ".join(row["text"].split()[:20]),
)
(
mdr.read_jsonl("input/*.jsonl")
.filter(mdr.col("lang") == "en")
.with_columns(
text=mdr.col("text").str.strip(),
text_len=mdr.col("text").str.len(),
)
.map(add_preview)
.write_parquet("s3://my-bucket/english-cleanup/")
.launch_local(
name="english-cleanup",
num_workers=2,
)
)
Cloud example
Create a Macrodata API key: https://macrodata.co/settings/api-keys
And authenticate the CLI:
macrodata login
Launch a robotics pipeline on Macrodata Cloud.
import refiner as mdr
(
mdr.read_lerobot("hf://datasets/macrodata/aloha_static_battery_ep005_009")
.map(
mdr.robotics.motion_trim(
threshold=0.001,
pad_frames=5,
)
)
.write_lerobot("hf://buckets/acme-robotics/aloha_motion")
.launch_cloud(
name="motion_trim",
num_workers=4,
)
)
Need cloud GPUs? See Resources, GPUs, and Services.
Batteries included
- training-data-first pipeline primitives instead of generic ETL abstractions
- multimodal processing, with robotics support today
- built-in readers, transforms, sinks, and runtime machinery for common dataset work
- access to any storage backend supported by
fsspec(S3, GCP, Hugging Face, etc.) - local execution for development and elastic cloud execution for large runs
- built-in observability through the Macrodata platform for job state, logs, metrics, and manifests
Docs
Start here:
Build a dataset:
Operate jobs:
Community
- join the Macrodata Discord: https://discord.gg/S8kZtmBR2x
Similar Articles
@gui_penedo: Today we’re announcing Macrodata Labs. Over the last few years, @HKydlicek and I have been turning a large part of the …
Today, Macrodata Labs announced its launch, along with Refiner, an open-source framework for processing robotics datasets. The framework aims to help teams extract more signal from demonstrations and sensor data.
DeepRefine: Agent-Compiled Knowledge Refinement via Reinforcement Learning
DeepRefine is a research paper introducing an LLM-based reasoning model that refines agent-compiled knowledge bases using reinforcement learning and multi-turn interactions to improve downstream task performance.
SoL-Refiner: Speed-of-Light One-Step Refinement for High-Resolution Video
SoL-Refiner is a one-step video refiner that transforms low-resolution video outputs into 4K resolution with a single denoising step, achieving significant speed improvements and outperforming existing refineries in quality metrics.
@Ex0byt: A must bookmark.. tiny cracked team, 4 H100 nodes, open source 3 stage recipe, trained on 8k synthetic rubric tasks, fu…
A small team trained a frontier-level Deep Research Agent on an academic budget using only 32 H100s and 8K synthetic samples, releasing fully open weights, code, and paper for models from 2B to 35B that match or beat closed frontier agents on key benchmarks.
@OpenHandsDev: Check out this new OpenHands research on skill refinement!
OpenHands researchers introduce SkillRefiner, an offline method that automatically refines agent skills from existing execution traces, rather than requiring new rollouts.