Wink Pings

A 16GB GPU Runs a 167GB Model: LMSYS Turns MoE Experts into Cache Pages

The model does not have to be stuffed entirely into VRAM. LMSYS added Paged Experts to SGLang, allowing MoE experts to be swapped in on demand among GPU, RAM, and NVMe. The 167GB DeepSeek-V4-Flash runs at 13 tok/s for a single request on a 16GB RTX 5070 Ti, and an 80B MoE reaches 116 tok/s. The costs and limitations are also clearly laid out.

16 GB of VRAM on an RTX 5070 Ti, running the 167 GB DeepSeek-V4-Flash, decodes a single request at 13 tok/s. LMSYS Org added Paged Experts to SGLang and put this result on a consumer-grade graphics card.

MoE models have an old problem. Each token activates only a few experts, but the bulk of the parameters is in the experts. Qwen3-30B-A3B is 17GB at 4bit, and the FP8 version is 31GB; Qwen3-Next-80B-A3B is about 48GB in NVFP4. Consumer cards usually have 8 to 16GB. In the past, you either quantized to a very small size, pruned the model, or went to the cloud. Paged Experts takes a different path: only some experts are placed in GPU memory, the rest go in host RAM or even NVMe, and computation still happens on the GPU.

The mechanism is not complicated. Each MoE layer keeps K expert slots on the GPU, and all E experts have a copy in pinned host RAM. The router still routes over all E experts. Before a layer starts, a decide kernel compares the experts selected for this round with the slots; hits are used in place, and misses are copied from host RAM into the least recently used slot. Both the copy and the decision are inside the decode step's CUDA graph, and the CPU is not involved in waiting. The team compares it to virtual memory: experts are fixed-size weight blocks, and a token either reads the whole block or none of it, which naturally looks like a page. The difference is that page faults are handled by the GPU itself, and experts are never computed on the CPU; pages are always moved to the GPU.

Figure 1: An MoE layer in one decode step; decide and copy are both inside the CUDA graph

The results start with the main table. The desktop machine is an RTX 5070 Ti 16GB, PCIe 5.0, 62GB RAM, and PCIe 5.0 NVMe. Decoding is single-request, and K is selected automatically by SGLang.

ModelGPUResident expertsExpert storageDecode
Qwen3-30B-A3B GPTQ-Int4 17GB16GB desktop91/12813.9GiB RAM241.5 tok/s
Qwen3-Next-80B-A3B NVFP4 48GB16GB desktop99/51240.5GiB RAM116.2 tok/s
Qwen3-30B-A3B FP8 31GB16GB desktop44/12827.0GiB RAM113.0 tok/s
DeepSeek-V4-Flash-0731 167GB16GB desktop8/25645GiB RAM+NVMe13.0 tok/s
Qwen3.8-Flash-Next-FP8 186GB16GB desktop10/51236GiB RAM+NVMe14.9 tok/s
Qwen3-Next-80B-A3B NVFP4 48GB8GB laptop17/51218GiB RAM+NVMe16.2 tok/s

Figure 2: Single-request decode speed on 16GB cards, with K selected automatically

The team also provided data for a smaller 8GB laptop: an RTX 4070 Laptop 8GB, 54GB RAM, Qwen3-Next-80B-A3B NVFP4 with NVMe reaches 16.2 tok/s. Note that this is PCIe 4.0 x8, slower than the desktop.

Why does this work? Three facts.

First, routing is not uniform. Qwen3-30B-A3B has 128 experts per layer, and each token selects 8. Under GPTQ-Int4 all experts total 13.9GiB, but each token reads only 0.87GiB of them. More importantly, consecutive tokens return to the same set of experts. With K=91/128, only 0.8% of routed experts are not on the GPU; with uniform routing, that number would be 28.9%. The team calls this concentration, 36x.

Figure 4: Measured routing miss rate is far below uniform routing, and prefetching can move some misses off the critical path

