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.

0 of 8 lessons passed

Start lesson 1

Lessons

Progress and your code are kept in this browser only.

  1. Weight uneven microbatches by sample countApp required
  2. Normalize sequence loss by valid tokensApp required
  3. Freeze parameters and running statistics separatelyApp required
  4. Restore module modes after a prediction helperApp required
  5. Capture a checkpoint that cannot drift with live weightsApp required
  6. Shift language-model targets instead of predicting the presentApp required
  7. Combine local mean gradients by their sample countsApp required
  8. Merge a low-rank adapter without changing its functionApp required

All courses