Let's build the GPT Tokenizer
Andrej KarpathyYouTube ↗
Further reading 1
Caption notes
Karpathy builds a vocabulary from bytes. Counts of adjacent pairs choose a merge, and the new units take part in subsequent counts, changing the sequence the model receives.
Public machine transcript (may contain transcription errors) ↗Original passages · 2
find the byte pairs that occur the mostiteratively start minting new tokens