Module
Inside the Generation Loop
A generation loop repeatedly calculates scores, selects a token and appends it. Prefill processes the starting input; decode continues it. Operation counts and elapsed time answer different questions.
Authored explanation · fixed examples, not a live experiment.
Validated prompt → bounded causal generation
→Clock events and compare full cached/uncached scores
→Equivalent output evidence + work and latency limits
Bound token generation, instrument its phases and test cache correctness.
What you’ll learn
Bound token generation, instrument its phases and test cache correctness.