Repository navigation
macbot 0.3.0
π0.5 on MLX: about 165 ms per 50-step chunk on an M5 Pro (PyTorch MPS: about 270 ms), with the same actions.
Added
- An optional MLX backend for π0.5 (
--backend mlxorpolicy.backend: mlx, install
macbot[mlx]). It loads LeRobot pi05 checkpoints directly and runs in fp16 with compiled
execution, trimmed text padding, precomputed AdaRMS, fused RoPE and packed projections:
about 165 ms per 50-step chunk on an M5 Pro against about 270 ms for PyTorch MPS, with actions
within 0.08° mean / 0.42° p99 of the bf16 reference (well under the seed-to-seed spread).
Guided RTC still uses PyTorch;--mode autopicks asynchronous chunks with MLX. macbot bench --profileprints a synchronized per-stage breakdown (vision, prefix, each
denoising step) for both backends, and--stepsfor shorter flow schedules.tools/accel/: an offline fidelity harness that builds a fixed observation set from recorded
episodes, compares any configuration with matched noise, and reports latency and action error
against the seed-to-seed spread.- Inference benchmark docs (
docs/acceleration.md,docs/acceleration_zh.md).
Fixed
- π0.5 checkpoints store a padded 32-wide state; the startup dimension check now reads the real
state width from the normalizer, somacbot runaccepts them again.
Measured offline on 50 recorded observations with matched noise; see docs/acceleration.md. Not yet validated in a closed-loop hardware rollout.
pip install -U "macbot[mlx]"
macbot bench --policy <pi05 checkpoint> --backend mlx --profile