EVERYTHING AIAI engineering, made visual
Visual edition planned
Phase 05 · Lesson 19LearnPython1 h29 lessons in phase

Subword Tokenization — BPE, WordPiece, Unigram, SentencePiece

Word tokenizers choke on unseen words. Character tokenizers blow up sequence length. Subword tokenizers split the difference. Every modern LLM ships on one.

Visual edition planned

This lesson isn’t interactive yet.

It is part of the curriculum and will get the same treatment as Phase 1 — a visual cover, hands-on labs, derivations with numeric checks and a quiz. Until then, the original lesson is the best place to read it:

Part of Phase 05NLP — Foundations to Advanced. Use the previous / next cards below to keep browsing the phase.