Vocabulary (Vocab)

The fixed list of all text chunks an AI model knows; anything outside this list must be broken down into smaller pieces.

Technically: The complete set of tokens a model can recognize and emit, often 32K–128K entries mapping integer IDs to byte sequences. Vocabulary size and construction (BPE, unigram, SentencePiece) shape tokenization efficiency, coverage of non-Latin scripts, and embedding-matrix size; changing it after pre-training requires embedding surgery and continued training to recover quality.

Category: Data & Representations

Related ideas