More KV cache, fewer expert weights: MoNE expert pruning in vLLM

How Nebius integrated MoNE into vLLM, and what replacing expert weights buys for KV-cache capacity, agentic serving throughput and model quality.

Long prompts can leave a serving system short of memory before it runs short of compute. Mixture-of-Experts models make that tradeoff especially visible: each token uses only a few experts, but the server still has to store all their weights.

Nebius Applied AI contributed support for Mixture of Novices and Experts, or MoNE, to vLLM. MoNE replaces selected expert networks with small, constant vectors while preserving the router’s choices. The aim is to free weight memory for the KV cache, which holds the context of requests in flight.

This article explains the integration and our separate GLM-5.2-NVFP4 experiments. The serving results use NVIDIA HGX B300.

TL;DR
  • MoNE reduces the memory occupied by expert weights while preserving the router’s logical choices and weights.
  • The merged vLLM contribution provides a generic serving path for compatible unquantized MoE layers.
  • With two-GPU replicas (DP2 × TP2, four B300 GPUs total), replacing 25% of GLM-5.2's experts increased KV-cache capacity from 309,000 to about 1.36 million tokens per replica.
  • Quality depends on calibration. A diverse, representative calibration data mix helps retain model capabilities during MoNE pruning.
  • On the AgentX SemiAnalysis workload at 32 concurrent agent lanes, MoNE25 increased server output throughput per GPU by 24.3% and completed output per GPU by 17.9% versus the original checkpoint, with matching TP4 serving settings on four B300 GPUs.

A token uses a few experts. Memory holds them all.

In a transformer model, attention mixes information across tokens, while an MLP processes each token. An MoE layer replaces one MLP with a collection of expert MLPs and a router.

For each token, the router scores the experts, selects a subset and combines their outputs using the routing weights. Different tokens can select different experts. GLM-5.2 selects eight of 256 routed experts in each MoE layer, so each token runs about 3% of that layer’s experts.

That reduces the expert computation needed for a token. However, it does not, by itself, reduce the memory needed to serve the model. In the resident-weight setup considered here, any expert may be selected next, so all expert weights remain loaded.

Those weights compete with the KV cache. The longer each request’s context, the more cache it needs. Reducing weight memory can make room for more concurrent long requests and improve cache hit rates without changing the GPU count.

Replace an expert’s MLP, keep its route

MoNE, introduced by Geng Zhang and colleagues, uses calibration data to identify redundant experts from their access frequency and output variance. A selected expert is replaced with a novice: a stored vector representing its average output on calibration data.

The router can still select that logical expert. When it does, the layer uses the novice vector, multiplied by the original routing weight, instead of running the expert’s MLP. The other selected experts run normally.

This differs from removing experts and their routing options, as in expert-pruning approaches such as REAP. MoNE preserves those options and approximates the replaced experts' contributions. It does not make the replacement exact for every input; the resulting model still needs task-specific evaluation.

At a 25% replacement ratio, a GLM-5.2 MoE layer contains 192 expert MLPs and 64 novice vectors instead of 256 MLPs. The router still scores all 256 logical experts.

MoNE replaces expert MLPs with stored vectors while preserving the router’s logical routes.Figure 1. MoNE replaces selected expert MLPs with stored vectors while preserving all four logical routes in this illustrative layer. Connections show possible routes, not simultaneous activation; shapes are not to scale.

The vLLM contribution

Serving a MoNE checkpoint requires the engine to load only the retained expert weights, preserve routing semantics and add the novice contributions correctly. vLLM PR #50415, merged on 12 October 2026, adds that path.

One supported checkpoint representation lists replaced experts by layer in config.json:

{
  "approximate_experts": {
    "1": [1, 6, 8, 12],
    "2": [0, 3, 17, 40]
  }
}

Each replaced expert stores a vector such as model.layers.N.mlp.experts.E.approx_value in place of its MLP weights. The contribution also supports an explicit constant-vector format under compression_config.transform_config.expert_substitution. These are alternative representations, not fields to combine indiscriminately.

After routing, vLLM splits the selected paths into two groups:

  • Retained experts: the existing MoE kernel runs their MLPs. Replaced routes are represented as zero-weight routes, preserving the kernel’s expected input shape.
  • Novices: vLLM combines the stored vectors with their original router weights and adds that contribution to the layer output.

The zero-weight routes can still schedule some unnecessary kernel work, even though the removed MLP weights no longer occupy memory. With tensor parallelism, the novice contribution is added on one rank so it is counted once when partial outputs are combined.

Retained experts run MLPs; novice paths add stored vectors weighted by the router.Figure 2. Retained experts run through the MoE kernel; novice paths add stored vectors with their original router weights. The outputs are combined.

The merged contribution supports compatible layers built with FusedMoEFactory and the default RoutedExperts loading path, unquantized experts, tensor and pipeline parallelism, and decomposed MoE backends.

What the freed memory buys on B300

Building on our earlier contributions to upstream vLLM, we continued developing our internal runtime and used it to evaluate GLM-5.2-NVFP4 on NVIDIA HGX B300.

For serving measurements, the MoNE checkpoint had the intended structure of 192 experts and 64 novices per layer that corresponds to 25% sparsity.

The original checkpoint occupies 432.9 GiB on disk; replacing 25% of experts reduces that to 338.0 GiB, about 22% less.

