How LLMs Choose Their Words: A Practical Walk-Through of Logits, Softmax and Sampling

How LLMs Choose Their Words: A Practical Walk-Through of Logits, Softmax and Sampling
This article is divided into four parts; they are: • How Logits Become Probabilities • Temperature • Top- k Sampling • Top- p Sampling When you ask an LLM a question, it outputs a vector of logits.