KV Cache

AI and Machine Learning · Efficiency and Deployment · kv-cache.yaml

Stores the keys and values already computed for the prefix so each generated token attends without recomputing them. Turns quadratic regeneration into linear, and makes memory the binding constraint.

Colour is the family; a dashed line is the second member of it.

Drag to pan · scroll to zoom · click a node to open it
G kv-cache KV Cache transformer Transformer kv-cache->transformer generation would recompute the prefix per token speculative-decoding Speculative Decoding speculative-decoding->kv-cache decoding stays serial, one token per pass

This node

Referenced by

References