MiniMesh: Breaking Interconnect, DVFS, and Routing Walls for Distributed LLM Inference on Commodity Apple Silicon Clusters
Abstract
Serving dense (27.48 GiB 8-bit 27B) and sparse Mixture-of-Experts (19.03 GiB 4-bit 35B-A3B) models interactively across 7x16 GiB Apple M4 Mac minis exposes three hardware and software walls that break datacenter parallelism: (1) a dual-speed Thunderbolt 4 (TB4) cliff, where macOS L3 forwarding collapses 11.01 Gbps 1-hop links 25.9x-59.1x to 424-186 Mbps -- slower than Gigabit Ethernet (915 Mbps); (2) an M4 two-stage GPU DVFS collapse after 6-7 ms of pipeline idleness (1,577 to 799 MHz at 7 ms in 100 ms telemetry; 2.26x-2.67x Stage-1, 5.39x at 850 ms), causing naive tensor parallelism to regress below pipeline parallelism (2.03 tok/s); and (3) an MoE prefill-to-decode routing shift, where prefill Top-16 experts capture only 28.6% 4.5% of decode dispatches per prompt (12.5% pooled across 40 public prompts) while Expert Parallelism inflates decode wire traffic 91.8x. We present MiniMesh, a distributed MLX runtime co-designed around these walls via a 100% 1-hop 1 Draft + (TP=2 x PP=3) dual-fabric ring, Single-Pass Snapshot Rollback (SSR) for speculative verification (0.15-0.64 ms/round zero-weight-read commit), and decode-only GPU keep-warm with conservative UMA admission control. Across 10 trials on 7 M4 nodes (orig-64), MiniMesh reaches 9.35 0.11 tok/s on 27B q8 (2.64x over 5-trial stock mlx.distributed TB4; 41.6% lower GPU energy/tok than non-speculative TP under keep-warm) and 23.63 0.24 tok/s on 35B-A3B (1.55x over unprofiled PP=7; 13.96x over EP=7) where stock mlx_lm fails disk admission. Across 40 public prompts (Pub40-128), MiniMesh averages 11.61 3.41 tok/s on q8 (3.38x vs. PP=7) and 22.31 5.66 tok/s on 35B-A3B (1.39x vs. unprofiled PP=7; 27.30 tok/s / 1.71x on HumanEval), preserving 100% within-topology bitwise parity and matched 7/10 HumanEval pass rates across PP=7 and TPxPP.
Create a lesson
Metadata
- Categories
- cs.DC, cs.AR, cs.PF
- Comments
- 18 pages, 6 figures, 6 tables. v2: added public GitHub source repository (https://github.com/YinChingZ/MiniMesh) and Zenodo DOI (10.5281/zenodo.24770264) for the 285 SHA-256-verified experimental artifacts
Related papers
Strassen-Winograd Matrix Multiplies and Apple Silicon: Two Fast Things That Go Fast Together
Shared title terminologycs.DCDavid G. Andersen
Breaking Routing And Inter-device Dependencies in Mixture-of-Experts
Shared title terminologycs.DCJohn Zarka, Danyal Ahmed, Eugene Belilovsky et al.
Toward an Adaptive Optimizer for Generative Inference with Large Language Models
Shared title terminologycs.DCRuben Mayer, Nikita Agrawal, Alisa Pogodaeva
Layer-first Prefix KV Cache Loading for Low-latency Inference on Huawei CloudMatrix
Shared title terminologycs.DCRuozhuo Gan, Yuedong Xu
xInfer: Elastic Parallelism and Load Balancing for Long-Tail Offline LLM Inference
Shared title terminologycs.DCAo Sun, Yinghao Chen, Shiju Wang et al.
Private and Fast Distributed MIS
Shared title terminologycs.DCFabien Dufoulon, Juan Garay, Connor Neibert et al.