Skip to content

Tokens and logits relation in LLM

A token is a piece of text the model understands. It may be:

  • a word
  • part of a word
  • punctuation
  • space

Now each token will have a specific numerical value assigned.

TokenToken ID
I40
love3047
machine7342
learning7524
Tokens and logits relation in LLM
Tokens and logits relation in LLM (image 2)

Above is take from gptforworks website.

Each LLM has its own tokenizer and token IDs.

Where Logits Come In,

Logits = raw scores for every possible next token.

Tokens and logits relation in LLM (image 3)

Related post – How LLM is predicting the next token and what is softmax?

Share

One short email when a new calculator or article goes live. No spam, and you can unsubscribe in one click.