arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.07276cs.DCcs.AIcs.LG
收藏

为AI腾出空间:基于深度势能的多GPU分子动力学在GROMACS中的应用

Making Room for AI: Multi-GPU Molecular Dynamics with Deep Potentials in GROMACS

Luca Pennati, Andong Hu, Ivy Peng, Lukas Müllender, Stefano Markidis

AI总结:

本文将深度学习势能框架DeePMD-kit集成到GROMACS中,实现多节点系统的GPU加速推断,展示了在大规模分子动力学模拟中实现接近从头计算精度的可行性。

摘要:

GROMACS是经典分子动力学(MD)的的事实标准。AI驱动的互作用势能的兴起,尤其是那些在MD吞吐量下追求近量子精度的势能,现在对嵌入神经网络推断到多GPU模拟中保持高性能提出了重大挑战。在本工作中,我们将MLIP框架DeePMD-kit集成到GROMACS中,实现了多节点系统的GPU加速推断。我们扩展了GROMACS NNPot接口,加入了DeePMD后端,并引入了一个与主模拟解耦的域分解层。推断在所有进程中并发执行,每一步使用两个MPI收集来广播坐标并聚合和重新分配力。我们训练了一个内部的DPA-1模型(1.6M参数)在溶剂化蛋白质片段数据集上。我们验证了该实现在一个小蛋白质系统上的有效性,然后在NVIDIA A100和AMD MI250x GPU上对15,668原子的蛋白质进行基准测试,最多支持32个设备。强标度效率在16个设备时达到66%,在32个设备时为40%;弱标度效率在16个设备时为80%,在32个设备时分别达到48%(MI250x)和40%(A100)。使用ROCm系统分析器分析发现,>90%的运行时间花费在DeePMD推断上,而MPI收集贡献<10%,主要是因为它们作为全局同步点。主要瓶颈是截止半径设定的不可约鬼原子成本,通过简单的吞吐量模型得到确认,以及不同进程中负载不平衡。这些结果证明在GROMACS中进行大规模分子动力学模拟,实现接近从头计算精度是可行的。

英文摘要:

GROMACS is a de-facto standard for classical Molecular Dynamics (MD). The rise of AI-driven interatomic potentials that pursue near-quantum accuracy at MD throughput now poses a significant challenge: embedding neural-network inference into multi-GPU simulations retaining high-performance. In this work, we integrate the MLIP framework DeePMD-kit into GROMACS, enabling domain-decomposed, GPU-accelerated inference across multi-node systems. We extend the GROMACS NNPot interface with a DeePMD backend, and we introduce a domain decomposition layer decoupled from the main simulation. The inference is executed concurrently on all processes, with two MPI collectives used each step to broadcast coordinates and to aggregate and redistribute forces. We train an in-house DPA-1 model (1.6 M parameters) on a dataset of solvated protein fragments. We validate the implementation on a small protein system, then we benchmark the GROMACS-DeePMD integration with a 15,668 atom protein on NVIDIA A100 and AMD MI250x GPUs up to 32 devices. Strong-scaling efficiency reaches 66% at 16 devices and 40% at 32; weak-scaling efficiency is 80% to 16 devices and reaches 48% (MI250x) and 40% (A100) at 32 devices. Profiling with the ROCm System profiler shows that >90% of the wall time is spent in DeePMD inference, while MPI collectives contribute <10%, primarily since they act as a global synchronization point. The principal bottlenecks are the irreducible ghost-atom cost set by the cutoff radius, confirmed by a simple throughput model, and load imbalance across ranks. These results demonstrate that production MD with near ab initio fidelity is feasible at scale in GROMACS.

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

↑