Zenaique
Glossary · Foundations

Tokenization

Also known as: BPE, WordPiece, SentencePiece

Splitting text into sub-word units so a model can consume it as a sequence of IDs.

The process of splitting raw text into sub-word units (tokens) that serve as the model's vocabulary. Common algorithms include BPE, WordPiece, and SentencePiece. Token count directly affects cost and context window usage.

In practice

Token count drives cost and context-window math. Expect questions on BPE merges, why "strawberry" gets split weirdly, and the difference between byte-level and character-level BPE.

Comparisons that include Tokenization

Related topics

Practice questions

Questions that mention this term

Related terms