2:13:28

Andrej Karpathy explains how GPT tokenizers work, from byte-level BPE to SentencePiece, and why they matter. Tokenization affects everything: spelling, math, non-English text, and even "Solid Gold Magikarp" tokens that break models because they were never seen during training. Vocab size, special tokens, and format choice all shape what your model can do.

Chapters

More from Andrej

youtube.com

Skill Issue: Andrej Karpathy on Code Agents, AutoResearch, and the Loopy Era of AI

6mo ago
youtube.com

Andrej Karpathy — “We’re summoning ghosts, not building animals”

1y ago
youtube.com

How I use LLMs

1y ago
youtube.com

CUDA Mode Keynote | Andrej Karpathy | Eureka Labs

2y ago
youtube.com

No Priors Ep. 80 | With Andrej Karpathy from OpenAI and Tesla

2y ago
youtube.com

Let's reproduce GPT-2 (124M)

2y ago
youtube.com

[1hr Talk] Intro to Large Language Models

2y ago
youtube.com

Let's build GPT: from scratch, in code, spelled out.

3y ago
youtube.com

Building makemore Part 5: Building a WaveNet

3y ago
youtube.com

Andrej Karpathy: Tesla AI, Self-Driving, Optimus, Aliens, and AGI | Lex Fridman Podcast #333

4y ago
youtube.com

Building makemore Part 4: Becoming a Backprop Ninja

4y ago
See all content