Search arXiv⌕ Search

arXiv · 2612.03838

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% $\pm$ 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 $(K+1)$ 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 $\pm$ 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 $\pm$ 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 $\pm$ 3.41 tok/s on q8 (3.38x vs. PP=7) and 22.31 $\pm$ 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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

YinChing Zhao, YangKuang Ou, Kenny Gao, Yuanjie Wu. 2026-12-03. MiniMesh: Breaking Interconnect, DVFS, and Routing Walls for Distributed LLM Inference on Commodity Apple Silicon Clusters. https://searcharxiv.org/abs/2612.03838

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

SP-MoE: Speculative Decoding and Prefetching for Accelerating MoE-based Model Inference

The Mixture-of-Experts (MoE) architecture has been widely adopted in large language models (LLMs) to reduce computation cost through model sparsity. Employing speculative decoding (SD) can further accelerate MoE inference by drafting multiple tokens per step and verifying them in parallel. However, combining MoE with SD inflates GPU memory and aggravates CPU-GPU bandwidth contention during multi-token verification. Existing MoE offloading systems are SD-agnostic and do not address this bottleneck. We present SP-MoE, the first SD-aware expert-offloading and compute-communication pipelining framework. SP-MoE introduces: (1) speculative expert prefetching that exploits structural correspondence between the draft and target models to prefetch likely experts ahead of verification; (2) a cutoff-layer policy that bounds per-layer prefetch depth based on empirical profiles and an analytical latency model, guaranteeing just-in-time availability without overfetch; and (3) a pipelined runtime with asynchronous prefetch threads and batched I/O to hide loading latency. Extensive experiments demonstrate that SP-MoE achieves a 1.07-3.5 times TPOT speedup over state-of-the-art methods across diverse datasets, environments, and MoE-based models.

cs.DC↗

An Online Fragmentation-Aware GPU Scheduler for Multi-Tenant MIG-based Clouds

The explosive growth of AI applications has created unprecedented demand for GPU resources. In this context, the sharing of GPU resources between different tenants is essential to maximize the number of scheduled workloads. Among the various GPU sharing technologies, NVIDIA's Multi-Instance GPU (MIG) stands out by partitioning GPUs at the hardware level into isolated slices with dedicated compute and memory, ensuring strong tenant isolation, preventing resource contention, and enhancing security. Despite these advantages, MIG's fixed partitioning introduces scheduling rigidity, leading to severe GPU fragmentation in multi-tenant environments, where workloads are continuously deployed and terminated. Fragmentation leaves GPUs underutilized, limiting the number of workloads that can be accommodated. To overcome this challenge, we propose a novel scheduling algorithm for MIG-based clouds that maximizes workload acceptance while mitigating fragmentation in an online, workload-agnostic setting. We introduce a fragmentation metric to quantify resource inefficiency and guide allocation decisions. We compare our approach with several baseline strategies across a range of workloads, including both synthetic workloads and real-world traces of the Alibaba GPU cluster. Results demonstrate that our method consistently achieves higher workload acceptance rates and better GPU utilization.

cs.DC↗

Generative Markov Modeling Framework for Distributed Computing Systems

Emerging distributed computing paradigms, such as the computing continuum, are inherently heterogeneous, stochastic, and complex. Efficiently and effectively utilizing all available resources across the continuum demands a unified formal model of the system. To address this gap, we propose a general framework for modeling distributed computing systems as a generative Markov model, factorized over a structured system state. In our model, the state decomposes into high-dimensional variables, each further factorized over its elements, reflecting the sparse dependency structure inherent to distributed systems. This yields a tractable model that enables simulation, inference, and policy learning over otherwise intractable system states, bridging distributed computing, Markov chain theory, and reinforcement learning (RL). We demonstrate our framework through a case study of collaborative artificial intelligence (AI) inference, in which a dedicated server combines resources with those volunteered by service users. Our results show that centralized scheduling becomes a bottleneck at scale, while distributing computation across user devices reduces both latency and server resource consumption. These findings demonstrate the framework's utility for modeling, simulation, and optimization and highlight the value of adaptive decision-making in distributed computing systems.

cs.DC↗