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

使用KARMA扩展分布式深度学习工作负载,使其超出内存容量

Scaling Distributed Deep Learning Workloads beyond the Memory Capacity with KARMA

National Institute of Advanced Industrial Science and Technology(产业技术综合研究所);miHoYo Inc(米哈游公司);Tokyo Institute of Technology(东京工业大学);RIKEN Center for Computational Science(理化学研究所计算科学研究中心)

Mohamed Wahib, Haoyu Zhang, Truong Thao Nguyen, Aleksandr Drozd, Jens Domke, Lingqi Zhang, Ryousei Takano, Satoshi Matsuoka

摘要:

硬件加速器的专用存储器可能不足以存储大型深度学习模型的所有权重和/或中间状态。虽然模型并行是一种可行的方法来减少内存压力的问题,显着修改的源代码和算法的考虑是必需的。另一种解决方案是使用核外方法来代替数据并行性,或者除了数据并行性之外还使用核外方法。我们提出了一个性能模型的基础上的并发分析的核心外的训练行为,并得出一个策略,结合层交换和冗余重计算。我们在六种不同的模型中实现了平均1.52倍的加速比,超过了最先进的核外方法。我们还介绍了第一种方法来解决具有挑战性的问题的核心外多节点训练,通过仔细流水线梯度交换和执行参数更新的主机。我们的数据并行核外解决方案在训练大型模型(例如Megatron-LM和Turning-NLG)时,性能优于复杂的混合模型并行。

英文摘要:

The dedicated memory of hardware accelerators can be insufficient to store all weights and/or intermediate states of large deep learning models. Although model parallelism is a viable approach to reduce the memory pressure issue, significant modification of the source code and considerations for algorithms are required. An alternative solution is to use out-of-core methods instead of, or in addition to, data parallelism. We propose a performance model based on the concurrency analysis of out-of-core training behavior, and derive a strategy that combines layer swapping and redundant recomputing. We achieve an average of 1.52x speedup in six different models over the state-of-the-art out-of-core methods. We also introduce the first method to solve the challenging problem of out-of-core multi-node training by carefully pipelining gradient exchanges and performing the parameter updates on the host. Our data parallel out-of-core solution can outperform complex hybrid model parallelism in training large models, e.g. Megatron-LM and Turning-NLG.

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

↑