PyTorch DDP Deep Dive — Initialization, Buffer Broadcast, the Reducer, and the torch.compile Story
A code-level walk through `DistributedDataParallel` — `__init__`, the bucket-grad-allreduce machinery in C++ `Reducer`, the per-forward buffer broadcast that surprises everyone the first time they ...