Writing
November 19, 2026 · 3 min read

180B parameters on a 32 GB Mac: expert streaming in Transformers

Hugging Face shows a ~180B-parameter MoE running on a 32 GB Mac by streaming routed experts from SSD into a slot-pool cache, reaching within 6% of Strata on decode. A solid systems result, not a new model.

mixture-of-expertsllm-inferencetransformerslocal-inferencequantization

Tarek Ziadé at Hugging Face has published a write-up on running Qwen3.8-Flash-Next, a roughly 180B-parameter mixture-of-experts model, on a 32 GB MacBook with Transformers. The experts alone are 121 GB in FP8. The move is to treat that as a streaming problem rather than a memory problem: keep only the experts the router picks on the device, and read the rest from SSD. After optimisation, decode lands within 6% of Strata, a dedicated MoE offloading engine, on the same machine. It is not a new model or algorithm. It is careful systems work, which is the reason to read it.

Why existing offloading falls short

  • llama.cpp mmaps the GGUF and keeps experts on the CPU. Excellent when they fit in RAM; page-cache thrashing when they don't.
  • vLLM with --cpu-offload-gb caches nothing, so hot experts cross PCIe on every token, and there is no disk tier.
  • Transformers + Accelerate offloads the whole expert bank as one module, copying every expert to use 8 or 10. On a Mac's unified memory, "offload to CPU" frees nothing.

On a 24 GB A10G with Qwen3.6-35B-A3B, the author measured Strata at 82–88 tok/s decode, llama.cpp Q8_0 at 63–64, vLLM's best configuration at 20.1, and Transformers + Accelerate at 0.16.

The core idea: a slot pool that looks like an expert bank

A first LRU prototype that looped over experts in Python reached 10.1 tok/s against about 32 for vanilla Transformers, which runs a layer's experts in one grouped_mm kernel. The fix is the part I would keep: make the cache one preallocated device tensor shared by all layers, plus a per-layer table mapping expert id to slot. Remap the router's ids to slot ids and the pool looks like an ordinary expert bank, so the existing kernel runs unchanged. On OLMoE-1B-7B that gave 34.6 tok/s against 38.1 for vanilla.

One MoE layer for one token: the router picks 10 of 512 experts, a slot table maps them into a 12 GiB LRU slot pool, misses are read from SSD by 8 I/O threads, and grouped_mm runs directly on the pool while the next two layers' routers prefetch ahead

Misses are read by 8 I/O threads, one contiguous read per expert, while the next two layers' routers run early to guide prefetch. The path is proposed as an experts_offload option to from_pretrained in huggingface/transformers#50717; the API is still under discussion with the maintainers.

Fitting it into 32 GB

The model has 48 layers of 512 experts, 10 active per token, plus a 51 GB n-gram embedding table. Experts are quantised to 3 bits (49 GB on disk, 12 GiB cached on the device), dense layers to 8 bits (about 5.4 GB, with a reported +0.2% perplexity versus BF16), and the n-gram table stays on disk with rows read on demand. Memory peaks at 25.4 GiB on a 6K prompt; the author closes the browser to avoid swapping, which is an honest description of "fits".

Closing the gap

The first end-to-end version decoded at 10.0 tok/s against Strata's 14.8, and most of the remaining time was not spent on experts. Forcing MPS to commit GPU work per block gave about 10%. Metal kernels covered Gated DeltaNet and the hyper-connections. Strata's GGUF weights cut dense traffic from 5.4 GB to 3.9 GB per token. And since no cache policy beat LRU by much, speculatively reading one guessed expert per layer put otherwise idle SSD time to use. Final decode: 13.9 tok/s against 14.8. Full setup and raw numbers are on the project Space.

My take

The slot-pool idea generalises. When you put a cache in front of a batched kernel, making the cache look like the original tensor layout usually beats writing a new kernel around it. And once weights stream efficiently, the bottleneck moves to framework scheduling, missing kernels, and auxiliary tables; anyone sizing local MoE deployments should budget for those, not just expert bytes.

The limits are real. 13.9 tok/s is, by the author's own account, too slow for interactive coding agents; the 3-bit experts and roughly five-hour conversion carry their own costs; and the PR is not merged. I read this as a credible step toward a first-class streaming path in Transformers, not a reason to change how you serve today.

References
  1. 01180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers (Hugging Face)
  2. 02huggingface/transformers#50717: experts_offload
  3. 03tarekziade/moe-expert-streaming (Hugging Face Space)