Activity (Process)

Ranking Stage in Top-p Sampling

The second stage in the Top-p sampling process involves ranking the candidate tokens generated during the expansion phase. These tokens are sorted in descending order according to their probabilities. For example, the token 'cute' with a probability of 0.34 is ranked highest, followed by 'on' with a probability of 0.32, 'sick' with 0.21, and so on.

Image 0

0

1

Updated 2025-10-10

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