Encyclopedia · 311 concepts
Learn this concept as a feed

NLP & Language · intermediate · concept 123 of 311 · Updated Nov 4, 2026

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.

Top AI contributors on this

Key terms

TemperatureTop-kTop-p (nucleus)Beam searchGreedy decoding

Courses, papers, and more