MoNE25 reduces model memory and increases KV capacity in TP4 and DP2 × TP2 on four B300 GPUs.Figure 3. GLM-5.2-NVFP4 on four B300 GPUs, internal runtime with MTP enabled: replacing 25% of experts reduced model memory per GPU from 111.2 to 87.6 GiB with TP4, and from 218.7 to 171.3 GiB with DP2 × TP2. Approximate KV capacity increased from 1.25M to 1.52M tokens per replica for TP4, and from 309k to 1.36M for DP2 × TP2. Each DP2 × TP2 deployment contains two replicas.

We compared GLM-5.2-NVFP4 with MoNE25 using the AgentX SemiAnalysis agentic workload at C32 (32 concurrent agent lanes). Each model used four NVIDIA B300 GPUs with TP4, matching serving settings, prefix caching, and MTP enabled. After warmup, we measured performance for 15 minutes, reporting throughput per GPU, median time to first token, and median interactivity.

MoNE25 raises AgentX server output throughput by 24.3% and completed output by 17.9% versus the original.Figure 4. On AgentX at C32, MoNE25 increased server output per GPU by 24.3% and completed output by 17.9%. Both checkpoints used four B300 GPUs with TP4 and matching serving settings. The table below includes the absolute throughput and latency measurements.

Metric Original TP4 MoNE25 TP4 Change
Server output, tok/s/GPU 43.54 54.11 +24.3%
Completed output, tok/s/GPU 41.48 48.90 +17.9%
Median interactivity, tok/s/user 45.86 51.76 +12.9%
Median TTFT 757.7 ms 684.4 ms −9.7%

In this test, MoNE improved serving efficiency and typical user responsiveness on the same GPU budget. This shows that expert pruning can provide a practical benefit for agentic workloads. Further kernel and serving optimization could help turn the reduced expert computation and additional KV-cache headroom into even larger gains.

Calibration changes the quality tradeoff

A novice is an approximation, so the data used to build it matters. We evaluated calibrated GLM-5.2-NVFP4 checkpoints on BFCL v4: 3,641 single-turn cases, 800 multi-turn conversations and 465 memory questions.

With a calibration mix covering coding, math, reasoning, tool calling and general conversations, MoNE25 scored 0.61, 0.63 and 1.29 percentage points below the original checkpoint on single-turn, multi-turn and memory tasks, respectively:

MoNE25 BFCL v4 accuracy gaps in percentage points: 0.6 single-turn, 0.6 multi-turn and 1.3 memory, rounded.Figure 5. Calibrated MoNE25 scores 0.61, 0.63 and 1.29 percentage points below the original on BFCL v4 single-turn, multi-turn and memory tasks. The chart rounds these gaps to one decimal; exact scores appear below.

Checkpoint Experts replaced Single-turn Multi-turn Memory
Original 0% 82.26% 70.38% 71.18%
MoNE 25% 81.65% 69.75% 69.89%

In this experiment we demonstrate the importance of selecting a robust calibration data mixture to ensure good accuracy recovery over a wide variety of downstream tasks, and this is an area we are still actively researching.

What to test on your workload

MoNE is most useful to investigate when expert weights are limiting the KV-cache budget and the workload can tolerate the measured approximation error. Start with the serving constraint you need to change, then evaluate memory, quality and latency together on the same calibrated checkpoint.

The next research questions are practical: how far the replacement ratio can go, whether richer novice representations improve the tradeoff, and how calibration built from representative agentic traces affects held-out tasks. End-to-end tests against real latency targets are still needed to establish the benefit for particular agent workloads.

For the upstream implementation, start with MoNE. For a discussion of your model, context lengths and serving requirements, talk to the Nebius Token Factory team.

Contributors and credits

Authors: Ilya Boytsov, Zilin Shen, Samir Khaki, Sergei Skvortsov, Wei-Chen Wang, Ryan Wang, Dylan Bristot.

The method overview summarizes MoNE: Replacing Redundant Experts with Lightweight Novices for Structured Pruning of MoE. © Geng Zhang, Yuxuan Han, Yuxuan Lou, Yiqi Zhang, Wangbo Zhao, Yang You, 2025. CC-BY 4.0.

The MoNE integration in vLLM was developed by Ilya Boytsov (Nebius), in collaboration with Samir Khaki (Nebius), Sergei Skvortsov (Nebius), Zilin Shen (Nebius), Kyle Sayers (Red Hat) and Michael Goin (Red Hat). Special thanks to Maxim Milakov (NVIDIA).

Explore Nebius Token Factory

See also

LayerStream: faster MoE fine-tuning on fewer or cheaper GPUs

Fine-tuning a large MoE model can require extra GPUs just to hold the training state. LayerStream moves state through GPU memory one layer at a time. See how the Nebius training engine delivers faster iteration, uses fewer or lower-priced GPUs, and compares with our Megatron-based trainer across three models.

Serving LLMs with vLLM: A practical inference guide

This guide teaches the essentials of serving large language models with vLLM. It builds from foundational neural network concepts, like transformers and attention, to introduce practical inference workflows, explore useful vLLM features and offer hands-on, operational guidance for efficient deployments.

Fine-tuning, RL, or distillation? How to choose a post-training method

Choose a post-training method by the feedback your team can produce. Compare SFT, preference tuning, RL, and distillation, then evaluate the adapted model against your quality, latency, and cost targets.

Sign in to save this post