Top-p sampling — Top-p sampling, also called nucleus sampling, limits a model’s choices to the most likely words that together make up a set share of probability. It trims away unlikely words while keeping some variety. It works alongside temperature to control output style. Developers adjust it through model settings.

Added October 21, 2026