mlx.distributed stalls at 3.55 tok/s on dense 27B q8 and fails disk admission on 35B-A3B MoE. MiniMesh (arXiv:2612.03838) pushes the same cluster to 9.35 tok/s on 27B q8 (14.15 tok/s on GSM8K) and 23.63 tok/s on 35B-A3B MoE (27.30 tok/s on HumanEval) with Apache-2.0 code live today.
The catch: Keeping M4 GPU clocks awake raises 7-node GPU power 24.4x (from 2.13 W to 52.01 W), dense 27B prefill TTFT slows from 2.34 s to 4.59 s, and the runtime targets single-user serving on Qwen3.5/3.6 models only.
Seven base $599 M4 Mac minis pool 112 GiB of unified memory and expose rear 40 Gbps Thunderbolt 4 ports. Yet wiring them into a ring and running textbook datacenter parallelism makes inference slower, not faster. A December 2026 paper by YinChing Zhao, YangKuang Ou, Kenny Gao, and Yuanjie Wu (Basis Bilingual School Shenzhen) isolates three physical walls on macOS 15.3.1 (MLX 0.32.2, 12,800 MiB GPU wired ceiling) and ships MiniMesh, an open-source distributed MLX runtime backed by 285 SHA-256-verified artifact files.
The Core Trick in Plain English
Wall 1: The 59.1x macOS Thunderbolt 4 cliff. Without a costly Thunderbolt switch, seven minis connect in a closed ring (C7). Direct 1-hop Thunderbolt 4 cables at MTU 9000 push BF16 tensors at 11.01 Gbps (4 MiB payload, 0.310 ms control RTT), beating switched Gigabit Ethernet (915 Mbps) by 12x. Route traffic through one intermediate Mac via macOS IPv4 forwarding, however, and throughput collapses 25.9x to 424 Mbps. Cross two hops and it drops 59.1x to 186 Mbps (7.45 ms RTT), slower than plain Gigabit Ethernet.
MiniMesh enforces strict 1-hop topology discipline. Its 1 Draft + (TP=2 x PP=3) ring assigns Node 1 to a 0.58 GiB 0.8B draft model and pairs Nodes 2-3, 4-5, and 6-7 as three 2-way tensor-parallel pipeline stages over Cables 2, 4, and 6. Cable 7 returns only 4(K+1) bytes of uint32 token IDs to Node 1 instead of full logit vectors. Every activation relay, AllReduce, and token return crosses exactly one physical cable, while non-adjacent all-to-all peers offload onto switched GigE.
Wall 2: The 6-7 ms M4 GPU DVFS death spiral. Consumer Apple Silicon aggressively drops clocks during brief idle gaps. Controlled 100 ms macmon sweeps show that just 6 to 7 milliseconds of idleness cuts M4 active GPU frequency roughly in half, from 1,577 MHz to 799 MHz, inflating 22-layer latency 2.26x to 2.67x (r = 0.982). At 850 ms idle, a second deep-sleep cliff slows verification 5.39x (389.9 ms vs. 72.3 ms). Because every stage in a 3-stage pipeline waits over 130 ms for downstream ranks, naive TP=2 x PP=3 spirals down to 2.03 tok/s, slower than plain PP=7 (3.14 tok/s). With no macOS API to pin GPU clocks, MiniMesh runs decode-only GPU keep-warm: waiting target ranks execute tiny synchronous 768 x 768 FP16 Metal matmuls (2.25 MiB scratch, 500 ms safety cap) while polling sockets during decode, holding clocks flat until bytes arrive.
Wall 3: MoE wire blowup and hybrid speculative rollback. On 40-layer, 256-expert Qwen3.6-35B-A3B, single-stream Expert Parallelism (EP=7) pushes 2,222.2 KiB/token over the wire versus 24.20 KiB/token for contiguous PP=7, a 91.8x penalty. Static hot-expert caching fails too: across 40 public prompts, prefill’s Top-16 experts match only 28.61% (+/- 4.53%) of decode dispatches per prompt and 12.48% when pooled.
MiniMesh instead runs contiguous PP=7 with speculative decoding. Because Qwen3.5/3.6 mixes standard attention with in-place recurrent Gated DeltaNet layers, standard KV-pointer rollback breaks. MiniMesh introduces Single-Pass Snapshot Rollback (SSR): one packed (K+1)-row verification pass reads weights once and captures lightweight intermediate recurrent and convolution snapshots (~3.06 MiB/layer/step, ~588 MiB cluster-wide for K=4). On partial rejection, stages restore the exact accepted snapshot in 0.15 to 0.64 ms with zero weight re-reads, zero bonus forward passes, and 100% bitwise greedy parity within each topology.
Verified Benchmark Audit
Data below comes from Tables 3 and 4 of arXiv:2612.03838v2 on 7x16 GiB M4 Mac minis (orig-64: 509-token prompt, 64 greedy tokens, 10 warmed trials for flagship MiniMesh rows, 5 trials for stock mlx.distributed; Pub40-128: 40 prompts across HumanEval, GSM8K, MT-Bench, and CNN/DailyMail, 128 tokens).
| 7-Node Configuration | Fabric | TTFT (ms) | Decode (tok/s) | vs. Own PP | Swap (MiB) | GPU J/tok |
|---|---|---|---|---|---|---|
Dense 27B q8: Stock mlx.distributed PP (orig-64) |
TB4 relay | 2,340 +/- 27 | 3.55 +/- 0.00 | N/A | 1,556 | N/A |
Dense 27B q8: MiniMesh PP=7 Overlap (orig-64) |
TB4 C7 | 2,651 +/- 7 | 3.14 +/- 0.01 | 1.00x | 455 | N/A |
Dense 27B q8: MiniMesh TP=2 x PP=3 No KW (orig-64) |
TB4 C7 | 4,441 +/- 557 | 2.03 +/- 0.02 | 0.65x | 455 | 0.95 |
Dense 27B q8: MiniMesh TP=2 x PP=3 + KW (orig-64) |
TB4 C7 | 4,443 +/- 169 | 4.51 +/- 0.01 | 1.44x | 455 | 9.53 |
Dense 27B q8: MiniMesh 1+TP K=4 No KW (orig-64) |
TB4 C7 | 3,427 +/- 95 | 3.76 +/- 0.65 | 1.20x | 455 | 0.58 |
Dense 27B q8: MiniMesh 1+TP K=4 + KW (orig-64) |
TB4 C7 | 4,586 +/- 209 | 9.35 +/- 0.11 | 2.98x | 455 | 5.56 |
Dense 27B q8: MiniMesh 1+TP K=5 + KW (Pub40 All-40 / GSM8K) |
TB4 C7 | N/A | 11.61 / 14.15 | 3.38x / 4.43x | 455 | N/A |
Sparse 35B-A3B q4: Stock mlx_lm PP |
TB4 | Disk OOM | Failed | N/A | N/A | N/A |
Sparse 35B-A3B q4: MiniMesh EP=7 Uniform (orig-64) |
GigE | N/A | 1.69 | 0.11x | 455 | N/A |
Sparse 35B-A3B q4: MiniMesh PP=7 Unprofiled (orig-64) |
TB4 C7 | 604 +/- 8 | 15.27 +/- 0.12 | 1.00x | 455 | N/A |
Sparse 35B-A3B q4: MiniMesh 1+6 Spec K=3 (orig-64) |
TB4 C7 | 645 +/- 8 | 23.63 +/- 0.24 | 1.55x | 455 | N/A |
Sparse 35B-A3B q4: MiniMesh 1+6 Adap (Pub40 All-40 / HumanEval) |
TB4 C7 | N/A | 22.31 / 27.30 | 1.39x / 1.71x | 455 | N/A |
Two results stand out. First, keep-warm does more than speed 1+TP K=4 up 2.49x (3.76 to 9.35 tok/s); it cuts run-to-run variance 5.85x (0.65 to 0.11 tok/s) by stopping trials from oscillating between DVFS cliffs. In aligned 7-rank Perfetto traces, steady-state Round #2 shrinks 5.08x from 1,430.4 ms to 281.5 ms.
Second, stock mlx_lm fails outright on 35B-A3B because whole-shard downloads demand 9.00 GiB on mini06, breaching its 5.04 GiB usable disk headroom above a 10 GiB safety floor. MiniMesh’s offline 3D slicer deploys only local stage tensors and holds host swap flat at 455 MiB (vs. 1,556 MiB for stock mlx.distributed). Also note that across 80 alternating GigE vs. TB4 trials from 2K to 16,384 prompt tokens, pure PP=7 prefill TTFT stayed within 1% on both fabrics (68.74 s TB4 vs. 68.93 s GigE at 16K dense q8). Pure pipeline prefill is compute-bound; Thunderbolt 4 only matters once TP=2 AllReduces (178.6-218.0 microseconds/call) or 7-stream concurrent EP prefill enter the loop.
What the Authors Downplayed
- Keep-warm trades steep power for latency. Enabling
decode_onlykeep-warm raises 7-node GPU-only power from 2.13 W to 52.01 W (7.43 W/node) and lifts GPU energy from 0.58 to 5.56 J/tok. SpeculativeK=4saves 41.6% energy relative to non-speculative keep-warm TP (9.53 J/tok), yet every idle rank still burns dummy matmuls to outsmart macOS. Wall-plug and DRAM rail power remain unmeasured. - Dense prefill TTFT slows down. On
orig-64,1+TP K=4 + KWtakes 4,586 ms to first token versus 2,340 ms on stockmlx.distributedTB4. Deferring keep-warm until decode did not shrink TTFT (4,586 vs. 4,620 ms for always-on), so short prompts with brief answers give back part of the decode win. - Narrow hardware, draft, and eval boundaries. All tests ran on 7 identical base M4 minis running Qwen3.5/3.6 checkpoints with single-user concurrency. A 9B 8-bit draft model (
xmid, 8.86 GiB) failed admission on 16 GiBmini01(10.45 GiB > 6.78 GiBsafe UMA cap), restricting drafts to 4B or smaller. On GSM8K, the 128-token output cap truncated 9 of 10 chain-of-thought solutions (1/10score on both topologies), leaving only HumanEval’s matched7/10sandboxed pass rate as functional verification. - Who should skip this architecture. Seven base M4 Mac minis cost roughly $4,193 before cables and a switch, yet still top out at 9.35-14.15 tok/s on dense 27B q8. New buyers looking for dense throughput should buy a single high-memory workstation or Mac Studio with Thunderbolt 5 RDMA (JACCL on macOS 26.2+). MiniMesh makes sense for builders who already own base Apple Silicon minis or need low-cost 112 GiB memory pooling across desktop nodes.
Can You Run It Today?
| Artifact | Status | Details & Primary Link |
|---|---|---|
| Runtime & Scripts | Live (Apache-2.0) | github.com/YinChingZ/MiniMesh (Python 3.12 + MLX 0.32.2 runtime, C7 TB4 MTU-9000 scripts, 3D MoE slicer, 296 passing tests). |
| Frozen Benchmark Data | Live (CC-BY-4.0) | DOI:10.5281/zenodo.24770264 & HF Dataset mirror (285 SHA-256 JSON logs, macmon sweeps, Perfetto traces). |
| Model Weights | Stock Checkpoints | Runs stock MLX Qwen3.5-27B (q4/q8), Qwen3.6-35B-A3B (q4), and 0.8B draft weights with zero fine-tuning. |
| Hardware Floor | 2 to 7 Macs | Full ring needs 7x16 GiB Macs (sysctl iogpu.wired_limit_mb=12800), 7 TB4 cables, and a GigE switch; CPU simulation tests run on any laptop. |
Even without seven Mac minis, Section 2 of arXiv:2612.03838 is required reading before cabling any multi-Mac AI setup: disable Thunderbolt Bridge, stay strictly on 1-hop MTU 9000 links, and measure the 7 ms M4 GPU clock cliff before blaming MLX.