Applications of Foundation Models
A team wants sampling to consider a variable number of candidate tokens based on their cumulative probability, rather than a fixed candidate count. Which inference setting directly implements this requirement?
Show the answer
Correct answerD. Top-p sampling
AWhy not this: Top-k uses a fixed candidate count rather than a cumulative probability threshold.
BWhy not this: Temperature reshapes token probabilities but does not set a cumulative probability cutoff.
CWhy not this: Maximum output tokens caps response length rather than defining the sampling candidate set.
DWhy this is right: Top-p uses a probability-mass threshold, allowing the number of eligible tokens to vary.
Top-p sampling selects candidates using a cumulative probability threshold, so the candidate count can vary. Top-k instead restricts sampling to a fixed number of highest-probability tokens.