1. Home
  2. Artificial Intelligence
  3. Generative AI
  4. What does top-P sampling control?

Added 11 Nov 2026

What does top-P sampling control?

  1. The maximum number of tokens in the output
  2. The selection of tokens based on cumulative probability Correct answer
  3. The degree of randomness in token selection
  4. The number of top tokens to consider for sampling

Correct answer

B. The selection of tokens based on cumulative probability

9 views

MCQSEXAM

Explanation

Top-P (nucleus) sampling selects tokens based on cumulative probability. Source: GitHub (KaggleGeminiPromptEngineering), Q4.

Reference

Asked in: General

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Generative AI MCQs

Practise all Generative AI MCQs

Similar MCQs