Top-p
Top-p, also called nucleus sampling, is a sampling setting for large language models (LLMs). When the model picks its next token, it keeps only the most likely candidates whose combined probability reaches a threshold p, and samples from that group.[1][6] With top_p = 0.1, for example, only the tokens that make up the top 10% of the probability mass are considered.[2]