Grokking AI: 50 Questions Every Engineer Asks
Vote

0% completed

​

What Do Temperature and Top P Control?

Short answer: Both settings change how the program chooses the next small piece of text (the next token) from the list of chances that the model calculates. Temperature makes the list sharper or flatter: a low value gives almost all the chance to the most likely token, and a high value spreads the chance more evenly. Top-p removes the tokens with the lowest chances from the list before the choice. Neither setting changes what the model calculated, and some newer models do not accept them.

Look at the token "remove" in the three cards. Its chance is 0.90 at a temperature of 0.2, 0

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content