Pi0 finetune

From nssmd/RoboRSI · View interactive version

Pi0 finetune is an AI agent skill from the GitHub repository nssmd/RoboRSI. Finetune π₀ or π₀.₅ on a RoboRSI-built LeRobot dataset. Wraps lerobot-train under the hood.

How to use this skill

Skill file

pi0_finetune — π₀ / π₀.₅ finetune on RoboRSI datasets

Overview

Finetune a pretrained π₀ / π₀.₅ checkpoint on a single-task LeRobot

dataset produced by dataset/lerobot_build. No multi-task mixing in

this skill — that belongs in a future training/pi0_multitask sibling.

When to use

expert_replay or rollout_vlm in execution mode.

Phases

  1. Validate dataset: LeRobotDataset(dataset) loads; camera set matches

the policy's expected input (else fail loud).

  1. Resolve base checkpoint: physical-intelligence/pi0.5 or local path.
  2. Launch lerobot-train subprocess with CLI args derived from params.
  3. Stream logs; persist output_dir/training_state.json + final

checkpoint.

  1. Return summary: final step, val loss (if split provided), output path.

Success criteria

performance — loss is not a success proxy for manipulation.

Failure modes

| Symptom | Likely cause | Fix |

|---|---|---|

| OOM on H100 | Batch size too big for base model | Drop to 4 or enable gradient_accumulation_steps |

| Dataset schema mismatch | Camera names differ from pretrain | Rename in dataset/lerobot_build params |

| Loss plateaus high | Too few episodes or data too uniform | Collect more / add domain randomization |

Implementation status

SKELETON. The shipped policy.py prints the would-be lerobot-train

command and exits. Wiring the actual subprocess requires deciding on the

checkpoint cache location and pulling in HF auth / proxy handling from

roborsi.config.loader. Lands in the next slice.

Why a skill and not a script

Because the task bundle needs to say "train then evaluate" declaratively

without shell-script glue. Everything a task does is a skill.

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.