Lerobot build

From nssmd/RoboRSI · View interactive version

Lerobot build is an AI agent skill from the GitHub repository nssmd/RoboRSI. Aggregate DataStore episodes for a skill/task into a LeRobot v0.5 dataset (meta/info.json, data/*.parquet, videos/) ready for π₀ training.

How to use this skill

Skill file

lerobot_build — DataStore episodes → LeRobot v0.5 dataset

Overview

RoboRSI's DataStore writes episodes in a rollout-centric layout

(<skill>/<run_id>/episode.parquet + frames/ + meta.json). π₀ / π₀.₅

training consumes the LeRobot v0.5 dataset layout (meta/info.json,

meta/episodes.jsonl, data/chunk-xxx/episode_<i>.parquet,

videos/). This skill converts the former into the latter.

When to use

≥ 50 successful runs for a tabletop task).

Phases

  1. Scan DataStore.list(skill_label); drop failed episodes unless

--include-failed is set.

  1. Build meta/info.json with features, fps, robot_type, codebase_version.
  2. Write meta/episodes.jsonl (one line per episode with length).
  3. Write each episode's per-frame rows into data/chunk-000/episode_<i>.parquet.
  4. Encode image sequences into videos/observation.images.<cam>/episode_<i>.mp4

via lerobot's video encoder.

  1. Emit final summary: episodes, frames, disk usage.

Output

<out_root>/<dataset_name>/
  meta/
    info.json
    episodes.jsonl
    tasks.jsonl
  data/chunk-000/episode_000.parquet
  videos/observation.images.<cam>/episode_000.mp4

Success criteria

instantiates without errors.

Why LeRobot and not our own format

retraining-infra work.

right now; betting elsewhere duplicates conversion burden.

Implementation note

Uses lerobot (LeRobot v0.5.1, git submodule at third_party/lerobot/). The

LeRobotDataset.create(...) helper handles most of the schema; we

supply frame iterators from parquet.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.