A new coding turn may add only a few lines to a long conversation. While tuning MiniMax M3.1 Flash on GB300, Juntian Liu saw prefill GPUs run short of work while host-cache capacity was tight. The explanation depends on which GPU can reach a block on the next turn.
Why one prefix occupied two slots
AgentX sends multi-turn traffic through separate prefill and decode groups. vLLM stores the keys and values for a token span in a block. A prefill worker can write a block to Mooncake and keep another copy in local HBM. Returning to that worker saves a remote read. If load balancing sends the turn elsewhere, the new worker sees only the shared copy. Two slots then preserve the same history while a different block with no shared copy can be evicted and require recomputation.
The circle is already shared. Using the HBM slot for the diamond gives the next GPU one more distinct reusable block.
Making spare HBM addressable by key
Mooncake already moves blocks over RDMA. Liu registered HBM from both prefill and decode GPUs in the same store with mount_external_segment. A prefill worker can retrieve a block by key even if the bytes reside on a remote decode GPU, and it can fetch while working on other requests. The extra shared slot can preserve a different piece of history.
The two GPU roles need different budgets. At startup vLLM sized the prefill allocation, retaining local blocks for one maximum-length request, a null block and a spare, with a separate pool for the draft model. Worker logs showed 140 GiB available per prefill GPU. Decode workers need local KV for active sessions, so each reserved about 117.1 GiB locally, contributed 111 GiB to Mooncake and left around 10 GiB of runtime headroom. Sixteen prefill and sixteen decode GPUs contributed 3.92 TiB. With 5.90 TiB of host DRAM, shared capacity reached 9.82 TiB.
Matching GPU counts and interactivity to the right claims
The earlier run used 20 GPUs for 400 sessions. The later run used 32 for 950, raising density from 20 to 29.7 sessions per GPU. Prefix hit rate rose from 92.4% to 96.1%. The share of prompt tokens requiring prefill fell from 7.6% to 3.9%, roughly halving the fraction that needed processing despite higher session density.
At matched P90 generation speed of 262 tokens/s/user, the new GB300 submission served 2.14× as many tokens per dollar. That comparison includes parallel layout and other tuning. The 3.92 TiB capacity increment follows directly from pooling. Isolating the pool’s effect on hits and cost would require repeating the 950-session configuration with only HBM pooling disabled.
Juntian Liu · 2026-11-29 · MiniMax M3.1 Flash in vLLM: How HBM KV Pooling Helped Deliver 2.14× Throughput
