Reproduce “PAT: a new algorithm for all-gather and reduce-scatter operations at scale” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Sylvain Jeaugey
The PAT algorithm enhances collective communication operations like all-gather and reduce-scatter at scale, particularly for NVIDIA's NCCL library. It achieves improved performance by adopting a hybrid logarithmic-linear approach that adapts to buffer constraints and addresses practical limitations of prior logarithmic algorithms, supporting arbitrary numbers of ranks and minimizing long-distance communication.
Key insights
- PAT adapts its communication strategy (hybrid logarithmic and linear phases) based on the available intermediate buffer size, allowing efficient memory reuse by emptying far-distance buffers first.
- The algorithm leverages a reversed-dimension Bruck approach for all-gather and a reversed binomial tree for reduce-scatter, addressing long-distance communication issues.
- The design ensures applicability to both all-gather and reduce-scatter operations, even with strict buffer constraints, and works efficiently for any number of participating ranks.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.