Inference
The raw, unnormalized scores a language model's output layer assigns to every token in its vocabulary at each step, before softmax turns them into probabilities.
The raw, unnormalized scores a language model's output layer assigns to every token in its vocabulary at each step, before softmax turns them into probabilities. Higher logits mean the model considers that token more likely to come next. Sampling controls like temperature, top-p, repetition penalties, and logit bias all work by modifying logits before a token is picked. Some classifiers built on LLMs read the logits of just a few tokens, such as yes and no, to get a confidence score.
Primary source: huggingface.co
Example
Sampling controls like temperature, top-p, repetition penalties, and logit bias all work by modifying logits before a token is picked.
Hands-on guides, comparisons, and tutorials that cover Inference.
FAQ
The raw, unnormalized scores a language model's output layer assigns to every token in its vocabulary at each step, before softmax turns them into probabilities.
Logits sits in the Inference part of the AI stack. Understanding it helps you make better decisions when building, debugging, and shipping AI features.
Developers Digest publishes tutorials and videos that cover Inference topics including Logits. Check the blog and YouTube channel for hands-on walkthroughs.
Related
The log probabilities of the tokens a model generated, returned by the API alongside the text.
Two methods for controlling the randomness of model output during token generation.
A generation technique that restricts which tokens a model may pick at each step so the output is guaranteed to match a format such as a regular expression, a grammar, or a JSON Schema.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.