Argmax returns the position of the largest value in a set or vector. During language-model generation, applying it to token logits selects the token with the highest logit as the next token. section 9.1.2 section 7.2.2
Argmax provides a direct alternative to multinomial sampling: it selects the highest-scoring option rather than sampling among possibilities. Temperature zero is handled by using argmax, not by dividing logits by zero. section 9.1.2 section 7.2.2
Figure 7.3 A simple path of how the next word is chosen. Given an input, a model will generate a vector of logits for each token in the model’s vocabulary. Using the softmax algorithm, these logits will be transformed into probabilities. These probabilities will correspond to how often that token is likely to be chosen. Temperature is applied during the softmax algorithm.
Trace how a prompt produces token logits and probabilities before a next-token choice. section 7.2.2

