Why it matters

KV pool size shapes throughput. Understanding shapes deployment.

Advertisement

The architecture

Compute per-token KV size.

Choose target concurrent tokens.

Reserve model + activation memory.

KV pool sizingModel memoryweights + actsKV poolconcurrent tokensBuffersafety marginvLLM auto-configures based on gpu_memory_utilization; typical 0.9
KV pool size.
Advertisement

How it works end to end

Available HBM - model - activations = KV pool.

H100 80GB: ~30GB for KV in Llama 70B.

Trade batch size vs seq length.