Get the daily emailDaily email
  1. Home
  2. Agents
  3. This story

Running a 180B MoE model on a 32 GB Mac by streaming experts in Transformers

A Hugging Face engineer built an experimental Transformers PR (huggingface/transformers#50717) adding an experts_offload option to from_pretrained that streams MoE experts from SSD and keeps only hot experts in a device-side cache. The key trick is a shared…

Published Read the original
Running a 180B MoE model on a 32 GB Mac by streaming experts in Transformers

Why it matters

If merged, it would let engineers run MoE models far larger than their memory on a laptop or single consumer GPU directly from Transformers, without switching engines.

What happened

1 min read

A Hugging Face engineer built an experimental Transformers PR (huggingface/transformers#50717) adding an experts_offload option to from_pretrained that streams MoE experts from SSD and keeps only hot experts in a device-side cache. The key trick is a shared slot pool that lets the existing grouped_mm kernel run on cached experts unchanged, with router look-ahead prefetching and 3-bit quantized experts. With it, Qwen3.8-Flash-Next (121 GB of experts) runs on a 32 GB MacBook, getting within about 6% of the Strata engine on token generation.

inscraper analysis

Our analysis

The comparison table is the most useful part: llama.cpp remains the best choice when experts fit in RAM, and Transformers' current Accelerate offload is effectively unusable for MoE (about 0.16 tok/s). The new work mainly closes that gap inside Transformers rather than beating Strata, and on the Mac it is still too slow for interactive coding-agent use. Conversion takes about five hours, the API is still under discussion with maintainers, and all benchmarks are the author's own. Worth trying for people experimenting with local MoE inference, but not production-ready.

More in Agents