Deep Learning Foundations
AI/ML Engineering Track | Phase 10 · 27 modules · ~70–110 hours
Overview
Section titled “Overview”This section teaches deep learning the way it actually clicks: from scratch first, framework second. You build a working multi-layer perceptron — forward pass, loss, backprop, and a scalar autograd engine — in plain NumPy before you are allowed to import torch. Once the mechanics are no longer magic, you cross the bridge to PyTorch and learn to run reproducible training loops, diagnose why a network won’t converge, and reason about numerical stability.
From there the section climbs the modern architecture stack one idea at a time — embeddings, residual connections, attention, and a transformer block you assemble by hand — then applies it across vision (CNNs), sequences (RNNs), and a capstone where you train a real network end-to-end. The final modules reach into self-supervised learning, graph neural networks, and the attention variants (RoPE, ALiBi) that power current frontier models.
Every module is taught at Bloom Level 3+ — derive it, implement it, debug it — not “remember the API.” If the math feels intimidating, start with the warm-up (1.1.1); it assumes nothing beyond high-school calculus and rebuilds the rest.
How This Section Is Organized
Section titled “How This Section Is Organized”The 27 modules form one spine with five sub-chains. Work them roughly in order — each chain assumes the previous one.
From-Scratch Foundations (NumPy)
Section titled “From-Scratch Foundations (NumPy)”Build the whole stack by hand — neuron, MLP, activations, losses, backprop, and a scalar autograd engine — so nothing in PyTorch is ever a black box.
PyTorch & the Training Loop
Section titled “PyTorch & the Training Loop”Port your NumPy engine to torch, then turn one gradient step into a reproducible run: initialization, optimizers, regularization, normalization, a diagnostics playbook, and numerical-stability discipline.
Representations, Attention & Transformers
Section titled “Representations, Attention & Transformers”The conceptual core of modern deep learning: embeddings, residual depth, attention from first principles, and the transformer block assembled from those parts.
| # | Module |
|---|---|
| 1.4.1 | Embeddings & Representation Learning |
| 1.4.2 | Residual Connections & Deep-Architecture Patterns |
| 1.4.3 | Attention from Scratch |
| 1.4.4 | The Transformer Block from Scratch |
Architectures & Capstone
Section titled “Architectures & Capstone”Apply the stack to real data — convolutional networks for vision, recurrent networks for sequences — then train a complete network end-to-end.
| # | Module |
|---|---|
| 1.5 | Convolutional Neural Networks & Computer Vision |
| 1.6 | Recurrent Networks & Sequence Models |
| 1.7 | Capstone: Train a Real Net End-to-End |
Advanced Topics
Section titled “Advanced Topics”Where the field is heading: learning without labels, learning on graphs, and the attention variants behind current frontier models.
| # | Module |
|---|---|
| 1.8 | Self-Supervised Learning |
| 1.9 | Graph Neural Networks |
| 1.10 | Modern Transformers: RoPE, ALiBi, and Attention Variants |
Recommended Order
Section titled “Recommended Order”- If the math feels shaky, do 1.1.1 first — everything else builds on it.
- Walk 1.1 → 1.1.8 in order. The from-scratch chain is cumulative; skipping a step breaks the next module’s assumptions.
- Only then cross to PyTorch (1.2) and the training loop (1.3 plus 1.3.1–1.3.6). Resist jumping here first — the framework hides exactly the mechanics you just built by hand.
- Climb the representation chain 1.4.1 → 1.4.4 before any specific architecture; attention and residual connections reappear everywhere downstream.
- Choose by interest across 1.5 (vision) and 1.6 (sequences), then lock it all in with the 1.7 capstone.
- Treat 1.8–1.10 as advanced electives once the spine is solid.
Cross-Links
Section titled “Cross-Links”- Before this section: Prerequisites for Python and reproducible environments, and Machine Learning for the tabular-data discipline most production ML still runs on.
- After this section: Generative AI and Advanced GenAI & Safety apply transformers at scale; AI Infrastructure and MLOps & LLMOps deploy and operate the models you train here.
- Historical context: Appendix A: History of AI/ML and the top-level History of AI trace how these ideas emerged.