RACE2 on real-world Piper data: pi0.5 fine-tunes per task and multitask (plain H10 / plain H40 / RACE2 H40)

Fine-tunes of pi0.5 (pi05_base, PyTorch port) for an AgileX Piper 6-DoF arm + gripper. There is one folder per task (task1-task4) plus a multitask folder trained on tasks 1-3 together. Every folder holds the same three models (plain H10 / plain H40 / RACE2 H40) with checkpoints every 5k steps (5k / 10k / 15k / 20k). Trained with an openpi fork (scripts/real_world/, scripts/real_world_race2/), one RTX A6000 per run (about 41 h per 20k-step run).

The previous contents of this repo (multitask t123 runs, H = 10-30, trained on another server) were removed on 2026-11-11. They are still in the git history at commit c3d52dc0.

Tasks

folder instruction (use it as the prompt) episodes frames mean length
task1 pick up the gray bowl next to the plate and place it on the plate 30 9,346 10.4 s
task2 pick up the gray bowl on the plastic cabinet and place it on the plate 30 8,264 9.2 s
task3 pick up the gray bowl on the gift box and place it on the plate 30 6,966 7.7 s
task4 open the top drawer of the cabinet 41 19,082 15.5 s
multitask tasks 1-3 together; each episode keeps its own instruction 90 24,576 9.1 s

Teleoperated demonstrations at 30 fps (LeRobot v3.0; task4 comes from the raw-data folder task5). Tasks 1-3 share one object set (white plastic cabinet, gray bowls, a wooden bowl, a gift box, a blue plate) in varied layouts; the instruction says which gray bowl to move. Every run uses all of its episodes, so there is no held-out validation split.

Observations: cam1 fixed third-person view + cam0 wrist camera, both 224x224, plus the 7-D state (joint_1..6 in rad, gripper 0 = closed / 1 = open). Actions are absolute leader-arm joint targets. Training normalizes the 6 joints as deltas from the chunk's first state (the gripper stays absolute), and serving converts them back to absolute targets.

Models (the same three in every folder)

<tag> in the config names is task1-task4, or t123 for the multitask folder.

folder serving config horizon trainable parameters
plain_h10 pi05_real_world_<tag>_h10_20k 10 VLM LoRA r=16 on LM + SigLIP (28.3M) + action expert (427.9M) + projections (2.2M)
plain_h40 pi05_real_world_<tag>_h40_20k 40 same
race2_h40 pi05_real_world_race2_<tag>_h40_frombase_20k 40 same + RACE2 modules (117.2M)

Every run starts from pi05_base: 20,000 steps, global batch 32, AdamW (0.9 / 0.95, wd 1e-10, clip 1.0), 1,000 warmup steps + cosine 2.5e-5 -> 2.5e-6, bf16, no EMA, state given as discrete tokens in the prompt.

RACE2 adds a timing head that predicts, for every action slot, how close it is to a transition. Transitions are PELT changepoints (RBF cost, penalty 4, min size 5) on the action sequence [per-frame joint deltas, gripper], turned into a Gaussian target (sigma 1 / support 3 frames). The same signal drives a localized, zero-initialized adaRMS modulation of the action expert, so b = 0 gives the model's unmodulated policy. Loss = fm + 0.1 * base_fm + 0.05 * BCE.

Final training metrics (step 19,900; mean over the last 100 training steps)

folder plain_h10 loss plain_h40 loss race2_h40 fm / base_fm / BCE / peak±1 / pres
task1 0.0033 0.0065 0.0042 / 0.0049 / 0.141 / 0.56 / 0.84
task2 0.0029 0.0054 0.0037 / 0.0035 / 0.118 / 0.60 / 0.89
task3 0.0028 0.0052 0.0036 / 0.0035 / 0.120 / 0.62 / 0.90
task4 0.0052 0.0074 0.0060 / 0.0045 / 0.140 / 0.50 / 0.72
multitask 0.0058 0.0105 0.0074 / 0.0087 / 0.186 / 0.39 / 0.64

fm = flow-matching loss with modulation, base_fm = the unmodulated pass, BCE = timing-head loss, peak±1 = share of transition-bearing chunks whose predicted peak is within one frame of the label, pres = accuracy of "this chunk contains a transition". These are training metrics and say nothing about over-fitting; choose checkpoints by real-robot evaluation.

Data (real_world_data/)

The raw teleoperated demonstrations behind every model above, as LeRobot v3.0 datasets at 30 fps.

path contents
task1/, task2/, task3/ 30 episodes each (tasks 1-3 above)
task5/ task4 above: 43 merged episodes (data/, meta/, videos/) plus the 20 original recording sessions task5_1-task5_20
instruction.txt the four instructions, in task order
task1-5.zip the original archive of the folders above

Each dataset has data/ (parquet: observation.state, action, observation.velocity, observation.torque, observation.master_state = leader arm, camera timestamps), meta/ and videos/ (observation.images.cam0 wrist, observation.images.cam1 third-person, 224x224 mp4). Training skips two task5 episodes: episode 4 (the arm never moves) and episode 8 (51 frames).

Files

{task1,task2,task3,task4,multitask}/{plain_h10,plain_h40,race2_h40}/{5000,10000,15000,20000}/
    model.safetensors                      merged weights, bf16 (7.2 GB plain / 9.0 GB RACE2)
    config.json, metadata.pt               run config and training metadata
    assets/piper_<tag>/norm_stats.json     normalization stats of that folder's data
real_world_data/                           raw demonstrations (see "Data")

LoRA adapters are merged into model.safetensors. Optimizer state and LoRA-only weights are not included, so these checkpoints are for inference, not for resuming training.

Serving

# download one checkpoint
huggingface-cli download SeonghoonYu/Race2_realworld --include "task2/race2_h40/20000/*" --local-dir hf_ckpt
# serve it with the openpi fork (config names in the table above)
python scripts/serve_policy.py policy:checkpoint \
  --policy.config pi05_real_world_race2_task2_h40_frombase_20k --policy.dir hf_ckpt/task2/race2_h40/20000

The client sends {"observation/image": cam1 HWC uint8, "observation/wrist_image": cam0, "observation/state": 7 floats, "prompt": str} and receives (H, 7) absolute joint targets.

Caveats

  • Demonstrations of tasks 1-3 end with the bowl on the plate and the gripper still closed (no release), so these policies stop while holding the bowl.
  • The follower arm reaches a commanded target about 3 frames (0.1 s) later; actions are the leader arm's commands, not the achieved state.
  • A single-task model always saw the same prompt, so it never learned to pick between bowls from language; give it its own task's instruction. Only the multitask models were trained to choose the bowl from the prompt.
Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading