vLLM adds day-0 support for Kimi K3.1 Pro
Kimi K3.1 Pro is Moonshot AI's 2.8T-parameter (104B active) multimodal MoE model, with 1M-token context and sparse attention (DSA) in all 24 full-attention layers to cut long-context overhead. The vLLM team had to support NVIDIA, AMD, TPU and Alibaba T-Head Zhenwu PPU on launch day. The main difficulties were the mixed page-size cache created by the DSA indexer, exact cross-GPU top-k merging, and low-latency decoding. The authors say the performance figures are mostly vendor self-tests and some conclusions still need independent verification.
Kimi K3.1 Pro is Moonshot AI's 2.8T-parameter (104B active) multimodal MoE model, with 1M-token context and sparse attention (DSA) in all 24 full-attention layers to reduce long-context overhead. The vLLM team had to complete support for NVIDIA, AMD, TPU and Alibaba T-Head Zhenwu PPU on the day of release. The core difficulties were the mixed page-size cache brought by the DSA indexer, exact cross-GPU top-k merging, and low-latency decoding.
The authors' core idea was to rebuild caching and parallelism around DSA. Each DSA layer stores both MLA latent (FP8, 576 bytes) and index keys (FP8, 132 bytes); because the two widths are not multiples of each other, vLLM switched to block packing: one contiguous row holds the two page types of the block's 24 DSA layers plus the shared KDA state, and a block table translates this into kernel page addresses so kernels such as FlashInfer and FlashMLA can read it without changes; with P/D separation the whole block is transferred in one RDMA operation. The prefill stage switched from head sharding to token sharding, using all-to-all so each GPU processes all 96 heads but only 1/8 of the tokens; on 8×GB300 the TTFT for 340K tokens fell from 15.89 s to 9.42 s (1.69×). Under decode context parallelism (DCP), each GPU sorts only its local 1/W of tokens; the authors use exact single-round merging, where each GPU sends only 1.5×2048/W candidates packed into 32 bits, cutting traffic by about 10×, and if a miss is detected it re-sends its full local top-k; under DCP8 the attention module is 1.27–1.51× faster. DCP prefill instead gathers the context directly and then reuses token sharding, cutting a single layer from 24.8 ms to 5.8 ms. The fused decode path merges operators such as the indexer, sparse attention and MoE, making per-token time 1.63× faster at batch 1, and under DCP8 TPOT falls from 11.48 ms to 5.96 ms. The authors also state the trade-off explicitly: DCP trades single-step latency for KV capacity, with DCP8 holding 21.8M tokens versus only 3.04M for TP8, while TP is faster at low concurrency when the context fits.
The authors believe that cache layout for sparse attention, exact top-k merging and fused decoding are key to serving 1M-context MoE models efficiently, and that these techniques can also be transferred to other long-context models. However, the performance data in the article are mostly vendor self-tests, and some conclusions still need independent verification.