Skip to main content

Refiner by Macrodata Labs, a data processing framework for Machine Learning large scale datasets

Project description

Macrodata

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macrodata_refiner-0.3.7.tar.gz (284.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

macrodata_refiner-0.3.7-py3-none-any.whl (354.8 kB view details)

Uploaded Python 3

File details

Details for the file macrodata_refiner-0.3.7.tar.gz.

File metadata

  • Download URL: macrodata_refiner-0.3.7.tar.gz
  • Upload date:
  • Size: 284.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for macrodata_refiner-0.3.7.tar.gz
Algorithm Hash digest
SHA256 94bc422d8a4da672ef9ff506da4b1a1a7c951a4c9223a924914356f40b05a51e
MD5 72fe02a0963c34ac10453e2143ea118f
BLAKE2b-256 202ca4da8b48a4d513548fca3b5f861a3d9ecc6a50febd65b447ac2546cf3784

See more details on using hashes here.

Provenance

The following attestation bundles were made for macrodata_refiner-0.3.7.tar.gz:

Publisher: pypi-release.yml on macrodata-labs/refiner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file macrodata_refiner-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for macrodata_refiner-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 402a07fe8533945bb12cc200f5085f91e2c9ec87465b4e863df18a908611b115
MD5 4549bfa9ae62fc28223858bf6ea9c191
BLAKE2b-256 a5d3ccefb08b543e831519ede21bd6cbb1ed14479a00b689ef24eae7d7988d4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for macrodata_refiner-0.3.7-py3-none-any.whl:

Publisher: pypi-release.yml on macrodata-labs/refiner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page