Loading lesson…
Level 1 · Apprentice0 XP
From characters to byte-level BPE, the way GPT models split text.
Step 1 / 6
ProblemA neural network multiplies numbers. Text must become a list of integers, and back again, without losing anything, including emoji and code.
← → step
Before this: Set up PyTorch and the data
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Train BPE tokenizers with vocab sizes 512, 4,096 and 16,384 on Shakespeare. For each, report the number of tokens for the whole text and check that decode(encode(text)) == text, including a line with emoji.