JanusPipe: 用于机器学习互原子势的高效流水线并行训练
JanusPipe: Efficient Pipeline Parallel Training for Machine Learning Interatomic Potentials
AI总结:
本文提出JanusPipe,一种针对保守型机器学习互原子势的高效3D并行(PP/DP/GP)训练系统,通过SymFold实现内存高效的流水线并行,利用WaveK平衡计算时间以减少流水线气泡,实验表明其在32块GPU上相比1F1B和Hanayo分别提升了1.51倍和1.45倍的吞吐量。
摘要:
发现原子级现象需要具有从头计算精度的分子动力学(MD)模拟。机器学习互原子势(MLIPs)能够实现稳定、高精度的MD模拟,其模型表现出与大语言模型相似的缩放定律。然而,缺乏可扩展且高效的分布式训练系统使得保守MLIPs难以扩展。这是因为保守MLIPs本质上遵循双反向执行模式,该模式在前向传递过程中计算梯度。这种模式与现有分布式训练系统存在不匹配,特别是对于流水线并行。因此,我们提出JanusPipe,一种专为保守MLIPs设计的高效3D并行(PP/DP/GP)训练系统。它集成了SymFold以实现保守MLIPs的内存高效流水线并行,并利用WaveK通过平衡四个阶段的计算时间来减少流水线气泡。实验结果表明,在32块GPU上,JanusPipe相比1F1B和Hanayo分别提升了1.51倍和1.45倍的吞吐量。
英文摘要:
Discovering atom-level phenomena requires molecular dynamics (MD) simulations with ab initio accuracy. Machine learning interatomic potentials (MLIPs) enable stable, high-accuracy MD simulations, and their models exhibit scaling-law trends similar to large language models. However, the lack of scalable and efficient distributed training systems for conservative MLIPs makes them difficult to scale. This is because conservative MLIPs inherently follow a double-backward execution pattern, which involves computing gradients during the forward pass. This pattern creates a mismatch with existing distributed training systems, especially for pipeline parallelism. Therefore, we present JanusPipe, an efficient 3D-parallel (PP/DP/GP) training system tailored for conservative MLIPs. It integrates SymFold to enable memory-efficient pipeline parallelism for conservative MLIPs, and WaveK to reduce pipeline bubbles by balancing the four-phase compute time. Experimental results on 32 GPUs show that JanusPipe improves throughput by $1.51\times$ and $1.45\times$ on average over 1F1B and Hanayo, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。