Learn AI Math

Vocabulary

What is Vocabulary?

In one sentence: A model's vocabulary is the complete list of tokens it knows, each with its own ID number.

Just like a dictionary lists every word, the vocabulary lists every token the model can read or write. Vocabularies usually hold tens of thousands to a few hundred thousand tokens. Any text, even made-up words, can be built by combining tokens from this list.

What does Vocabulary look like?

A model with a 100,000-token vocabulary can choose from 100,000 options every time it picks the next token.

Why does Vocabulary matter?

Vocabulary size affects how efficiently a model handles different languages, code and symbols.

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.