Stage 3: Deep Learning¶
3 Train, debug, and reason about neural networks.
Goal¶
Understand neural networks deeply enough to work with transformers, fine-tuning, inference optimization, and modern model code.
Roadmap to Master This Stage¶
- Read the stage goal and diagram before opening the parts.
- Move through the parts in order unless you can already pass the exit criteria.
- Study each sub-part folder: overview, deep dive, and examples/practice.
- Build the stage artifact in small slices and measure the listed metrics.
- Use the part exam after each part, or open the global Exam tab to test across the roadmap.
Stage Structure Diagram¶
%%{init: {"flowchart": {"htmlLabels": true, "nodeSpacing": 70, "rankSpacing": 90}, "themeVariables": {"fontSize": "18px"}} }%%
flowchart LR
P1["<b>3.1</b><br/>Neural Network Core"]
P2["<b>3.2</b><br/>Training Loop<br/>Engineering"]
P1 --> P2
P3["<b>3.3</b><br/>Optimization Dynamics"]
P2 --> P3
P4["<b>3.4</b><br/>Architectures and<br/>Modalities"]
P3 --> P4
P5["<b>3.5</b><br/>Debugging Neural Systems"]
P4 --> P5
P6["<b>3.6</b><br/>Hardware Aware Training<br/>Preview"]
P5 --> P6
Parts¶
| Part | Simple explanation | Build focus |
|---|---|---|
| 3.1 Neural Network Core | Connect tensors, layers, losses, gradients, and optimizers to learning behavior. | Train a tiny neural network and inspect its learning curve. |
| 3.2 Training Loop Engineering | Build training code that handles data, devices, checkpoints, validation, and experiment records. | Create a reusable PyTorch training script. |
| 3.3 Optimization Dynamics | Tune training behavior with optimizers, schedules, initialization, regularization, and ablations. | Run learning-rate and regularization ablations. |
| 3.4 Architectures and Modalities | Read and adapt model structures for tabular, vision, text, sequence, and multimodal tasks. | Train or adapt a small model architecture. |
| 3.5 Debugging Neural Systems | Diagnose the ordinary reasons neural networks fail before blaming the architecture. | Apply a training debugging checklist. |
| 3.6 Hardware Aware Training Preview | Understand the first layer of GPU utilization, memory pressure, and data bottlenecks. | Profile a small training run. |
Sub-Part Map¶
| Part | Sub-part | Why it matters |
|---|---|---|
| 3.1 | 3.1.1 Tensors and Shapes | Tensors and Shapes is the working skill inside Neural Network Core that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.1 | 3.1.2 Layers Activations and Parameters | Layers Activations and Parameters is the working skill inside Neural Network Core that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.1 | 3.1.3 Loss Functions | Loss Functions is the working skill inside Neural Network Core that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.1 | 3.1.4 Backpropagation and Autograd | Backpropagation and Autograd is the working skill inside Neural Network Core that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.2 | 3.2.1 Datasets and Dataloaders | Datasets and Dataloaders is the working skill inside Training Loop Engineering that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.2 | 3.2.2 Batching and Device Placement | Batching and Device Placement is the working skill inside Training Loop Engineering that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.2 | 3.2.3 Training and Evaluation Modes | Training and Evaluation Modes is the working skill inside Training Loop Engineering that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.2 | 3.2.4 Checkpoints and Resume Logic | Checkpoints and Resume Logic is the working skill inside Training Loop Engineering that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.3 | 3.3.1 SGD Adam and Weight Decay | SGD Adam and Weight Decay is the working skill inside Optimization Dynamics that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.3 | 3.3.2 Learning Rate Schedules | Learning Rate Schedules is the working skill inside Optimization Dynamics that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.3 | 3.3.3 Initialization and Normalization | Initialization and Normalization is the working skill inside Optimization Dynamics that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.3 | 3.3.4 Regularization and Data Augmentation | Regularization and Data Augmentation is the working skill inside Optimization Dynamics that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.4 | 3.4.1 MLPs CNNs and Sequence Models | MLPs CNNs and Sequence Models is the working skill inside Architectures and Modalities that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.4 | 3.4.2 Attention as a Bridge to Transformers | Attention as a Bridge to Transformers is the working skill inside Architectures and Modalities that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.4 | 3.4.3 Transfer Learning | Transfer Learning is the working skill inside Architectures and Modalities that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.4 | 3.4.4 Multimodal Model Basics | Multimodal Model Basics is the working skill inside Architectures and Modalities that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.5 | 3.5.1 Sanity Checks and Tiny Overfit Tests | Sanity Checks and Tiny Overfit Tests is the working skill inside Debugging Neural Systems that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.5 | 3.5.2 Gradient Problems | Gradient Problems is the working skill inside Debugging Neural Systems that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.5 | 3.5.3 Numerical Stability and Precision | Numerical Stability and Precision is the working skill inside Debugging Neural Systems that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.6 | 3.6.1 GPU Utilization Basics | GPU Utilization Basics is the working skill inside Hardware Aware Training Preview that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.6 | 3.6.2 Memory Footprint | Memory Footprint is the working skill inside Hardware Aware Training Preview that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
| 3.6 | 3.6.3 Profiling Training Runs | Profiling Training Runs is the working skill inside Hardware Aware Training Preview that helps you build the stage artifact, A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes, while collecting enough evidence to trust the result. |
Stage Artifact¶
A PyTorch training project with loops, validation curves, checkpoints, ablations, and debugging notes.
What to Measure¶
- training and validation curves
- final validation metric
- training time
- memory use
- ablation result
Exit Criteria¶
- implement a training loop
- explain autograd and optimizers
- debug a model that does not learn
- read and modify architecture code
Navigation¶
Previous: Stage 2: Machine Learning | Next: Stage 4: Large Language Models