Learn AI Math

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?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.