Review — Output logits
Back to the lesson · Learning path plan
What to remember
- The output head maps the final state at one position to V logits, where V is the vocabulary size. Each score corresponds to a candidate token.
- A logit is a real-valued score and can be negative. Softmax converts logit differences to normalized probabilities.
- Output logits are indexed by vocabulary entries. Attention scores for a query are indexed by the positions it can access.
- Softmax preserves the ranking of logits while producing a distribution. Knowing the ranking alone does not give the gap between the probabilities.
Recall from memory
With a vocabulary of 50,000 tokens and a hidden dimension of 768, how many logits are emitted per position?
Show the answer
50,000. The head projects the 768 components to one score for each vocabulary token.
Compute attention weights and next-token probabilities at the same position.