What are tokens and what are they for?

Large language models don't read letters or words. They read tokens: chunks of text from a fixed vocabulary of roughly 30,000 to 250,000 entries. A common English word is usually one token, a rarer word is split into a few pieces, and an emoji or a character from a less common script can take several tokens.

Tokens matter because almost everything about a model is measured in them:

A rule of thumb for English is about 4 characters per token. The English sample text in TokenCutter has 342 characters and takes between 82 and 91 tokens, depending on the model. Other languages usually need more tokens for the same meaning (see tokens per language).

All questions