Second, the decode step is a bytes problem. Paging adds only one cost: copying missing experts from host RAM to VRAM. For Qwen3-30B GPTQ with K=91, each token copies 3.06 experts, 7.4MB, 0.195ms, accounting for 4.5% of a 4.376ms step. For the FP8 version with K=44, it copies 38.0 experts, 179MB, 3.525ms, accounting for 36% of a 9.824ms step. The team also implemented prefetching, moving predicted experts for the next layer earlier, improving decoding by 2.4% to 12.4% depending on the case.

Figure 5: A decode step split by measured kernel time; orange is the copy cost added by paging

Third, the link is 16x slower than VRAM. Measured VRAM is 843GB/s, and PCIe 5.0 is 52.8GB/s. Dense weights that every token must read cannot be moved; moving 6% can double step time. MoE experts are different: experts that a token does not read can stay in RAM. This is also the difference from --cpu-offload-gb: the latter copies all offloaded weights every step, while paging moves only missing experts. The team also gives the conditions: whether paging is worthwhile compared with CPU compute depends on concentration and the ratio of CPU expert bandwidth to link bandwidth. Routing concentration pushes the left side to 6.5 to 36. The article does not benchmark CPU offload, so do not extrapolate too far.

The costs are clear too. GPU memory is a cache, and the KV cache and resident experts compete for space. Qwen3-30B GPTQ with a 10,240-token KV cache has K=91 and 241.5 tok/s; filling a 40,960-token context gives K=62 and 218.3 tok/s; 4 requests of 16,384 tokens give K=44 and 183.1 tok/s. The longer the context and the more concurrency, the fewer experts can stay on the GPU, and the slower decoding becomes.

Figure 3: The more VRAM the KV cache takes, the fewer experts can be resident, and the slower decoding becomes

The disk tier also has a prefill problem. A prompt of a few hundred tokens can route to almost all experts in every layer, so prefill reads almost the entire tier. DeepSeek-V4-Flash has TTFT 8.88/8.91 seconds on a natural prompt of about 1.5k tokens, and Qwen3.8 is 7.40/7.41 seconds. Chunked prefill rereads the tier for each chunk, so the official recipe uses only one chunk per prompt. Someone in the comments asked about long documents; this is the point to watch.

Figure 6: Three-tier storage for DeepSeek-V4-Flash; 8/256 experts are in GPU slots, 71 are in pinned host rows, and all are in NVMe files

The limitations are also listed. Currently single-GPU; speculative decoding is not supported, nor are tensor parallelism and expert parallelism. The disk tier requires an x86-64 host, safetensors checkpoints, and one tensor per expert. A copy of the experts must be kept in host RAM: Qwen3-30B GPTQ 13.9GiB, Qwen3-Next-80B NVFP4 40.5GiB; if it does not fit, use NVMe. The team says the paged layer is bitwise identical to the non-paged layer under bf16, FP8, and INT8, provided deterministic inference is enabled; the Marlin format cannot reproduce bitwise results, so they used byte comparison, with 0 mismatches in 83,850 checks.

Minimal launch command:

python -m sglang.launch_server --model-path Qwen/Qwen3-30B-A3B-GPTQ-Int4 --enable-paged-experts

Official documentation is at https://docs.sglang.io/docs/advanced_features/paged_experts , and the technical blog is at https://www.lmsys.org/blog/2026-12-02-paged-experts .

Its value lies more in the capacity-to-bandwidth tradeoff than in topping benchmarks. Consumer cards have little VRAM, PCIe 5.0 is not slow relative to DDR5, and moving experts on misses from RAM is more cost-effective than computing experts on the CPU. For someone at home with a 16GB card, this turns an 80B-class MoE from “theoretically fits” into “runs at usable speed.” For production clusters, wait until parallelism support arrives. LMSYS does not overclaim; the article gives measurement rules and failure cases, such as page cache not being dropped, causing throughput to drop by 2.6x. Such details are more useful than slogans.

发布时间: 2026-12-03 06:28