The Other Half of the Memory Wall: Serving 35B MoEs from SSD with Trained Routing Prediction
Abstract
Edge0 enables efficient mixture-of-experts inference on consumer hardware by predicting expert routing ahead of time and using recovery adapters to maintain quality with minimal active memory.
Mixture-of-experts (MoE) inference on consumer hardware is bounded by weight memory: a 35B-class model is 19.5GB at 4-bit, and sparsity shrinks the compute per token, not the bytes that must be held. Naive offloading to SSD does not help on its own, because layer N+1's experts must be chosen before layer N's output exists, so the reads cannot start early enough to hide behind compute. We present Edge0, a streaming MoE inference engine that closes the gap with a prerouter: a per-layer head predicts the next layer's routing one token ahead, and the prediction is consumed as the routing itself, so the staged expert set equals the routed set and nothing is dropped. An unmerged recovery LoRA, trained on the student path, pays back the quality lost to int4 quantization and routing replacement. On a single 24GB machine, Edge0 serves a 35B MoE at 20tok/s inside 3GiB of peak active memory, within a few points of its fp16 teacher on average across five public benchmarks. An 8B tier runs on the same framework, and the framework, checkpoints, and adapters are open source.
Community
Mixture-of-experts (MoE) inference on consumer hardware is bounded by weight memory: a 35B-class model is 19.5GB at 4-bit, and sparsity shrinks the compute per token, not the bytes that must be held. Naive offloading to SSD does not help on its own, because layer N+1's experts must be chosen before layer N's output exists, so the reads cannot start early enough to hide behind compute. We present Edge0, a streaming MoE inference engine that closes the gap with a prerouter: a per-layer head predicts the next layer's routing one token ahead, and the prediction is consumed as the routing itself, so the staged expert set equals the routed set and nothing is dropped. An unmerged recovery LoRA, trained on the student path, pays back the quality lost to int4 quantization and routing replacement. On a single 24GB machine, Edge0 serves a 35B MoE at 20tok/s inside 3GiB of peak active memory, within a few points of its fp16 teacher on average across five public benchmarks. An 8B tier runs on the same framework, and the framework, checkpoints, and adapters are open source.
Does a wrong prediction stall the decode to fetch the right experts, or push forward with the wrong ones and eat the quality hit? That's the whole game with one-token-ahead routing prediction. If it's the latter, I want the accuracy curve, not the average β the tail. One bad prediction mid-generation silently degrades output while your latency numbers still look fine. And on a consumer box, a wrong SSD fetch can cost more than the prediction saved. What's the per-layer accuracy, and what does the latency distribution actually look like?
we use prediction result as routing, so it is 100% accuracy.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Cacheable by Design? Training Mixture-of-Experts Routers for Locality Against the Edge Memory-Bandwidth Wall: A Pre-Registered Negative Result with a Systems Measurement Study (2026)
- Budgeting Bytes: A Windowed Storage Roofline and Dual-Budget Architecture Ablations for Storage-Bound LLM Decoding (2026)
- FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution (2026)
- NeuroPrefetcher: Storage-Aware Sparse LLM Inference via Delta Prefetching (2026)
- Who Should Own the Expert Cache? Kernel-Managed Tiering for Trillion-Parameter MoE Inference (2026)
- HiSparse: Scaling Sparse-Attention Decoding with Hierarchical KV Cache Management (2026)
- Q-First: Most of Attention Needs Only the Query in Disaggregated LLM Decoding (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
The most useful detail for me is that on the 24 GB M4 Pro the 35B tier still does 19.9 tok/s with the prerouter off (vs 20.4 with it). So on that machine the win over resident mlx-lm comes mostly from the streaming engine, and the +80β84% from the prerouter shows up on the 16 GB M2, where the weights don't fit. That's a refreshingly honest split. For Linux homelab boxes with NVMe and a 24 GB GPU, is a CUDA backend the next step, and do you expect the ~44 ms/step graph-building floor to look very different there?
That split is exactly right, and worth stating plainly: 19.9 vs 20.4 on the 24 GB M4 Pro is within noise, because there the checkpoint mostly fits and page cache absorbs the reads β the +80β84% only shows up on the 16 GB M2, where every step faults from SSD. So the prerouter is a fix for the fault-bound regime; the streaming engine is what buys you the memory.
On CUDA: for a 24 GB box running the 35B/8B tiers, it isn't the next step β those are exactly the sizes the streaming engine exists to serve, and at 24 GB the model either fits or nearly fits, so you're in the regime where the prerouter is a small delta anyway. The CUDA backend we're building targets the 100B+ class, where the bottleneck moves to GPU compute and the model vastly exceeds device memory β a different problem needing a different engine. There the ~44 ms/step floor would indeed look different: it's CPU-side graph assembly in the MLX path, not storage physics, and a CUDA-native path (CUDA graphs, pinned/async copies, multi-stream) would attack it rather than inherit it β and it's a full rewrite of the executor/gather/slot machinery, not a facade slot-fill.
The prerouter idea is neat, using the predicted routing as the routing itself so nothing has to be dropped. Two practical questions. How much does throughput depend on SSD read speed, for example a SATA SSD versus NVMe? And does the recovery LoRA have to be retrained for each int4 scheme, or would it transfer to GGUF style quants like Q4_K?
On SSD speed: Raw bandwidth is a minor term β on the measured machine (1.88 GB/s) the bytes moved per step equal only ~12% of step time at K=8; the rest is serialized per-load latency (page fault + mmap lock + assembly), which doesn't scale with GB/s. So SATA vs NVMe only nudges that ~12%, not a regime change, and the prerouter's relative gain actually grows on slower storage (see Limitations).
On the LoRA: No retraining needed per scheme β it's served unmerged as a parallel delta, so the adapter never depends on the base's quant format, and its main job is fixing the routing replacement (scheme-independent). So Q4_K / other 4-bit schemes work under the same adapter.
Details and code: https://github.com/Edge0-AI/Edge0.
Get this paper in your agent:
hf papers read 2609.18063 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 5
Edge0/Edge0-8B-A1B-preview
Datasets citing this paper 0
No dataset linking this paper