Counting the Wasted Slots
vLLM allocates the KV cache in fixed blocks of 16 tokens. A batch holds four sequences of length 39, 97, 130, and 200 tokens, on a model whose cache costs 800 KB per token. The system it replaces reserved one contiguous buffer per sequence, sized to the 2,048-token maximum.
How much does each scheme waste right now?
Sign in to answer questions and track your progress
Sign In