CONCEPT 64 / Large language models / Interactive study
KV caching during generation.
Save past word calculations in a fast KV Cache drawer instead of re-reading the entire prompt from scratch on every new word.
Recomputing everything (slow) vs Reusing KV Cache (fast)
Begin with the loaded example. Change one control and watch the diagram and numbers update together.
64 / LIVE LABORATORYLoaded example
All calculations shown here run in the browser from the visible controls and bundled examples.
Inside the calculation
Why it matters
KV Caching is why chatbots stream words quickly: past tokens are locked in memory so only the newest token is computed.
All calculations shown here run in the browser from the visible controls and bundled examples.