Long context · 2026-11-13
Making a million tokens usable
A million-token context is a capacity, communication and scheduling problem before it is a model feature. We do the KV accounting first, then take each model apart.

Start with the KV bill
Every token in context leaves state behind. How much state each model keeps per token decides how many long requests fit on a machine at the same time, and therefore what kind of parallelism we need.
| Model | KV per token | KV pool (measured) | 1M cold first token | Key measure |
|---|---|---|---|---|
| GLM-5.3 | ≈55 KB | 1.12M on decode: one 1M request per node at a time | 194–200 s | Pipeline-parallel prefill; decode KV-wait timeout 300 → 1,800 s |
| DeepSeek-V4.1 | MLA compressed | 2.2M | 152–233 s | Fixed an indexer out-of-memory; long-request admission and length-aware placement |
| GLM-5.3-Flash | ≈31 KB | 2.415M per replica | 174 s | Single-socket TP4 to avoid the cross-socket link |
| Qwen3.8 | ≈24 KB | ≈1.05M | 811–825 s | YaRN ×4; KV pool cap still to be raised (target 600 s) |
Needles hidden at the start, middle and end with IDs; every run gets a random prefix so the cache cannot help.
The Qwen row is honest about a gap: its cold first token is still above our 600-second bar, and the fix (raising the KV pool cap) is not done yet.
Why Kimi-K3 is friendly to long context
Kimi-K3 mixes two kinds of attention. Only 24 of its 93 layers use MLA, whose KV cache grows with the context. The other 69 use KDA, which keeps a fixed-size state no matter how long the input is. Between pipeline stages, only a few KB of activations per token cross the network.
On two H200 servers we enabled decode context parallelism across eight GPUs (DCP8), which splits one request's KV into eight shards. The KV pool reached 12.4 million tokens. A 1,045,368-token input retrieved all three needles in 167 seconds. The trade-off: no speculative decoding in this pool, so a single request runs at 61 tok/s.
GLM-5.3: prefill and decode want different shapes
For GLM-5.3 we split prefill and decode onto different machines with different parallelism. Prefill runs as an eight-stage pipeline, so each layer's all-reduce becomes a point-to-point hand-off between stages. Decode uses tensor parallelism plus context parallelism so a 1M-token KV can be spread over several GPUs. Cold first token at 1M dropped from 710 s to about 195 s (194–200 s across runs), with 8 of 8 needle requests correct.
One more lesson from that work: a decode worker that waits for a 1M-token KV transfer needs a long enough timeout. We raised it from 300 to 1,800 seconds; with the old value, the longest requests failed even though everything else was correct.
Data & sources
| Test | Observed result | Scope |
|---|---|---|
| Kimi-K3 retrieval | 1,045,368 input tokens | Three targets retrieved · 167 s |
| GLM-5.3 cold first token | 194–200 s | 8/8 needle requests correct |
| Kimi DCP8 KV pool | 12.4M tokens | Capacity, not a single-request length |
October 2026 engineering measurements on the stated hardware and workload. They are not a cross-model ranking or a service-level guarantee.
This work runs underneath Zenith Tokens.
Try Zenith Tokens