5400: Distributed Training - Prerequisites¶
Before You Start¶
This module covers the parallelism strategies themselves (data, model, pipeline, mixed precision, distributed optimization). For cluster setup and run orchestration on K3s/Ray, see 5302: Distributed Training Orchestration first.
Required Knowledge:
PyTorch Fundamentals¶
- Tensors and operations
- Autograd and gradients
- Training loops
- Model definition
Training Concepts¶
- Batch processing
- Gradient descent
- Optimizers
- Loss functions
Parallel Computing Basics¶
- Process vs thread
- CPU vs GPU architecture
- Memory hierarchy
- Communication overhead
If you're not familiar:¶
Review Resources:
- PyTorch Distributed Documentation
- "Distributed Deep Learning" papers
- NCCL Library documentation
Estimated Review Time: 3-4 hours
Self-Assessment¶
Can you:
- Write a basic PyTorch training loop?
- Explain gradient accumulation?
- Understand what "all-reduce" means?
- Describe the difference between data and model parallelism?
If YES: Start with 5401: Data Parallelism
If NO: Review the resources above first.