Skip to content

Log probability generation #9500

Answered by ggerganov
AngelaZhang3913 asked this question in Q&A
Discussion options

You must be logged in to vote

Shouldn't the content that is outputted be the same as the token with the highest log probability?

No - this would be the case only with the "greedy" sampling strategy. For example, if you set the temperature in your request to <= 0.0, it will always choose the highest-probability token. But by default, the temperature is positive so there is proportional chance to select some of the lower-probability tokens.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AngelaZhang3913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants