arXivPreprintOpen accesscs.NI

Minimizing Optical Circuit Reconfigurations for Concurrent Collectives

Xinchi Han, Weihao Jiang, Xuanyu Wang, Zhuoran Liu, Ximeng Liu, Haoyuan Liu, Kairui Zhou, Jiachen Wang,

Key points

From the paper's conclusion
  • We call this the count model, as opposed to the direct formulation that decides each kernel separately, and prove that the two give the same configuration sequences and the same optimum while the count model is substantially easier to solve.

Abstract

Optical circuit switches (OCSes) provide high-bandwidth point-to-point circuits in GPU clusters, but each optical port attaches to only one peer at a time, and reconfiguring a connection interrupts transmission. In large-model training, these ports are shared by many communication domains, each running its own collective instance, called a CCL kernel; often, several of these kernels execute the same collective at the same time. Because each step of the collective can reach a different peer, domains advancing through the steps in the same order may require a reconfiguration at every step. We introduce the mega CCL kernel to schedule these kernels jointly. When a collective permits its steps to be reordered, different domains can take different legal steps in the same round, letting consecutive rounds share the same circuits and reducing the number of reconfigurations. Because the kernels are interchangeable, we need not decide the steps of every kernel separately. Instead, in each round we count how many kernels run each pattern, and then use bipartite matching to turn those counts into a concrete schedule for each kernel. We call this the count model, as opposed to the direct formulation that decides each kernel separately, and prove that the two give the same configuration sequences and the same optimum while the count model is substantially easier to solve. On a fully loaded 64-supernode, 64-domain scheduling instance, joint scheduling cuts pairwise-AlltoAll reconfigurations from 62 to 3 and HD AllReduce from 10 to 2. In synthetic training replays parameterized by eight real models, it reduces iteration time by up to about 34%; on a 64-GPU test case, the count model solves over six orders of magnitude faster than the direct formulation.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Minimizing Optical Circuit Reconfigurations for Concurrent Collectives — Science Skim