Large Language Models
Tokenizers for LLMs
How raw text becomes tokens, and why that choice shapes everything downstream.
5 lessons
Follow in order
Use the button below to sign in and unlock lessons.
Your path
Lessons in sequence
Work through these in order—each lesson builds on the previous one.
-
Lesson 1 of 5
Why tokenization matters
-
Lesson 2 of 5
Byte-pair encoding (BPE)
-
Lesson 3 of 5
WordPiece and SentencePiece
-
Lesson 4 of 5
Vocabulary size tradeoffs
-
Lesson 5 of 5
Tokenization pitfalls