C1000-185 practice question 24 of 35

In the context of decoding methods in IBM Watsonx Generative AI, both top-k and top-p sampling are used to control the output of the model. Which of the following statements correctly distinguishes between top-k and top-p sampling?

Full set: 376 questions

Domain Access Governance and Certification

Answer options
A: Both top-k and top-p sampling ensure that no tokens are selected with a probability below the set threshold, regardless of their context.
B: Top-k sampling samples from a dynamic range of tokens, while top-p sampling restricts choices to a fixed number of tokens.
C: Top-p sampling allows for a more flexible token selection process based on cumulative probabilities, while top-k limits token selection to a fixed number of top choices. Correct answer
D: Top-p sampling ensures deterministic outputs, whereas top-k sampling guarantees random selection from the entire vocabulary.
Correct Answer:
C. Top-p sampling allows for a more flexible token selection process based on cumulative probabilities, while top-k limits token selection to a fixed number of top choices.
Scroll to Top