Comparison
Karpathy Zero to Hero vs fast.ai: Which to Take in 2026
Take Karpathy's Neural Networks: Zero to Hero if you want to understand a neural network and a GPT by typing each one out yourself. Take fast.ai's Practical Deep Learning for Coders if you want working models first and theory second. Use AI Engineering from Scratch for written lessons that continue into retrieval, agents and production.
Last updated · By Rohit Ghumare
This page is written by the maintainers of AI Engineering from Scratch.
Zero to Hero vs fast.ai vs AI Engineering from Scratch at a glance
| Neural Networks: Zero to Hero | fast.ai Practical Deep Learning for Coders | AI Engineering from Scratch | |
|---|---|---|---|
| Best for | Seeing backpropagation and a GPT built from nothing | Getting useful models working early, across several kinds of data | Reading and running code from math through to agents and production |
| Format | 8 YouTube video lectures with Jupyter notebooks; exercises in each video description | Video lessons that follow a book, which is freely available online | Written lessons with runnable code; a short quiz in most (392 of 542 on 4 December 2026); no video lectures |
| Length | 8 videos of 56 minutes to 2h25m; 14h32m in total | Part 1: 9 lessons of about 90 minutes. Part 2: over 30 hours of video | 542 lessons in 20 phases |
| Price | Not stated; the lectures are public YouTube videos | Free | Free |
| Prerequisites | Solid programming (Python) and intro-level math, such as derivatives and gaussians | You can code (a year of experience is enough), preferably in Python; high school math | You can write code in any language; Python helps |
| Teaching order | Bottom-up: one derivative, then micrograd, then language models, then a GPT | Top-down: a complete working model first, then the layers under it | Build each piece by hand, then run the same operation through the production library |
| Topics listed | Backpropagation, bigram and MLP language models, BatchNorm, manual backprop, a WaveNet-style network, GPT, the GPT tokenizer | Computer vision, NLP, tabular data, collaborative filtering, random forests, deployment. Part 2: diffusion models up to Stable Diffusion | Math, classical ML, deep learning, vision, NLP, speech, transformers, generative models, reinforcement learning, LLMs, LLM engineering, tools, agents, production, safety |
| Libraries | PyTorch | PyTorch, fastai, Hugging Face Transformers, Gradio | NumPy and PyTorch in Python; many lessons add TypeScript, and some add Rust, Julia or Go |
| Certificate | Not stated | Not stated | No course certificate. Each graded project offers a completion certificate you download after your own local grader report passes every stage; it is self-attested, not proctored or independently verified |
| Where to ask questions | A Discord channel linked from the course page | forums.fast.ai | GitHub issues; the README lists no forum or Discord |
Rows for the two other courses come from their own pages, listed in this page's sources and read on 2026-12-04. The 14h32m total is our sum of the run times shown on the Zero to Hero page. This page is written by the maintainers of AI Engineering from Scratch, so read the third column as a publisher describing its own work.
When to choose each
Choose Zero to Hero when
- You want to see backpropagation built from nothing. The first lecture builds micrograd and, per the course page, assumes only basic Python and a vague recollection of high-school calculus.
- You want one thread to follow. Lectures two to seven build language models, ending with a GPT, and the eighth builds the tokenizer used by the GPT series.
- You learn by watching someone type, then typing it yourself. One lecture has you backpropagate by hand through a two-layer network without calling
loss.backward(). - Your time is limited. Under 15 hours of video is something you can finish.
Choose fast.ai when
- You want results before theory. The course page says that by the end of the second lesson you will have built and deployed a model on data you collected.
- Your work is not only text. The course covers images, language, tabular data and recommendation, plus random forests and gradient boosting.
- You do not have university math. The page says high school math is enough and that the course teaches the calculus and linear algebra it needs.
- You want to go deep on image generation. Part 2 builds diffusion models, ending at Stable Diffusion, and writes its own small framework along the way.
- You want a forum. The course points learners to forums.fast.ai.
Choose AI Engineering from Scratch when
- You would rather read and run code than watch video.
- You need what comes after the model. Neither course page above lists lessons on retrieval-augmented generation, tool calling or agents; this curriculum has whole phases on them.
- You want to look up one topic. Each lesson states its prerequisites, so you can open the lesson on self-attention or tokenizers without taking the ones before it.
- You want a language other than Python for some of the work.
Where this curriculum is weaker
- No video. Both other courses let you watch an expert write and debug code live. This curriculum is text and code only.
- No single teacher. Zero to Hero is taught by Andrej Karpathy and fast.ai by Jeremy Howard. This curriculum is written by a maintainer and community contributors.
- No forum. fast.ai has its forums and Zero to Hero a Discord channel. Here, questions go through GitHub.
- Size. 542 lessons is far more than you need to understand a neural network. Zero to Hero gets from a derivative to a GPT in seven videos, with an eighth on the tokenizer.
- Track record. fast.ai's page says earlier versions of its courses have been studied by hundreds of thousands of students. This repository's licence is dated 2026.
Using them together
The three do not exclude each other. One workable order: watch the first Zero to Hero lecture and keep the written backpropagation lesson open as a reference; take fast.ai Part 1 for breadth across data types; then use this curriculum's LLM engineering and agent phases for the material neither video course lists. For LLM-specific courses, see fast.ai vs DeepLearning.AI vs Hugging Face.
Frequently asked questions
Is Neural Networks: Zero to Hero free?
The course page states no price. The eight lectures are YouTube videos embedded on that page, and the notebooks built in them sit in a public GitHub repository under the MIT licence. The page shows no enrolment or payment step, and it mentions no certificate. It does link to a Discord channel for learners.
Should I take fast.ai or Zero to Hero first?
It depends on how you learn. fast.ai starts with a complete working model and explains the layers underneath later, so you ship something in the first two lessons. Zero to Hero starts with a single derivative and builds upward. If unexplained code frustrates you, start with Zero to Hero; otherwise start with fast.ai.
How long does Zero to Hero take?
The eight run times listed on the course page add up to 14 hours 32 minutes of video, from 56 minutes to 2 hours 25 minutes each. The page gives no study-time estimate. The repository says every lecture has exercises in the video description, so real time depends on how many you do.
Is fast.ai's Practical Deep Learning for Coders still current in 2026?
Part 1 was recorded in 2022 and Part 2 implements Stable Diffusion from scratch. The course pages list no lessons on retrieval-augmented generation or agents. What it does teach, such as training loops, transfer learning, embeddings and stochastic gradient descent, is the base that current models still rest on.
Does AI Engineering from Scratch replace Zero to Hero or fast.ai?
No. AI Engineering from Scratch, which we publish, is a written curriculum with runnable code, not a video course. It overlaps with both on backpropagation, PyTorch and a small GPT, then continues into retrieval, tools, agents and production. Many topics are easier to learn from a video first and a written lesson second.
Learn it by building
These lessons in this curriculum cover the same ground as the two courses, in the order the courses reach it:
- Chain Rule & Automatic Differentiation: the idea behind micrograd.
- Backpropagation from Scratch: the first Zero to Hero lecture, in writing.
- Build Your Own Mini Framework: layers, losses and an optimizer you wrote, comparable to the small framework fast.ai Part 2 builds.
- Introduction to PyTorch: the library both courses use.
- Self-Attention from Scratch: the core of the "Let's build GPT" lecture.
- Building a Tokenizer from Scratch: byte pair encoding, as in the tokenizer lecture.
- Pre-Training a Mini GPT (124M Parameters): the training run.
- Transfer Learning & Fine-Tuning: the technique fast.ai opens with.
- Diffusion Models — DDPM from Scratch: one of the diffusion methods fast.ai Part 2 implements.
- RAG (Retrieval-Augmented Generation) and The Agent Loop: Observe, Think, Act: what comes after both courses.