Before the First Token
Decode: Keep the Answer Growing
During decoding, each selected token extends the context used for the next prediction. Displaying tokens as they arrive is streaming.
- 1
Reuse prompt state
→ - 2
Compute a next-token distribution
→ - 3
Select and append
→ - 4
Stream the new token
By the end of this lesson
You’ll follow how an answer grows and how earlier calculations are reused.