Token Generation
What is Token Generation?
In one sentence: Token generation is the model producing new tokens one after another to form its answer.
It is the decode phase in action. Each token is chosen from the model's predictions, added to the text, and used to make the next prediction.
What does Token Generation look like?
Writing a 100-word answer means generating about 130 tokens in a row.
Why does Token Generation matter?
Generation speed is what you feel while watching the answer appear.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/token-generation/">Token Generation, explained simply</a> (The AI Math Dictionary)