Home › Courses › Deep Learning from Scratch
Build your own mini PyTorch: autograd, layers and training loops from the ground up
4 phases. 13 lessons. 13 labs. 1 capstone. Neural networks from the ground up — the perceptron, multi-layer networks, backpropagation by hand, activation functions, loss functions, optimizers, regularization, and a mini deep learning framework you build yourself before learning PyTorch. You build an autograd engine and a training loop that trains a real model, then transition to PyTorch and JAX with full understanding of what's happening underneath.
4 phases · 13 lessons · 13 labs · 1 capstone
Take Core ML: Algorithms from Scratch first — this course builds on it.
Backpropagation from Scratch · Activation & Loss Functions · Optimizers (SGD, Adam, AdamW) · Regularization (Dropout, BatchNorm) · Autograd Engine Implementation · PyTorch Fundamentals · JAX Fundamentals
NumPy · PyTorch · JAX · Matplotlib
It's building neural networks from the ground up — starting with a single perceptron, adding layers, implementing backpropagation by hand, building an autograd engine, and constructing a mini training framework — all before using PyTorch. By the time you reach PyTorch, you've already built a simpler version of it yourself.
You design neural network architectures, write training loops, and debug training dynamics. When something goes wrong — loss explodes, gradients vanish, the model won't learn — you diagnose the issue from first principles because you built the mechanisms yourself. When you need a custom layer or loss function, you implement it without waiting for PyTorch to add it.
Every company doing serious ML uses PyTorch, but most engineers treat it as a black box. The engineer who built an autograd engine from scratch is the one who can debug production training issues, implement custom architectures from papers, and optimize training speed. That's the engineer who gets the senior role.
It is not a PyTorch tutorial. You'll use PyTorch in Phase 4, but only after building a simpler version of it yourself. It is not a computer vision or NLP course — those are the next courses in the chain. This course is purely about how neural networks learn and how to build the machinery that trains them.
Yes — this course builds on the gradient descent and evaluation foundations from Core ML. You'll use the same optimization concepts, but now applied to neural networks instead of classical algorithms.
Because PyTorch is an autograd engine with a training loop — and if you've built one yourself, PyTorch is transparent instead of magical. When training breaks, you'll know whether it's the data, the architecture, the optimizer, or the framework. When you need custom gradients or unusual architectures, you'll know how to implement them.
ML & AI Engineering covers deep learning in 7 lessons as part of a broader curriculum — enough to use PyTorch effectively. This course spends 13 lessons building backpropagation from scratch, implementing an autograd engine, and constructing a mini framework before touching PyTorch. It's the difference between using PyTorch and understanding what PyTorch is.
A working mini deep learning framework with autograd, layers, optimizers, and a training loop — plus PyTorch and JAX fluency built on deep understanding of what those frameworks actually do underneath.
Backpropagation · Learning Rate
Core ML: Algorithms from Scratch · Transformers & LLMs from Scratch · Computer Vision Engineering · NLP & Speech Processing · Generative AI Fundamentals · ML & AI Engineering
Create a free account — the opening phases of 24 of 30 courses are free, no credit card. Or see Pro pricing.
All courses · Pricing · About · FAQ · Glossary