Neural Networks: Zero to Hero
TL;DR Highlight
Free course builds neural nets from backprop to GPT and tokenizer, all in code
Who Should Read
A non-ML backend developer who uses LLM APIs but wants to understand backprop, Transformers, and tokenizers
Core Mechanics
- Builds from backprop up to GPT in code
- Andrej Karpathy's course builds neural networks from scratch in code.
- It starts with backpropagation basics and builds up to modern deep networks like GPT.
- Why language models are the starting point
- The author thinks language models are an excellent place to learn deep learning.
- He says most of what you learn transfers directly to other areas like computer vision.
- Prerequisites are Python and intro math
- You need solid Python programming.
- Intro-level math such as derivatives and gaussians is expected.
- From micrograd to makemore step by step
- The first lecture (2h25m) builds micrograd to explain backprop and training.
- The makemore series goes from bigram to MLP, BatchNorm, manual backprop, and a WaveNet-like structure.
- GPT lecture follows the paper and GPT-2/3
- The 1h56m lecture builds a GPT following "Attention is All You Need" and OpenAI's GPT-2 / GPT-3.
- It covers ties to ChatGPT and shows GitHub Copilot helping write the GPT.
- Tokenizer lecture explains odd LLM behavior
- The tokenizer is a separate stage with its own training data and BPE (Byte Pair Encoding) algorithm.
- The author says many weird LLM behaviors and problems trace back to tokenization.
Community Reactions
- Best intuition-building resource, one user says
- After books, Coursera, a university class, and fastai, a commenter found this series the most intuitive with the highest signal-to-noise ratio.
- They now recommend it first to anyone wanting low-level DNN details.
- Counterview: most people just use foundation models
- One opinion says 99.99% of people will just use ChatGPT, Claude, or Gemini, so this course may not help much.
- They suggested Karpathy's "Deep Dive into LLMs like ChatGPT" instead.
- Several alternatives were recommended
- One commenter recommended Francois Chollet's "Deep Learning with Python", whose 3rd edition (September 2025) is free online.
- The Hugging Face learning portal was also mentioned.
- Prerequisites and time are barriers, commenters say
- Some could not follow the first video and asked for a list of required knowledge.
- One parent wanted a text tutorial because they have no time for videos.
- One said the post should carry a 2022 label.
How to Apply
- Code along with the first 20 minutes today
- Open the micrograd lecture and type the code in a notebook as you watch.
- Check whether backprop clicks before deciding to continue.
- Use the Tokenizer lecture to debug odd outputs
- Collect cases where your LLM misbehaves on letter counting or specific strings.
- After the lecture, sort which cases come from tokenization.
- Check your prerequisites first
- Skim Python, derivatives, and gaussians to find gaps.
- If stuck, review basic math before starting makemore.
- Watch the GPT lecture after makemore
- Use the makemore videos to get comfortable with autoregressive language modeling and PyTorch nn.
- Then the GPT lecture matches what the author assumes you know.
Try It
# Paste into Claude or ChatGPT (a simple study helper for the course)
I'm a backend developer who uses LLM APIs. I'm not an ML major, but I'm strong in Python.
I'm watching the "{{lecture name, e.g. Tokenizer}}" lecture from Karpathy's Neural Networks: Zero to Hero.
Please do the following.
1. Explain the core concept with one analogy
2. Give 3 questions to check my understanding (answers at the end)
3. Give 2 situations in my service ("{{my service description}}") where knowing this concept makes debugging easierTerminology
Related Papers
Quadrillion-parameter transformers and how to train them
On fixed data, much bigger models with scaled weight decay and ensembling keep loss falling as compute grows.
Astra can read and write weights to improve Qwen
An LLM edited Qwen3.5-0.8B's weights directly, lifting MATH-500 from 7.9% to 48.1%.
Show HN: Qwen3-4B with the AI writing tics trained out
Distilling Qwen3-4B with LoRA cut its AI-writing slop score from 121 to 12.5 per 1000 words
Dust: Pretraining Transformers Without Backpropagation
Adding per-token noise to activations lets transformers pretrain without backpropagation, rivaling backprop.
Show HN: TurboGPT: train 22KiB transformer in 13s
A CUDA C++ project trains a tiny byte-level GPT in under a minute.
I had Gemini train its own replacement for $9
Fine-tuning GLiNER on $9 of Gemini labels reached 0.83 F1 locally.
Learning to solve hard problems in RL for LLMs by never giving up
Cutting compute on easy problems and retrying hard ones in RL raised accuracy on the hardest problems
Training a 3.8B LLM to 0.384 CORE for $998
A 3.8B LLM trained on 8 B200s in 43 hours for $998 scored 0.384 on CORE.