piper-pen-fga-wam
Control policy fine-tune with FGA layer skipping
2 min read
This model is fine-tuned for the pen_in robotic manipulation task and adapted for FGA (fingerprint gate — an input-fingerprint cutoff that skips an entire action-expert layer during a denoising step and extrapolates its output from previous calls). Built on the a2jinhee/piper-pen-hyvla-pi05-step2000 checkpoint based on pi0.5 (PyTorch, bf16), it was distilled using the dense output of the original checkpoint as the teacher. Fine-tuning reduces layer-skipping error compared to unadapted FGA mode, though gate overhead makes the current uncompiled replay slower than dense mode. Useful for researchers and engineers working on robotics policies and inference acceleration.
Key features
- Adapted for action-expert layer skipping on the
pen_intask while keeping dense mode (FGA_OFF=1) close to the baseline. - Trained for 1,000 optimizer steps across 80 episodes (one policy call per 1 s of recording / 20 raw frames) targeting a 0.7 skip ratio of eligible layers.
- Verified JAX-to-PyTorch conversion parity: MSE ratio of 0.00277 across 30 frames against a 0.5 threshold.
- Detailed offline replay benchmarks on 10 recorded episodes and training logs in
records/.
What you can do
- Run the
pen_inpolicy from thepi05_pen_in/step_001000/checkpoint viaopenpi.fga.policy, passingfga_reset: trueor anepisode_idon the first call of each episode. - Toggle layer skipping on the fly or run dense inference with
FGA_OFF=1to compare accuracy and behavior. - Analyze training curves, calibration tables, and offline replay results in
records/when iterating on layer-skipping mechanisms.
Example
PYTHONPATH=.cache/transformers_pt third_party/openpi/.venv/bin/python -m openpi.fga.policy \
--task pen_in --ckpt /pi05_pen_in/step_001000 --port 8000Read more
DetailsOffline replay (10
pen_in episodes): ft_fga skips 48.6% of all cells (69.2% of eligible ones) with an executed-action error of 0.02888 vs. init_dense (compared to 0.27468 for init_fga and 0.00386 for ft_dense); per-call latency in uncompiled replay is 311.7 ms for ft_fga vs. 185.9 ms for ft_dense.Training & hardware: 1x NVIDIA H200 NVL (typically shared with other jobs), 12.6 GiB peak VRAM, 12 h 07 min training time, lr 1e-5.
Limitations: in the current uncompiled replay, gated modes are slower than dense mode due to per-layer overhead; pauses longer than 5 s reset the FGA state.










Comments