Repository navigation
Releases
v0.3.6
Added
-
Add opt-in MLX chunk inference for X-VLA and ACT. Automatic backend selection uses MLX
for compatible configurations verified on trained checkpoints. -
Project website at https://muqy1818.github.io/macbot/ with the docs, built from
website/anddocs/
byscripts/build_site.shand deployed by thepagesworkflow.
v0.3.5
Changed
- Use camera-relative WASD, vertical and wrist controls, and a visible key legend in keyboard simulation collection.
- Show the keyboard focus, gripper height and table projection, and workspace limits in the simulator preview.
Fixed
- Load cached EnvHub scenes without contacting the Hub and diagnose missing SOCKS support for uncached scenes.
- Store simulation data in
~/macbot-data/simwhen nodata_rootis set.
v0.3.4
Added
- Opt-in Cartesian keyboard and calibrated SO-101 leader input in the simulation collection console.
- Generate seeded tabletop demonstrations with
macbot sim demos, with environment outcomes and standard episode files. macbot evalruns seeded simulator trials and reports environment success with Wilson intervals.eval --trace-onlykeeps replayable joint traces and renders only at policy queries for SO-101 tabletop batches.- The macOS tabletop simulator reports its hardware CGL renderer and warns before trying a software fallback.
macbot 0.3.3
Added
init --from-lerobotimports serial arm settings, camera roles, recording rate and task instructions. Confirm Mac device assignments and reuse the existing calibration IDs.runandbenchaccept Hub checkpoint IDs with optional revisions. Hub trials record the resolved commit.healthandreplayread local and Hub LeRobot v3.0 datasets, including frame gaps, recorded traces and camera playback.- The migration guide covers moving an existing LeRobot setup from Linux to a Mac.
- Opt-in
--backend autoforrunandbench, with checkpoint compatibility checks and a reason when it
falls back to PyTorch. Trials save the backend decision andmacbot policieslists implemented backends. bench --mode rtctimes guided inference for RTC-capable backends without connecting a robot.- π0 MLX backend for compatible 224px PaliGemma 2B checkpoints, with chunk and guided RTC paths.
Both modes met the absolute fidelity limits on recorded observations and are eligible forauto. - SmolVLA MLX chunks for the stock SmolVLM2-500M architecture.
autouses the public base
benchmark to select MLX for compatible checkpoints in synchronous chunk mode. - Explicit PyTorch MPS experiments for ACT and Diffusion: autocast (potentially lossy), convolution
layout, single readback on ACT, and compilation on Diffusion. Existing defaults are unchanged.
Changed
- The README starts with the workflow for bringing an existing LeRobot setup to the Mac.
- π0 and π0.5 on MLX can read checkpoints that save SigLIP under
vision_model. --backend autouses MLX for compatible π0.5 chunk and RTC inference. On recorded observations it was
faster and closer to FP32 than the compiled BF16 path.
macbot 0.3.2
Added
--query-every Kmakesasyncandrtcquery every K policy steps, and--rtc-schedule expuses the exponential guidance decay of the RTC paper.chunk,asyncandrtcruns save the chunks at every switch, andtools/chunk_shift.pymeasures how far each new chunk starts behind the current command.runandcollectrecord follower motor feedback and show temperatures in the joint panel. The default
watchdog holds the measured pose on a motor fault, high temperature or sustained arm tracking error, and
archives the interruption separately.healthreports motor maxima and watchdog events.run --grip-lead SECONDScloses a binary gripper when the policy plans to close that far ahead in the current
chunk, which offsets the late close label of leader-thresholded demonstrations. Off by default. Executors gain
a side-effect-freepeek(now); trials recordgp_ahead.- Opt-in leader takeover in
run, with arm and gripper alignment, a gripper speed limit, recorded control states and hand-in-scene marks. - Replay shows calibrated grasp-miss flags, and reviews can exclude trials from summaries and exports.
macbot export --rolloutswrites LeRobot v3 trials with frame labels and reviewed outcomes.macbot export --rollouts --segmentssplits policy and human control into separate training episodes,
drops handover and short runs, and labels policy frames leading up to a takeover.- Review saved trials from current and earlier sessions in the paused run console, with synchronized
cameras, joint traces and per-chunk timing. Result and note edits are shared withreplayandhealth. macbot initguides USB arm selection, live camera assignment and manual LeRobot calibration.
It checks a per-user profile thatcollectandruncan find automatically.init --yes
supports setups whose roles are already known.- Load compatible LeRobot checkpoints with their saved processors.
macbot policieslists tested
coverage, andbench --profilebreaks down generic inference. ACT and π0.5 keep their defaults.
Changed
collect,runandreplayopen their console in the default browser likeinit, also undersudo
(as the user who ran sudo). A console page left open reloads for the next session instead of a new tab opening.
Pass--no-browseror setMACBOT_NO_BROWSER=1to only print the URL.- Setup can preserve existing camera framing and calibration. Exports and trials record framing, and
policy runs reject a known mismatch before connecting. - Local consoles try nearby ports when a default is busy and print the bound URL. Explicit ports stay fixed.
- The base install now includes LeRobot's
feetechanddynamixelextras andpyserialfor
serial arm discovery and support. - README: a pixel-art workflow scene replaces the console screenshot at the top, and the tagline and
package description now cover LeRobot policies in general rather than only ACT and π0.5.
Fixed
- Takeover starts from a rough match (every arm joint within 30°, gripper state matching) and follows the leader with
a one-second soft start. The first version required all six joints within 5° at once, which nobody can hold by
hand. Brief leader dropouts (under 0.5 s) no longer end the takeover, and leader readings that the servo library
holds are used ascollectuses them. The library holds readings near 0° as possible power-cycle glitches, so
the closed leader gripper (0°) dropped 30-46 % of takeover frames before. - Home in the run console now moves at
run.home_vel(default 25 deg/s) along a straight line in joint space
with a short ramp. It used the policy limitmax_vel × speed(96 deg/s at speed 0.8), far too fast. - Console pages no longer break after an upgrade because the browser kept an older cached
common.js. macbot initno longer fails on macOS while scanning USB devices (ioregreturns one root entry), and a camera's
serial port is no longer offered as an arm.
macbot 0.3.1
Added
- Guided Real-Time Chunking on the MLX backend.
--backend mlx --mode rtcnow stays on MLX instead
of falling back to PyTorch: about 170 ms per guided chunk on an M5 Pro against about 350 ms on
PyTorch MPS, matching LeRobot's guided output within 0.07° mean / 0.35° p99. --mlx-time-grid quadraticforrunandbench: with a reduced--steps, places the flow
evaluations closer to the clean action end. Lossy; evaluate on your own checkpoint first.tools/accel/: matmul shape benchmarks, alternative solvers (quadratic grid, AB2, midpoint) and
attention-ranked visual token dropping for offline study only.- Versioning and release policy (
docs/releasing.md).
Changed
- The README benchmark tables are grouped by policy, backend and execution scheme.
- The default 10-step MLX path returns bit-identical actions to 0.3.0.
Version numbers now follow docs/releasing.md: while macbot is 0.x, backward-compatible features and fixes are patch releases, and a minor bump means something breaks.
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 --profilemacbot 0.2.0
More arms, a simulator, and the groundwork for a long-lived project.
Added
- A shared robot interface with a reBot B601 profile and generic LeRobot follower/leader
configs for compatible joint-position arms, including SO-100/101, Koch, OMX, OpenArm and YAM. - An SO-101 UVC configuration, the
macbot robotscommand, and configurable fake joint layouts. - A local SO-101 MuJoCo simulator with a scripted leader, scene reset and robot observation
cameras (type: robot). - An in-process collection driver and tests for generic arms, simulated cameras, export and diagnostics.
- Bilingual contributor, architecture, robot support and roadmap docs, community policies,
GitHub issue and PR templates, and monthly GitHub Actions dependency updates. - Development tooling with Ruff and pre-commit, with CI on macOS and Ubuntu for Python 3.12 and 3.13.
Changed
- Collection, checks, rollout controls, and export use the configured joint layout and robot
metadata. Policy startup checks checkpoint state/action dimensions; export preserves the
robot type and accepts full-frame crops. macbot doctorchecks the selected profile, including driver, serial and calibration
checks for generic arms and local dependency checks for the bundled simulator.- Added PyPI package metadata and a release workflow for Trusted Publishing.
Fixed
macbot benchuses the checkpoint's state dimension so it can benchmark policies for arms
with fewer or more than seven joints.
Only the reBot B601-RS profile is tested on hardware so far. SO-100/101 and the other LeRobot arms are verified in fake mode, and the SO-101 MuJoCo scene in simulation. Hardware reports are very welcome: open a Hardware report issue.
pip install -U macbotmacbot 0.1.0
First public release. macbot runs the robot side of real-robot learning on a MacBook: teleoperated data collection, data checks, export to LeRobot, and closed-loop ACT and π0.5 inference on Apple silicon.
Highlights
- Collection console (web): live cameras, one-key record / save / discard, per-episode language instruction, automatic quality checks, instant replay with joint traces.
- Export to LeRobot v3 datasets, with an optional binary gripper action.
- Policy runner for ACT and π0.5 with four execution schemes: synchronous chunks, temporal ensembling, asynchronous chunks, and Real-Time Chunking. It also enforces speed and joint limits, pauses when a camera stalls, and returns to zero in two stages.
- Trial replay and side-by-side MP4 export.
macbot doctor,macbot health,macbot bench.--fakesimulated arm and cameras for every robot command.- English and Chinese UI, light and dark mode.
Measured on a MacBook Pro (M5 Pro, 48 GB)
| π0.5 inference | ~280 ms |
| π0.5 with RTC guidance | ~350 ms |
| ACT inference | ~25 ms |
| Camera frame age at sampling time, p95 | ≤ 40 ms |
Requirements
macOS on Apple silicon, Python 3.10+, LeRobot 0.7.0. The reference hardware is a reBot B601-RS follower and reBot Arm 102 leader, a PCAN-USB adapter, a UVC scene camera, and an Orbbec Gemini 2 wrist camera.
See the README and the setup guide.