Unverified50% confidenceFactExact time
The KV cache size of global attention layers is proportional to context length, whereas the cache size of bounded-state layers (such as SSMs or linear attention) is relatively fixed.
1
Sources
50%
Confidence
Long-term
Relevance
11/20/2026
First Seen
Sources
Related Entities
Related Claims
VerifiedThe VRAM consumption of the KV cache is proportional to context length, number of model layers, and number of attention heads; under an 8K context, a typical 27B model may consume an additional 2–4 GB of VRAM.79% similarUnverifiedThe KV cache stores key-value pairs from Transformer attention computations and grows linearly with sequence length.79% similarUnverifiedSliding window attention lets each token attend only to neighboring tokens within a fixed-length window, thereby reducing attention computation and the KV cache from linear growth with sequence length to constant level.75% similarUnverifiedThe formula for estimating the KV cache of a standard full-attention decoder layer is KV bytes = 2 × L × Hkv × D × T × C × S, where 2 stands for keys and values, L is the number of attention layers, Hkv is the number of key/value heads per layer, D is the dimension of each key/value head, T is the number of tokens cached per sequence, C is the number of bytes per cache element, and S is the number of independent sequences.75% similarUnverifiedOn-device deployment often comes with mechanisms such as KV cache quantization (e.g., compressing to 4 or 8 bits), grouped-query attention (GQA), and sliding-window or sparse attention.74% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1191518API
curl https://kongchang.com/api/v1/knowledge/claims/1191518MCP
get_claim(id=1191518)