World size is the total number of processes participating in a distributed training job. When one GPU is assigned to each process, it generally also equals the number of GPUs in use. section 16.1.1
Figure 16.1 Single GPU training (left) vs. multi-GPU training (center) vs. training with multiple machines and multiple GPUs (right)
Compare how world size changes from one GPU to several GPUs on one machine and then to several machines. section 16.1.1
The examples distinguish common distributed-training setups:
- Single-GPU training uses a world size of 1. section 16.1.1
- Training on four GPUs in one machine uses a world size of 4. section 16.1.1
- Training on two machines with four GPUs each uses a world size of 8. section 16.1.1
- Each process also receives a unique rank, ranging from 0 through world size minus 1. section 16.1.1
