Encyclopedia · 176 concepts

NLP & Language · intermediate · concept 84 of 176

Text Generation & Sampling

How LLMs produce text, sampling from probability distributions over tokens. Temperature controls randomness. Top-k and top-p (nucleus) sampling balance creativity and coherence.

Key terms

TemperatureTop-kTop-p (nucleus)Beam searchGreedy decoding

Courses, papers, and more