Tokenization: Text Becomes Tokens

Why models read subword tokens instead of words, how byte-pair encoding builds a vocabulary, and the artifacts every engineer eventually hits.

Content last verified 2026-09.

Lessons

  1. Why Models Read Tokens, Not Words
  2. Byte-Pair Encoding, Step by Step
  3. Tokenizer Families and Trade-offs
  4. Tokenizer Artifacts and Gotchas

Sources