Question 1: Short answer
mediumAI-checkedLanguage ModelingA language model gives the next-token probabilities . Nucleus (top-) sampling with keeps the smallest set of most likely tokens whose probabilities add up to at least , renormalizes, and samples. With what probability is the most likely token chosen?