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
- You have ≥ 50 successful episodes for a task.
- You want a fast-inference policy for this task that replaces
expert_replay or rollout_vlm in execution mode.
Phases
- Validate dataset:
LeRobotDataset(dataset)loads; camera set matches
the policy's expected input (else fail loud).
- Resolve base checkpoint:
physical-intelligence/pi0.5or local path. - Launch
lerobot-trainsubprocess with CLI args derived fromparams. - Stream logs; persist
output_dir/training_state.json+ final
checkpoint.
- Return summary: final step, val loss (if split provided), output path.
Success criteria
- Final checkpoint directory non-empty.
- Val loss (if any) monotonic-ish (no divergence).
- Hook downstream
evaluation/success_rateto verify actual robot
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.