Paged Experts Runs Big MoE Models on Small GPUs

Paged Experts in SGLang moves mixture-of-experts weights between host RAM and GPU memory

Paged Experts, a new feature merged into SGLang, lets a mixture-of-experts (MoE) model run even when its weights don’t fit in GPU memory. The server keeps some experts on the GPU, holds all of them in pinned host RAM, and copies in whatever a token needs. A single flag, –enable-paged-experts, turns it on.

The payoff is practical. On a 16 GB RTX 5070 Ti, Qwen3-Next-80B-A3B in NVFP4, a 48 GB model, decodes at 116 tokens per second with its experts in RAM.

The problem with MoE on small cards

Most parameters in an MoE model sit in experts, yet each token touches only a few per layer. Every expert still has to be somewhere the GPU can reach quickly. Consumer cards carry 8 to 16 GB of VRAM, while Qwen3-30B-A3B is 17 GB in 4-bit and 31 GB in FP8.

How the paging works

Consider a single layer of Qwen3-30B-A3B, which has 128 experts and activates 8 per token. A 16 GB card can hold 91 of them next to attention and the KV cache. Those 91 occupy GPU slots while a full set of 128 stays in pinned system memory. The router is unaware of this and still picks from all 128.

Just ahead of each layer, a small kernel checks the router’s 8 picks against what’s in the slots. Experts already on the card are used where they sit. For a missing one, the least recently used slot is overwritten with a copy sent over PCIe. All math stays on the GPU and nothing runs on the CPU, with the transfers scheduled inside the decode step’s CUDA graph. It works like virtual memory: an expert is a page and a miss is a page fault.

At 91 of 128 experts resident, only 0.8% of routed experts are missing when a token reaches the layer.

Why misses stay rare, and what they cost

Neighboring tokens tend to reuse the same experts, so real miss rates come in far under what even routing would give. Popularity moves with the topic, though. Three prose prompts touched 169 of Qwen3-Next’s 512 experts per layer, while twelve mixed prompts spanning code, math, JSON and several languages touched 450. Freezing a set of favorites lost a lot of hit rate, so the GPU side has to act as a cache that tracks the workload. Which eviction rule it uses hardly matters; simulated alternatives came within 5% of plain LRU.

Copying is the only new cost. Everything else in a decode step already runs near the card’s memory-read limit. Traces put the copies at 4.5% of a step for Qwen3-30B GPTQ at 91 experts and 36% for its FP8 version at 44. Fetching each layer’s predicted experts early hides part of that, which speeds decode by 2.4% on GPTQ, 9.5% on FP8 and 12.4% on Qwen3-Next.

Trading VRAM for context

Even a model that fits can benefit, because the VRAM saved goes elsewhere. SGLang picks how many experts stay resident from what’s left after the KV cache you request. On Qwen3-30B GPTQ:

  • A 10,240-token cache keeps 91 experts and decodes at 241.5 tokens per second.
  • The full 40,960-token context keeps 62 experts and reaches 218.3.
  • Four requests of 16,384 tokens keep 44 and reach 183.1.

The cost is host RAM for one copy of every expert: 13.9 GiB for Qwen3-30B GPTQ and 40.5 GiB for Qwen3-Next-80B NVFP4. When RAM runs out, an NVMe drive can serve as another tier. With one, DeepSeek-V4-Flash, a 167 GB model, runs at 13.0 tokens per second on the same 16 GB card with 62 GB of RAM.

Does it change the answers?

No. Paged layers match unpaged ones bit for bit. As a sanity check, GSM8K accuracy came in at 0.938 for Qwen3-30B GPTQ, 0.951 for its FP8 version, 0.954 for Qwen3-Next and 0.950 for gpt-oss-20b. Fully resident, gpt-oss-20b decodes at 179.4 tokens per second. Paged with 31 of 32 experts on the GPU, it manages 176.8, about 1.5% slower.

What happens next

The numbers cover one request at a time. A batch pays for the union of its requests’ experts each step, so results for one regime rarely carry to the other. The link is the limit too: PCIe 5.0 moves about 52.8 GB/s against 843 GB/s of VRAM bandwidth on the test card, which is why only weights a token doesn’t read can safely leave the GPU. The remaining engineering lies in the copies and the gaps between kernels.

Source: lmsys.org

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.