Activity (Process)

Forming the Candidate Pool in Top-p Sampling

The candidate pool for top-p sampling is created through a two-step process. First, all potential next tokens are sorted by their predicted probabilities in descending order. Second, starting with the highest-probability token, tokens are cumulatively added to the pool until their combined probability meets or exceeds the predefined threshold 'p'.

0

1

Updated 2026-05-05

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences