LLM Subword Tokenizer Explained: Byte-Pair Encoding (BPE) with HuggingFace and OpenAI
About this lesson
00:00 Introduction (Quick Recap) 00:13 What is BPE 00:27 Step-by-Step BPE Algorithm Example 01:08 Why BPE Works 02:28 Hugging Face Tokenizer Demo 03:22 OpenAI (TikToken) Demo 03:55 Final Thoughts Tokenization breaks text into pieces — but how does it actually work under the hood? In this video, we dive deep into Byte-Pair Encoding (BPE) — the algorithm behind modern LLM tokenizers. You’ll learn: • The intuition behind BPE • Step-by-step how the algorithm works • How tokens are built from raw text • Why BPE is efficient for large language models • Real implementations using Hugging Face & OpenAI’s tiktoken We’ll also walk through practical demos so you can see exactly how your text gets converted into tokens and numbers. By the end, you’ll have a clear, working understanding of how LLM tokenization actually happens. 👍 Like, Subscribe & Hit the Bell 🔔 🌐 Connect with me: LinkedIn: https://www.linkedin.com/in/tiyasamukherjee Let’s learn and grow together 🚀 #BPE #Tokenization #LLM #GPT #Claude #MachineLearning #GenerativeAI #AIExplained
DeepCamp AI