Step 1 of 6· Watch the sentence grow
Watch the sentence grow
A generated sentence grows one token at a time. After a token is selected, it joins the context before the next probabilities are calculated.
- 1
Read the current context
→ - 2
Calculate candidate probabilities
→ - 3
Select and append one token
→ - 4
Repeat, or stop at the end marker
For the picnic, pack → sandwiches → and → water → . → end. After umbrellas, the example instead prefers for over and. Each branch has its own next distribution.