Skip to content

An editorial team and a community building with AI

← All articles

News · Hugging Face · 2 min read

Event date: · Published:

Hugging Face Transformers adds expert streaming, running a 180B MoE model on 32GB of RAM

Hugging Face shipped an expert-streaming feature for Transformers that let a 180B-parameter MoE model run fully on a 32GB Mac M5 by streaming only the routed experts from disk.

Hugging Face announced on November 18, 2026, that it shipped an expert-streaming feature for its Transformers library, letting large mixture-of-experts open-weight models run on memory-constrained consumer hardware by streaming only the routed experts from disk. The company detailed the approach in 180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers.

What changed

  • A new expert-streaming feature for MoE inference targets memory-constrained hardware.
  • It uses a shared slot-pool device tensor with an LRU cache that streams only the routed experts from disk, remapping expert IDs to cache slots so standard kernels run unmodified.
  • Hugging Face ran Qwen3.8-Flash-Next, a 180B-parameter model, fully on a 32GB Mac M5, peaking at 25.4GB of memory use.
  • Decode speed reached 13.9 tokens per second, with prefill at 228 tokens per second on 4K prompts, within about 6% of the specialized Strata engine.
  • Experts are quantized to 3-bit (49GB on disk), while dense layers are quantized to 8-bit (about 5.4GB).
  • Expert prefetching runs the next layer's router early to predict which experts to stream next.

Why it matters for AI builders

By letting a 180B-parameter open-weight model run on a 32GB laptop instead of a server cluster, the feature lowers the hardware bar for self-hosting frontier-scale open models, making this class of model usable for individual builders rather than only teams with access to large GPU deployments.

Availability and benchmarks

The feature shipped through Transformers pull request #50717, with custom Metal kernels distributed from the Hugging Face Hub. Hugging Face also demonstrated it on RTX 4090 GPUs and tested it on OLMoE-1B-7B, reporting that it outperforms llama.cpp and Transformers+Accelerate baselines on the same hardware and beats a comparably constrained vLLM setup running at 20.1 tokens per second.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Hugging Face Transformers adds expert streaming, running a 180B MoE model on 32GB of RAM | vibecoding.inc