Phase 3 of 6 · Weeks 3348

Phase 3 — Deep Learning

Start with a single neuron, build your own autograd engine, and finish with a transformer you understand line by line.

What you'll be able to do

  • Build a working automatic-differentiation engine from scratch
  • Derive backpropagation for a two-layer network on paper and verify it in code
  • Train a convolutional network and explain what each filter has learned
  • Implement attention and assemble a transformer block from its parts
  • Diagnose vanishing gradients, dead units and overfitting from training curves
  • Use PyTorch deliberately — knowing what every call is doing underneath

What you need before you start

Assumed on day one

  • Phase 1 calculus — the chain rule, partial derivatives, gradients
  • Phase 2 discipline — loss functions, train/val/test splits, regularisation
  • Confident NumPy and Python

Taught here — not assumed

  • Perceptrons, multi-layer networks and activation functions
  • Computational graphs, automatic differentiation and vector-Jacobian products
  • PyTorch tensors, `nn.Module`, optimisers, datasets and dataloaders
  • Convolutional networks, recurrent networks and sequence modelling
  • Attention, self-attention and the transformer architecture

Week by week (16 weeks)

  1. W33Neural Network Foundations
  2. W34Backpropagation Deeply
  3. W35PyTorch Fundamentals
  4. W36Training Dynamics
  5. W37Optimization for Deep Learning
  6. W38CNNs I
  7. W39CNN Architectures
  8. W40Sequence Models (RNNs & LSTMs)
  9. W41Attention & Transformers I
  10. W42Transformers II — Building GPT
  11. W43Tokenization Deeply
  12. W44Pretraining Concepts
  13. W45Fine-tuning & Transfer Learning
  14. W46Parameter-Efficient Fine-Tuning (PEFT)
  15. W47Computer Vision Deep Dive (Optional Specialization)
  16. W48Phase 3 Capstone

What you'll build

  • `micrograd` — a scalar autograd engine built from scratch
  • Backpropagation for a two-layer MLP derived by hand, then verified in code
  • An image classifier trained end-to-end in PyTorch
  • A transformer block assembled from your own attention implementation

Free, no-signup explainers and interactive demos covering this phase's ideas.

Questions about this phase

Do I need a GPU for Phase 3?
Not to start. The from-scratch work runs on any laptop. For the larger training runs, free hosted notebooks with GPU access are enough — the curriculum is designed around what is freely available.
Why build an autograd engine instead of starting with PyTorch?
Because `loss.backward()` is a black box until you have written one. Building the engine takes about a week and makes every later debugging session faster.
Is this enough to understand how ChatGPT works?
Phase 3 gets you the transformer — the architecture underneath it. Phase 4 covers how those models are trained, prompted, fine-tuned and retrieved from.

Start with a real lesson, not a sales page.

Play through a complete lesson — predict, explore the demo, prove you've got it. No account, no card.