arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.20796cs.DCcs.LG
收藏

FastCHGNet:使用32块GPU在1.5小时内训练一个通用原子间势

FastCHGNet: Training one Universal Interatomic Potential to 1.5 Hours with 32 GPUs

State Key Lab of Processors, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所处理器重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Institute of Semiconductor, Chinese Academy of Sciences(中国科学院半导体研究所)

Yuanchang Zhou, Siyu Hu, Chen Wang, Lin-Wang Wang, Guangming Tan, Weile Jia

AI总结:

针对CHGNet训练耗时问题,本文提出FastCHGNet,通过力/应力读出分解、算子优化和多GPU负载均衡,将训练时间降至32 GPU上1.53小时且精度无损。

摘要:

图神经网络通用原子间势(GNN-UIP)在材料发现和性质预测中展现出显著的泛化与迁移能力。这些模型能够将分子动力学(MD)模拟加速数个数量级,同时保持从头算精度,因此成为材料模拟中一种很有前景的新范式。一个典型例子是 Crystal Hamiltonian Graph Neural Network(CHGNet),它在 MPtrj 数据集的能量、力、应力和磁矩上进行了预训练,代表了用于电荷感知MD模拟的最先进GNN-UIP模型。然而,训练CHGNet模型非常耗时(在一块A100 GPU上需要8.3天),原因有三点:(i)需要多层传播以获取更远距离的原子信息;(ii)需要计算二阶导数以完成权重更新;(iii)参考CHGNet的实现没有充分利用计算能力。本文介绍FastCHGNet,这是一种优化后的CHGNet,具有三项贡献:首先,我们设计了创新的Force/Stress Readout模块,以分解力/应力预测。其次,我们采用内核融合、冗余旁路等大量优化,以充分挖掘GPU计算能力。最后,我们扩展CHGNet以支持多GPU,并提出一种负载均衡技术来提高GPU利用率。数值结果表明,FastCHGNet将内存占用降低了3.59倍。在不牺牲模型精度的情况下,FastCHGNet的最终训练时间可在32块GPU上缩短至1.53小时。

英文摘要:

Graph neural network universal interatomic potentials (GNN-UIPs) have demonstrated remarkable generalization and transfer capabilities in material discovery and property prediction. These models can accelerate molecular dynamics (MD) simulation by several orders of magnitude while maintaining \textit{ab initio} accuracy, making them a promising new paradigm in material simulations. One notable example is Crystal Hamiltonian Graph Neural Network (CHGNet), pretrained on the energies, forces, stresses, and magnetic moments from the MPtrj dataset, representing a state-of-the-art GNN-UIP model for charge-informed MD simulations. However, training the CHGNet model is time-consuming(8.3 days on one A100 GPU) for three reasons: (i) requiring multi-layer propagation to reach more distant atom information, (ii) requiring second-order derivatives calculation to finish weights updating and (iii) the implementation of reference CHGNet does not fully leverage the computational capabilities. This paper introduces FastCHGNet, an optimized CHGNet, with three contributions: Firstly, we design innovative Force/Stress Readout modules to decompose Force/Stress prediction. Secondly, we adopt massive optimizations such as kernel fusion, redundancy bypass, etc, to exploit GPU computation power sufficiently. Finally, we extend CHGNet to support multiple GPUs and propose a load-balancing technique to enhance GPU utilization. Numerical results show that FastCHGNet reduces memory footprint by a factor of 3.59. The final training time of FastCHGNet can be decreased to \textbf{1.53 hours} on 32 GPUs without sacrificing model accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