# Vocabulary

- **Canonical URL:** https://getaimath.com/dictionary/vocabulary/
- **Topics:** [LLM Fundamentals](https://getaimath.com/dictionary/category/llm-fundamentals/)
- **Last updated:** 2026-11-25

## 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.

![How ChatGPT & Claude Talk: Super-Powered Autocomplete — Simple cartoon diagram showing a sentence chopped into Lego word blocks (tokens), an AI brain weighing the odds of the next word ("mat" 75%, "couch" 18%, "roof" 5%), and snapping "mat" onto the end of the sentence.](https://getaimath.com/diagrams/llm-fundamentals.png)
*Napkin Diagram (LLM Fundamentals): Language models don’t plan whole essays at once—they play a super-smart game of "guess the very next word" over and over.*

## What is an example of Vocabulary?

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.

## Related Concepts

- [Tokenizer](https://getaimath.com/dictionary/tokenizer/): A tokenizer is the tool that chops text into tokens and turns each token into a number the model can use.
- [Tokenization](https://getaimath.com/dictionary/tokenization/): Tokenization is the process of splitting text into tokens so a language model can work with it.
- [Token](https://getaimath.com/dictionary/token/): A token is a small chunk of text, like a word or part of a word, that a language model reads and writes.
- [Subword Tokenization](https://getaimath.com/dictionary/subword-tokenization/): Subword tokenization splits words into common smaller pieces, so the model can handle any word using a limited vocabulary.
- [Next Token Prediction](https://getaimath.com/dictionary/next-token-prediction/): Next token prediction is the simple training game behind LLMs: look at some text and guess which token comes next.
- [Byte Pair Encoding (BPE)](https://getaimath.com/dictionary/byte-pair-encoding-bpe/): Byte Pair Encoding is a popular way to build a tokenizer by repeatedly merging the most common pairs of characters into new tokens.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/vocabulary/)
