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

Nebula-I:一个在低带宽云集群上协作训练深度学习模型的通用框架

Nebula-I: A General Framework for Collaboratively Training Deep Learning Models on Low-Bandwidth Cloud Clusters

Peng Cheng Laboratory(鹏城实验室);Baidu Inc.(百度公司);University of Chinese Academy of Sciences(中国科学院大学);Hong Kong University of Science and Technology(香港科技大学)
Yang Xiang, Zhihua Wu, Weibao Gong, Siyu Ding, Xianjie Mo, Yuang Liu, Shuohuan Wang, Peng Liu, Yongshuai Hou, Long Li, Bin Wang, Shaohuai Shi, Yaqian Han, Yue Y… 展开作者

Yang Xiang, Zhihua Wu, Weibao Gong, Siyu Ding, Xianjie Mo, Yuang Liu, Shuohuan Wang, Peng Liu, Yongshuai Hou, Long Li, Bin Wang, Shaohuai Shi, Yaqian Han, Yue Yu, Ge Li, Yu Sun, Yanjun Ma, Dianhai Yu

摘要:

不断增长的模型大小和计算规模吸引了越来越多的兴趣在多个节点上训练深度学习模型。然而,在云集群上进行培训时,特别是在远程集群上,面临着巨大的挑战。在这项工作中,我们介绍了一个通用的框架,星云-I,协作训练深度学习模型在远程异构集群,之间的连接是低带宽广域网(WAN)。我们以自然语言处理(NLP)为例,展示了Nebula-I在不同训练阶段的工作原理,包括:a)使用两个远程集群预训练多语言模型; b)使用从预训练模型中提取的知识微调机器翻译模型,这些模型贯穿最近最流行的深度学习范式。为了平衡准确性和通信效率,在Nebula-I中,参数有效的训练策略,混合并行计算方法和自适应通信加速技术被联合应用。同时,采用安全策略保证簇内计算和簇间通信的安全性、可靠性和隐私性。Nebula-I使用PaddlePaddle深度学习框架实现,该框架可以支持异构硬件(例如GPU和NPU)上的协作训练。实验表明,该框架可以在保持满意的NLP性能的同时,最大限度地提高训练效率。通过使用Nebula-I,用户可以在云集群上以最小的开发运行大规模的训练任务,并且可以进一步提升现有大型预训练模型的实用性。我们还介绍了跨语言自然语言推理任务的最新成果,这些成果是基于新的学习框架和Nebula-I生成的。

英文摘要:

The ever-growing model size and scale of compute have attracted increasing interests in training deep learning models over multiple nodes. However, when it comes to training on cloud clusters, especially across remote clusters, huge challenges are faced. In this work, we introduce a general framework, Nebula-I, for collaboratively training deep learning models over remote heterogeneous clusters, the connections between which are low-bandwidth wide area networks (WANs). We took natural language processing (NLP) as an example to show how Nebula-I works in different training phases that include: a) pre-training a multilingual language model using two remote clusters; and b) fine-tuning a machine translation model using knowledge distilled from pre-trained models, which run through the most popular paradigm of recent deep learning. To balance the accuracy and communication efficiency, in Nebula-I, parameter-efficient training strategies, hybrid parallel computing methods and adaptive communication acceleration techniques are jointly applied. Meanwhile, security strategies are employed to guarantee the safety, reliability and privacy in intra-cluster computation and inter-cluster communication. Nebula-I is implemented with the PaddlePaddle deep learning framework, which can support collaborative training over heterogeneous hardware, e.g. GPU and NPU. Experiments demonstrate that the proposed framework could substantially maximize the training efficiency while preserving satisfactory NLP performance. By using Nebula-I, users can run large-scale training tasks over cloud clusters with minimum developments, and the utility of existed large pre-trained models could be further promoted. We also introduced new state-of-the-art results on cross-lingual natural language inference tasks, which are generated based upon a novel learning framework and Nebula-I.

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

↑