Progress Checkpoint: Phase 2 - Cognitive Science & Frameworks¶
Track your progress through Phase 2 modules
Phase 2 Overview¶
Phase: [2000] Cognitive Science & Frameworks
Modules: 4 (2100, 2200, 2300, 2400)
Estimated Time: 3-4 weeks
Difficulty: ⭐⭐ Intermediate
Phase Completion Goal¶
After completing Phase 2, you will:
- Understand tensor operations
- Implement backpropagation
- Know ML framework internals
- Understand pre-training fundamentals
- Be ready for transformer architecture
Module Checkpoints¶
Module 2100: Calculus for Deep Learning (Required)¶
Checkpoint Quiz:
- What is a tensor and how does it differ from an array?
- Explain the dot product and its geometric interpretation
- What is gradient descent?
Practical Verification:
- Can implement matrix multiplication from scratch
- Understand PyTorch tensor operations
- Can compute gradients
Module 2200: Deep Learning Frameworks (Required)¶
Checkpoint Quiz:
- What is a computational graph?
- How does PyTorch track gradients?
- What is XLA compilation?
Practical Verification:
- Can build neural network in PyTorch
- Understand automatic differentiation
- Can optimize computation
Module 2300: Framework Engineering (Required)¶
Checkpoint Quiz:
- How does a reverse-mode autograd engine propagate gradients through a computational graph?
- What bookkeeping does a Tensor class need to support backward passes?
- How do you validate custom operations against PyTorch reference results?
Practical Verification:
- Can implement a minimal autograd engine from scratch
- Understand graph construction and topological sort for backward passes
- Can validate custom tensor ops against reference outputs
Module 2400: LLM Pretraining (Required)¶
Checkpoint Quiz:
- What are the key stages of a pre-training pipeline?
- How do data parallel and model parallel sharding differ?
- What metrics are used to evaluate a pretrained language model?
Practical Verification:
- Understand the pre-training data pipeline
- Can explain distributed training strategies
- Know how to evaluate a pretrained checkpoint
Common Pitfalls¶
- Stale Gradients: Forgetting
optimizer.zero_grad()between steps silently accumulates gradients across batches and corrupts every update - Device Mismatch: Mixing CPU and GPU tensors in one op raises a runtime error only when that branch first executes - move the whole model and batch together
- no_grad Blind Spot: Running inference without
torch.no_grad()keeps the autograd graph alive and quietly eats VRAM until OOM - Leaky Normalization: Fitting scalers or computing batch statistics on the full dataset leaks test information into training
Phase 2 Completion Badge¶
Badge: Tensor Master
You've earned it when:
- All required modules completed
- Can implement backpropagation
- Understand framework internals