Decoding and inference behavior · MLD-1249

Top-k sampling

Sampling only among the k highest-scoring next-token candidates after renormalization.

Original reference page · detailed expansion pending. Original definitions, examples, notes and citations are preserved below. New examples are illustrative, not benchmark results.

Original example

Restrict generation to a fixed candidate count.

Original caveat

The appropriate k can vary across contexts.

Context and aliases

Level: Intermediate. Stages: Inference · Evaluation · Deployment.

Tags: SLM · LLM · NLP.

Aliases: None recorded.

Related concepts

Concepts linking here

Original references

Open original record, export or annotate →