Step 1 of 6· Before an answer appears
Before an answer appears
Before the first new token, a text-generating model processes the supplied prompt. This phase is called prefill. It calculates information about the prompt that will be used to predict the first new token.
- 1
Prompt tokens enter
→ - 2
Compute their representations
→ - 3
Obtain first-token scores
→ - 4
Select the first new token
A 12-token prompt is input, not 12 generated output tokens. The first visible generated token comes after prompt processing and selection.