- Video
- YouTube
- 2 h 14 min
Let's build the GPT Tokenizer
About this
The Tokenizer is a necessary and pervasive component of Large Language Models (LLMs), where it translates between strings and tokens (text chunks).
Continue at sourceKey topics
Chapters
- 0:00intro: Tokenization, GPT-2 paper, tokenization-related issues
- 5:50tokenization by example in a Web UI (tiktokenizer)
- 14:56strings in Python, Unicode code points
- 18:15Unicode byte encodings, ASCII, UTF-8, UTF-16, UTF-32
- 22:47daydreaming: deleting tokenization
- 23:50Byte Pair Encoding (BPE) algorithm walkthrough
- 27:02starting the implementation
- 28:35counting consecutive pairs, finding most common pair




