Skip to main content

Vocabulary

Vocabulary

  • Core concepts
  • Stage 1 · Getting In
  • refs checked 2026-11-19
What problem it solves

The full set of characters a model knows. Its size decides whether it handles Chinese or code well.

What it is
The set of characters or pieces a model can use when producing output. The larger the vocabulary, the more concepts the model must learn, and usually the better support for rare languages and code.
Why it matters

It explains a common observation: small models get markedly worse at Chinese and code — there simply are not enough pieces in the vocabulary.

Sources
  • Hugging Face NLP Course: Tokenizers chapter ↗
  • Cornell CS 5740: Tokenization lecture slides ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →