LESSON 8.C1 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Four tokenizers on the same text
The same text, cut by four tokenizers, and what each token count costs.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 8.C1 · TOKENIZER BAYENGLISH · 16 CHARACTERS · 16 BYTES
01
Stage 1 of 6 · The same text
The English text goes into four tokenizers. BPE, WordPiece and Unigram learn from one training text.
Explain it simply
On top you see the text, one box per character. Each box is as wide as the bytes the character takes in UTF-8, the common way to store text. Here every character takes one byte. The four empty lanes wait for four tokenizers.
The English text has 16 characters and 16 bytes. Four empty lanes wait under it.
text and tokensvocabularytoken counts[UNK]empty lane or fallback byte
Toy: 8.01's texts and training text, k learned tokens
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The byte count adds the UTF-8 bytes of each character.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.