docscore conceptsconcept-distributed-ring-allreduce
Core Concepts

Concepts: Distributed Ring All-Reduce

Bandwidth-optimal peer-to-peer TCP communication for multi-node gradient synchronization.

Concepts: Distributed Ring All-Reduce

Bandwidth-optimal peer-to-peer TCP communication for multi-node gradient synchronization.

In a ring of $N$ workers:

  1. Divide gradients into $N$ equal chunks.
  2. Scatter-Reduce phase: Each node sends chunk $k$ to its right neighbor while receiving chunk $k-1$ from its left neighbor for $N-1$ steps.
  3. All-Gather phase: Transmit fully accumulated chunks around the ring for another $N-1$ steps.