Read page 7 as text
Am I sending the same question again?
One request. A generation loop. Earlier attention state reused.
Next: try the challenge. A new chat turn is a separate request; context handling varies.
ONE ANSWER DOES NOT REQUIRE REPEATED USER INPUT
You submit the question once.
The serving system runs the loop
that generates the answer tokens.
OUR EXAMPLE
One request → The cat sat on the mat.
WHY DOES THE QUESTION APPEAR IN EVERY STEP?
The question remains part of the
context used for each prediction.
With KV caching, earlier attention
keys and values are saved and reused.
SAVED RUNTIME STATE
This is the KV cache.
CACHED DECODE: PROCESS THE NEW TOKEN, REUSE EARLIER STATE
NEW TOKEN INPUT TO THIS DECODE STEP
464 = The
REUSED ATTENTION STATE
The question’s cached keys and values
NEXT TOKEN SELECTED FOR OUR EXAMPLE
3797 → ·cat
A FOLLOW-UP MESSAGE IS A NEW CHAT TURN
EXAMPLE FOLLOW-UP
What color was the mat?
The app supplies relevant conversation
context for the new turn.
Cached prefixes may be reused.
Context reuse is not model training.