Back to the radar
IndustryAnnouncement

180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers

The essentials, the implications, and the sources behind the story.

01 / The short version

What happened

A developer experimented with running large mixture-of-experts models locally on limited hardware, including a PC with two RTX 4090s and a MacBook with 32GB of unified memory. They compared llama.cpp, vLLM, and Transformers for offloading MoE experts to RAM or disk. The author then modified Transformers to stream experts from disk using an LRU cache, targeting Qwen3.8-Flash-Next on a 32GB Mac. The initial version reached 10.1 tokens per second with cached experts, compared to about 32 tokens per second for vanilla Transformers on OLMoE-1B-7B. All code is available in a public Space.

See the exact references

02 / Key takeaways

What you need to know

  1. 01

    The author tested MoE inference on a PC with two RTX 4090s and a MacBook with 32GB of unified memory.

  2. 02

    llama.cpp, vLLM, and Transformers were compared for running MoE models that exceed GPU memory.

  3. 03

    The author modified Transformers to stream experts from disk using an LRU cache.

  4. 04

    The modified Transformers version achieved 10.1 tokens per second with all experts cached.

  5. 05

    Vanilla Transformers reached approximately 32 tokens per second on OLMoE-1B-7B.

  6. 06

    The project targets Qwen3.8-Flash-Next on a 32GB Mac and is hosted in a public Space.

AI analysis

Why it matters

This work shows how streaming only the experts needed for each token from disk or RAM can make very large MoE models runnable on consumer hardware with limited GPU memory. It highlights the performance gap between naive offloading and optimized expert kernels, which matters for developers building local AI coding assistants.

Who it affects: Developers, students, and researchers who want to run large mixture-of-experts models locally on hardware with limited GPU memory.

Learn while you read

Key terms, simply explained

Mixture-of-Experts (MoE)
A model architecture where only a subset of specialized sub-networks, called experts, is activated for each input, reducing computation while keeping many parameters.
Offloading
Moving model weights from GPU memory to system RAM or disk so larger models can run on hardware with limited VRAM.
LRU cache
A memory cache that keeps recently used items and removes the least recently used ones when space is needed.

Keep in perspective

What to watch for

The source is a personal experiment report, not a peer-reviewed benchmark, so the claimed speeds and comparisons should be verified independently.

Go to the source

Exact references

These are the original pages used for this brief. Publisher claims are not independent evaluations.

01Primary source · Hugging FaceRead the original announcementhttps://huggingface.co/blog/moe-expert-streaming

AI-generated from the linked source. It can miss context; verify consequential details in the original. How the radar works