# Logits

- **Canonical URL:** https://getaimath.com/dictionary/logits/
- **Topics:** [LLM Fundamentals](https://getaimath.com/dictionary/category/llm-fundamentals/)
- **Last updated:** 2026-11-25

## What is Logits?

**In one sentence:** Logits are the raw scores a model gives every possible next token before they are turned into probabilities.

After reading your text, the model produces one score per token in its vocabulary. Higher scores mean "more likely next." These scores can be any number, even negative, so they are passed through softmax to become clean percentages.

![How ChatGPT & Claude Talk: Super-Powered Autocomplete — Simple cartoon diagram showing a sentence chopped into Lego word blocks (tokens), an AI brain weighing the odds of the next word ("mat" 75%, "couch" 18%, "roof" 5%), and snapping "mat" onto the end of the sentence.](https://getaimath.com/diagrams/llm-fundamentals.png)
*Napkin Diagram (LLM Fundamentals): Language models don’t plan whole essays at once—they play a super-smart game of "guess the very next word" over and over.*

## What is an example of Logits?

After "The sky is," the logit for "blue" might be 12.4 while the logit for "banana" might be −3.1.

## Why does Logits matter?

Logits are what settings like temperature and top-K work on, so they explain how sampling really works.

## Related Concepts

- [Repetition Penalty](https://getaimath.com/dictionary/repetition-penalty/): A repetition penalty is a setting that makes a model less likely to repeat the same words or phrases over and over.
- [Softmax](https://getaimath.com/dictionary/softmax/): Softmax is a math function that turns a list of raw scores into probabilities that add up to 100%.
- [Top-P Sampling](https://getaimath.com/dictionary/top-p-sampling/): Top-P sampling means the model picks from the smallest group of likely tokens whose chances add up to P, such as 90%.
- [Probability Distribution](https://getaimath.com/dictionary/probability-distribution/): A probability distribution is a list of every possible outcome with the chance of each one happening, adding up to 100%.
- [Top-K Sampling](https://getaimath.com/dictionary/top-k-sampling/): Top-K sampling means the model only chooses the next token from its K most likely options.
- [Next Token Probability](https://getaimath.com/dictionary/next-token-probability/): Next token probability is the chance a model gives to a specific token being the next one in the text.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/logits/)
