Articles

REQUEST TO TOKENS · 06

Paged Attention: Virtual Memory for the KV Cache

How serving engines hand out KV cache memory in 16-token blocks instead of reserving the maximum, how the same blocks let requests share a prompt, and what that saves in memory and time to first token.

REQUEST TO TOKENS · 054 SLOTS, REFILLED AT EVERY STEP

Continuous Batching, Animated: How a Server Keeps the GPU Busy

Why serving engines re-form the batch at every decode step, what it buys in throughput and latency, and the settings that control it.

REQUEST TO TOKENS · 041 LAYER IN 4 KEEPS EVERY TOKEN

When Most Layers Stop Caching: Hybrid, Sliding, and Sparse Attention, Sized

Why a 27B model holds 262k tokens of context on a 24 GB GPU: what hybrid, sliding-window, and sparse attention store and read per token, on real models.

REQUEST TO TOKENS · 03144 KiBPER TOKEN36 LAYERS × KEY, VALUE

The KV Cache, Sized: What the Formula Says and What Your Engine Gives You

Compute what each token of KV cache costs from a model's config, then predict the capacity vLLM reports at startup, and see where the two differ.

NewerPage 5 of 5