PromptHub

Top-K Sampling

Quick Definition

Generation strategy considering top k most probable tokens

Full Definition

A generation strategy considering only the top k most probable tokens at each step.

Examples

text generation, creative writing, chatbot responses

Related Terms

nucleus-sampling temperature beam-search

More Large Language Models Terms