SGLang lets a 16GB GPU run a 186GB MoE model

Open source illustration: hands joining branches to a shared node tree

SGLang, the open-source inference framework, has merged a feature called Paged Experts. The expert weights of an MoE model can now sit only partly in GPU memory, with the rest kept in system RAM or even on an NVMe drive and copied into VRAM when needed. According to a blog post LMSYS published on December 2, a single 16GB RTX 5070 Ti can run the 167GB DeepSeek-V4-Flash and the 186GB Qwen3.8-Flash-Next-FP8, with single-request decoding at 13.0 and 14.9 tokens per second respectively.

The post was written by Jan Schalkamp of bitside and Xiaoyu Zhang of RadixArk. The feature is already in SGLang's main branch and is switched on at launch with --enable-paged-experts.

All expert computation stays on the GPU

The approach has three tiers. Each MoE layer keeps K expert "slots" in VRAM, while all E experts live in pinned host memory; if RAM is not enough, an NVMe tier is added below it. Routing still picks from the full set of experts. Before each layer runs, a "decision" kernel on the GPU checks whether the selected experts are already in a slot. If they are, they are used directly. If not, they are copied over PCIe from RAM into the least recently used slot, and the existing fused MoE kernel then computes on the slots.

Unlike the common CPU-offload approaches, the CPU takes no part in any expert computation here, and both the decision and copy kernels are captured inside the CUDA Graph for the decode phase.

Tests ran on two machines: a desktop with an RTX 5070 Ti 16GB, PCIe 5.0 x16 and 62GB of DDR5, and a Dell XPS 16 laptop with an RTX 4070 Laptop 8GB running under WSL2. Single-request decoding results for several setups:

Model (size)GPUExperts resident in VRAMDecode tok/s
Qwen3-30B-A3B GPTQ-Int4 (17GB)16GB desktop91 of 128241.5
gpt-oss-20b MXFP4 (14GB)16GB desktop28 of 32173.5
Qwen3-Next-80B-A3B NVFP4 (48GB)16GB desktop99 of 512116.2
Qwen3-Next-80B-A3B NVFP4 (48GB)8GB laptop17 of 512, plus NVMe16.2

The only comparison against keeping everything in VRAM is gpt-oss-20b: with all experts resident it decodes at 179.4 tokens per second, and with paging, keeping 31 of its 32 experts, it reaches 176.8, which is 1.5% slower.

Doing the math on copying

Speed is determined almost entirely by how many experts each token has to pull from RAM. In the blog's measurements, the desktop's VRAM bandwidth is 843GB/s while PCIe 5.0 measured 52.8GB/s, a 16x gap.

With 91 experts resident, the 4-bit Qwen3-30B is missing only about 3 experts per token on average, which means copying 7.4MB; the copy takes 0.195 ms of a 4.376 ms step. The FP8 version, nearly twice as large, fits only 44 experts in VRAM, so each token needs 38 copied experts, or 179MB. The copy takes 3.525 ms, 36% of a 9.824 ms step. As a rough check, 179MB divided by 52.8GB/s is about 3.4 ms, which lines up with the measurement. The bottleneck is almost entirely PCIe.

What makes this affordable is how concentrated routing is: in the 4-bit configuration the actual miss rate is 0.8%, versus the 28.9% you would expect if experts were picked uniformly, a 36x difference. Once experts spill widely onto disk, the cost shows up. For a prompt of roughly 1,500 tokens, DeepSeek-V4-Flash has to read about 93GB from disk, and the first token takes 8.9 seconds to arrive.

Scenarios not yet covered

The blog lists quite a few limitations. For now it supports only a single GPU, with no speculative decoding, tensor parallelism or expert parallelism. The disk tier works only on x86-64 hosts. Quality was spot-checked only with GSM8K, with thinking mode turned off.

Batch serving is a different matter. When several requests run at once, each step has to copy the union of the experts selected by all of them, and the authors state plainly that single-stream results "rarely transfer" to batched workloads. That case was not tested. Time to first token on short prompts also favors CPU-offload approaches, since prefill touches almost every expert.

The blog also makes no head-to-head comparison with CPU-offload tools such as llama.cpp and ktransformers; in its own words, it does "not measure CPU offloading." For a developer with only a 16GB gaming card, the numbers published so far are enough to justify a try. Putting it into a multi-user inference service will have to wait for batch data.

Sources: LMSYS blog, SGLang documentation, CocoLoop; decoding speeds, bandwidth and copy times are all single-request figures measured in the blog.