AI and LLMs · Junior · Question 40 of 75

What does top-p (nucleus sampling) do?

Show the answer

Correct answer: Limits choices to the most likely tokens whose probabilities add up to p

Explanation

Like temperature, it controls randomness. Usually you adjust one of them, not both.

Further reading

Problem with a question

AI and LLMs · Junior · question 40

Test yourself

Take the AI and LLMs · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz