Implement toy data-parallel SGD with manual gradient all-reduce (torch

Infrastructure, Distributed Training & Scaling2 / 4

Chapter 232 / 4

Infrastructure, Distributed Training & Scaling

Implement toy data-parallel SGD with manual gradient all-reduce (torch

Medium

Implement toy data-parallel SGD with manual gradient all-reduce (torch.distributed or a simulated ring).

Target interface
ring_all_reduce(buffers)

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.