Skip to content
  • 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 source

Key topics

Chapters

  1. 0:00intro: Tokenization, GPT-2 paper, tokenization-related issues
  2. 5:50tokenization by example in a Web UI (tiktokenizer)
  3. 14:56strings in Python, Unicode code points
  4. 18:15Unicode byte encodings, ASCII, UTF-8, UTF-16, UTF-32
  5. 22:47daydreaming: deleting tokenization
  6. 23:50Byte Pair Encoding (BPE) algorithm walkthrough
  7. 27:02starting the implementation
  8. 28:35counting consecutive pairs, finding most common pair
All 25 chapters on YouTube
Report or remove