Learn AI Math

Logits

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.

What does Logits look like?

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.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.