arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.06356cs.DC
收藏

NLP模型的现代分布式数据并行大规模预训练策略

Modern Distributed Data-Parallel Large-Scale Pre-training Strategies For NLP models

Hao Bai

摘要:

分布式深度学习由于对具有更大量参数的深度学习模型的计算资源的不断扩大的需求而变得越来越流行。与传统的训练方法不同,数据并行训练允许多个计算节点同时训练大型深度学习模型,以提高训练效率。在本文中,我们提出并比较了使用PyTorch在语言模型GPT-2上使用100 M参数进行数据并行训练的六种策略。这些策略是单GPU,单参数服务器,分布式参数服务器,Horovod,分布式参数服务器与Apex混合精度策略,Horovod与Apex混合精度策略。我们还分析了定量的实验结果,从每一个策略。最后,我们得出结论,具有Apex混合精度策略的分布式参数服务器在单节点训练上具有最好的性能,而具有Apex的Horovod是在我们有单个或多个节点时使用的最鲁棒的方法。

英文摘要:

Distributed deep learning is becoming increasingly popular due to the expanding demand for computing resources for deep learning models with a larger amount of parameters. Different from traditional training approaches, data-parallel training allows multiple compute nodes to train large deep learning models simultaneously in order to boost the training efficiency. In this paper, we present and compare six strategies for data-parallel training using PyTorch on the language model GPT-2 with 100M parameters using a qualitative approach. These strategies are Single GPU, Single Parameter Server, Distributed Parameter Server, Horovod, Distributed Parameter Server with Apex mixed-precision strategy, and Horovod with Apex mixed-precision strategy. We also analyze the quantitative experiment results from each strategy. In the end, we draw the conclusion that the Distributed Parameter Server with Apex mixedprecision strategy has the best performance on single node training, while Horovod with Apex is the most robust approach to use when we have single or multiple nodes.

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

↑