LESSON 8.02 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
BPE
Watch BPE build a vocabulary by joining the most frequent pair of tokens.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 8.02 · BPE BAY132 CHARACTERS · BASE VOCABULARY 25
01
Stage 1 of 5 · Split the words
Each chunk of the corpus splits into characters. The 25 characters form the base vocabulary.
Explain it simply
On the left you see the six training lines, cut into 26 chunks, each with how often it appears. The chunks are the 26 words, and a space joins the word after it. Each chunk is cut into single characters. The vocabulary on the right starts with the 25 characters the text uses.
26 chunks with their counts, split into 132 characters in all. The base vocabulary has 25 tokens.
corpus tokensmerge rules, vocabularyencoded tokensUNK
Toy: the 8.C1 English training text, 26 chunks, 36 copies
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The base vocabulary holds every unit a chunk can split into.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 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.