← Ashish's notebook/How Top-K Sampling Works in LLMs
Notebook

How Top-K Sampling Works in LLMs

The model ranks thousands of words to pick just one. Top-K keeps a few and drops the rest.

07 SEP 2026