一起实现 GPT 的分词器
原名:Let s build the GPT Tokenizer
关于这个视频
Andrej Karpathy 从头开始构建 GPT 分词器,实现字节对编码以及编码和解码。他展示了有多少奇怪的 LLM 行为可以追溯到标记化,并在此过程中涵盖了 Unicode 字节编码。
HN 为什么推荐它:推荐作为标记器的最佳深入研究,对于任何与法学硕士一起工作的人来说,值得花两个小时。
“如果你是法学硕士,那么值得花 2 个小时来更深入地了解。”— HN 评论 · 2024 · 原文
查看英文原文
Andrej Karpathy builds the GPT tokenizer from scratch, implementing byte pair encoding along with encode and decode. He shows how many odd LLM behaviors trace back to tokenization, and covers Unicode byte encodings along the way.
Why HN likes it: Recommended as the best deep dive on tokenizers, worth the two hours for anyone working with LLMs.
“Worth spending 2h for the deeper understanding if you deal with LLMs.”
HN 提及 8 次推荐者 5 人首次 2024最近 2025质量分 5.5
原视频频道:Andrej Karpathy · YouTube 125.2 万次观看
讲座进阶常青字节对编码分词器gptunicodellm













