Distributed ML

Single GPU training is limited by memory and speed.

1. Communication Collectives

Data Parallelism splits data across devices. Here, model data fits into the whole GPU, btu training is too slow. So, keep a copy of the model on each device, and split the data across devices. Each device computes gradients for its own data, then gradients are aggregated across devices. This needs CC: All Reduce.

2. Model Parallelism

When a model can't fit on a GPU, split model across devices.

CollectivesUsed In
All-ReduceDP, TP
All-GatherTP+SP
Reduce-ScatterTP+SP
BroadcastDP
Point-to-PointPP
All-to-AllEP

3. Federated Learning

4. Model Merging

5. Distributed Inference

Back to Home