AI Hardware & Software Stack
What does the all-reduce communication used in distributed training do?
- AIt erases one GPU's data to free memory
- BIt sums the values (such as gradients) held by all GPUs and distributes the total to every GPU
- CIt powers off all GPUs at once
Show answer and explanation
Answer: B. It sums the values (such as gradients) held by all GPUs and distributes the total to every GPU
All-reduce sums identically shaped tensors held by each GPU element by element (the reduce) and gives the result to every GPU. With ring all-reduce, which arranges GPUs in a ring and passes chunks of data to neighbors, the communication volume per GPU stays nearly constant as GPUs are added. Data-parallel training uses it to average gradients at every step.
- A. It does not erase data.
- B. Correct. It is used to average gradients in data parallelism.
- C. It does not control power.