The spelled-out intro to language modeling: building makemore
What it is
Andrej Karpathy builds a bigram character-level language model from scratch, introducing torch.Tensor and the framework of training, sampling and loss evaluation. It is the first step toward a GPT-style Transformer in his makemore series.
Why Hacker News recommends it
HN recommends it as a long but worthwhile way to demystify how language models work technically.
- 2 people recommended it
- 2 different months
- 2 strong recommendations
- first 2024, last 2024
What HN commenters said
“It's long (2h), but well worth the time if anyone is curious about the technical workings of LLMs.”
Builds a basic language model from scratch, demystifying LLMs.
islewis, 2024-02 · Strong recommendation · in “Markov Chains are the Original Language Models”
“Highly recommend this one”
Highly recommended pointer for next-token prediction.
georgehill, 2024-04 · Strong recommendation · in “Show HN: Next-token prediction in JavaScript”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: makemore, bigram, pytorch, neural networks, karpathy, next-token prediction
Also recommended by the same people
lectureThe spelled-out intro to neural networks and backpropagation: building microgradAndrej Karpathy · 17 HN recommenders · 2022–2025
explainerBut what is a neural network? | Deep learning chapter 13Blue1Brown · 16 HN recommenders · 2017–2025
documentaryAlphaGo - The Movie | Full award-winning documentaryGoogle DeepMind · 10 HN recommenders · 2020–2025
explainerTransformers, the tech behind LLMs | Deep Learning Chapter 53Blue1Brown · 13 HN recommenders · 2024–2026
talkUSENIX Security '18-Q: Why Do Keynote Speakers Keep Suggesting That Improving Security Is Possible?USENIX · 10 HN recommenders · 2018–2026
courseLecture 1 | Machine Learning (Stanford)Stanford · 11 HN recommenders · 2008–2020
demoMarI/O - Machine Learning for Video GamesSethBling · 10 HN recommenders · 2015–2026
lectureDeep Dive into LLMs like ChatGPTAndrej Karpathy · 10 HN recommenders · 2025–2026