Refiner by Macrodata Labs, a data processing framework for Machine Learning large scale datasets
Project description
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
Create a Macrodata API key:
Log in:
macrodata login
Cloud example
Launch a robotics pipeline on Macrodata Cloud.
This requires a valid API key.
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.
Local example
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,
)
)
pip install gives you:
- the Python package as
refiner - the CLI as
macrodata
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file macrodata_refiner-0.3.2.tar.gz.
File metadata
- Download URL: macrodata_refiner-0.3.2.tar.gz
- Upload date:
- Size: 279.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
648fc637049821f7c11d76654090ba4a96641ac5d9fc1bf40974d6d9d87d1e98
|
|
| MD5 |
10595c6e19ba7118ddf1792d7ab27004
|
|
| BLAKE2b-256 |
96a3d172f3316f98a64e029768f2759acf134c1aef137e817a42be5c377f9e12
|
Provenance
The following attestation bundles were made for macrodata_refiner-0.3.2.tar.gz:
Publisher:
pypi-release.yml on macrodata-labs/refiner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macrodata_refiner-0.3.2.tar.gz -
Subject digest:
648fc637049821f7c11d76654090ba4a96641ac5d9fc1bf40974d6d9d87d1e98 - Sigstore transparency entry: 1752661273
- Sigstore integration time:
-
Permalink:
macrodata-labs/refiner@2858d13091a4de80e2581c0b8662bbfcf4daf494 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/macrodata-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@2858d13091a4de80e2581c0b8662bbfcf4daf494 -
Trigger Event:
push
-
Statement type:
File details
Details for the file macrodata_refiner-0.3.2-py3-none-any.whl.
File metadata
- Download URL: macrodata_refiner-0.3.2-py3-none-any.whl
- Upload date:
- Size: 346.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbc5faca1a6f58e1a48d4a3bf73ef98dae0179e7f68f22ea85fe69d4cec2c1fd
|
|
| MD5 |
a7b9ed72bf3e637402bf229ccefae31f
|
|
| BLAKE2b-256 |
9790722bcf86626678cdb4b69e3b25cc9529d44c5c56ad4f58ae81c66c60c5ab
|
Provenance
The following attestation bundles were made for macrodata_refiner-0.3.2-py3-none-any.whl:
Publisher:
pypi-release.yml on macrodata-labs/refiner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macrodata_refiner-0.3.2-py3-none-any.whl -
Subject digest:
bbc5faca1a6f58e1a48d4a3bf73ef98dae0179e7f68f22ea85fe69d4cec2c1fd - Sigstore transparency entry: 1752661373
- Sigstore integration time:
-
Permalink:
macrodata-labs/refiner@2858d13091a4de80e2581c0b8662bbfcf4daf494 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/macrodata-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@2858d13091a4de80e2581c0b8662bbfcf4daf494 -
Trigger Event:
push
-
Statement type: