Machine learning · Course 8 of 10
Deep learning: training correctness
Eight real PyTorch CPU exercises: uneven microbatches, padded losses, frozen normalization, inference state, checkpoint ownership, shifted targets, weighted gradient reduction and LoRA merging. Tensor code runs in the app; no GPU or cluster is claimed.
- 8 lessons
- App required
0 of 8 lessons passed
Lessons
Progress and your code are kept in this browser only.
- Weight uneven microbatches by sample count
- Normalize sequence loss by valid tokens
- Freeze parameters and running statistics separately
- Restore module modes after a prediction helper
- Capture a checkpoint that cannot drift with live weights
- Shift language-model targets instead of predicting the present
- Combine local mean gradients by their sample counts
- Merge a low-rank adapter without changing its function