Skip to content

macbot 0.3.0

Choose a tag to compare

@MuQY1818 MuQY1818 released this 20 Nov 08:14
· 120 commits to main since this release
0586d3d

π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 mlx or policy.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 auto picks asynchronous chunks with MLX.
  • macbot bench --profile prints a synchronized per-stage breakdown (vision, prefix, each
    denoising step) for both backends, and --steps for 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, so macbot run accepts 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