Total expert size dictates how much memory a conventional loader requires, yet each routed step visits only a subset. Paged Experts preserves the model’s routing decisions and exchanges resident capacity for transfers on misses.

K slots per layer

At load time, the system repacks experts into the layout their compute kernel expects and stores them in pinned host memory. Each layer receives K GPU slots. The router still chooses from every expert. The paging layer translates logical IDs to physical slots, allowing the fused MoE kernel to consume the same weights and routing results. Repeated visits to popular experts stay on the device.

The router selects experts, the paging layer selects slots, and misses bring weights in from host or disk.View original image ↗

The router selects experts, the paging layer selects slots, and misses bring weights in from host or disk.

A miss decision inside the CUDA graph

A GPU kernel checks the routed IDs, protects slots needed by the current step and selects the least recently used among the rest. It produces a copy list and the slot IDs for computation. A second kernel copies the listed weights directly from pinned host memory. Both replay inside the decode graph, removing a CPU decision round trip per layer. Prefill or a larger batch can require more than K distinct experts. These steps run in waves, preserving the router-weighted contributions in one buffer before the final sum.

Quantization changes the miss rate

On Qwen3-30B, GPTQ fit 91 of 128 experts per layer, whereas FP8 fit 44. With pre-copy disabled, the authors measured 7.4 MB and 179 MB copied per token, respectively, accounting for 4.5% and 36% of step time. Both bytes per expert and residency of frequently used experts matter. Constructing a long input by repeating text concentrates routing on fewer experts and understates prefill time on natural prompts.

What moving a tier to NVMe costs

On a 16 GB RTX 5070 Ti with 62 GB of host RAM, the 48 GB Qwen3-Next-80B-A3B NVFP4 decoded one request at 116.2 tok/s. The 167 GB DeepSeek-V4-Flash-0731 needed another tier. An expert read from disk first enters a pinned host row and then a GPU slot. With just eight experts resident per layer it reached 13.0 tok/s. These timings establish feasibility and speed on this machine. A multi-user service also incurs queueing and waves as its active expert set grows.

Jan Schalkamp, Xiaoyu Zhang, SGLang Team · 2026-12-02 · Paged Experts: Serving MoE Models Larger Than Your GPU in SGLang