Become an AI engineer

Training infrastructure

Training infrastructure is a unit of 18 lessons in Rabbithole's Become an AI engineer course, at levels 4 to 5.

Lessons

  1. Activation checkpointing: trading compute for memoryLevel 4
  2. Context Parallelism: splitting a long sequence across GPUsLevel 4
  3. Data ParallelismLevel 4
  4. Distributed training: verifying and configuring multi-GPU runsLevel 4
  5. GPU clusters: from NVLink to the fat treeLevel 4
  6. Mixed-precision training: what it costs and where the bytes goLevel 4
  7. Numerics Debugging: Capture, Diff, GateLevel 4
  8. Blocking and non-blocking tensor writes to NVMeLevel 4
  9. Sequence Parallelism: splitting the tokens TP leaves wholeLevel 4
  10. Checkpointing and fault tolerance in torchtitanLevel 4
  11. Training Recipe Configuration in torchtitanLevel 4
  12. Training reproducibilityLevel 4
  13. Batch InvarianceLevel 5
  14. Collective communication: rings, bandwidth and overlapLevel 5
  15. Expert parallelism: sharding experts across workersLevel 5
  16. Pipeline parallelism: splitting layers across acceleratorsLevel 5
  17. ZeRO and FSDP: sharding model states across GPUsLevel 5
  18. Tensor parallelism: splitting the matrix multipliesLevel 5

Sources

These lessons draw on 14 sources. The most used:

All units in Become an AI engineer