Decoding: Temperature, Top-p and Friends
The model outputs logits, one raw score per vocabulary token, for the next position. Decoding is how we turn those into an actual token, then repeat. The same model can be boringly repetitive or wildly creative depending purely on decoding settings.
In this lesson
- The generation loop
- Strategies
- Other common parameters
- Practical defaults
- Speculative decoding (preview)
This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.