100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Tag

Top KSampling

Top-k sampling is a text generation strategy in which a language model restricts its choice of next token to the k highest-probability candidates at each step, then randomly samples from that reduced set according to their relative probabilities.

3 resources across 1 library