analiza aiqbench
NoLoCo introduces a novel optimization technique that eliminates the need for costly global synchronization during large model training by implicitly averaging weights within random subgroups. This approach significantly reduces communication overhead and accelerator idle time compared to standard sharded data parallel methods and existing low-communication baselines like DiLoCo. The method demonstrates improved convergence speed and final perplexity across various cluster configurations, addressing a key bottleneck in scaling AI infrastructure.
NoLoCo: No-all-reduce Low Communication Training Method for Large Models
De la arXiv
Text integralTraining large language models is generally done on clusters containing thousands of accelerators, communicating over a high-bandwidth interconnect. Scaling up these clusters is expensive and can become impractical, imposing limits on the size of models that can be trained. Several recent studies have proposed training methods that are less communication intensive, avoiding the need for compute clusters with extremely high interconnect speeds. These low communication training methods still employ a global synchronization step for model parameters, which can be too costly with a high number of participants, as the communication cost scales quadratically with group size.
In this work, we propose a novel optimization method, NoLoCo, that does not explicitly synchronize all model parameters during training and does not require any collective communication. NoLoCo implicitly synchronizes model weights via a novel variant of the Nesterov momentum optimizer by partially averaging model weights within randomly selected subgroups. We provide both a theoretical convergence analysis of our optimizer and empirical results from language model training. Our method requires significantly less communication than fully sharded data parallel training and DiLoCo, a widely used low-communication baseline.
Moreover, our method avoids global blocking communication, thereby reducing accelerator idle time. Our experiments show that NoLoCo is more communication-efficient than DiLoCo, improving final perplexity by up to and converging up to faster in wall-clock time across a range of worker counts, model sizes, and communication bandwidths.
Text integral sub licența deschisă a publicației · 231 cuvinte