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

OSDP:面向分布式深度学习的最优分片数据并行

OSDP: Optimal Sharded Data Parallel for Distributed Deep Learning

Youhe Jiang, Fangcheng Fu, Xupeng Miao, Xiaonan Nie, Bin Cui

AI总结:

提出OSDP自动化并行训练系统,结合数据与模型并行优势,通过权衡内存与硬件利用率自动生成计算图,并引入算子拆分降低峰值内存,实现更高吞吐量,在多种大规模模型上优于现有方法。

摘要:

大规模深度学习模型为各种下游任务带来了显著的性能提升。当前的数据并行和模型并行方法利用模型复制和分区技术来支持超大规模模型的分布式训练。然而,由于复杂的模型架构和严格的设备内存限制,直接部署这些系统往往导致训练效率次优。在本文中,我们提出了最优分片数据并行(OSDP),这是一种结合了数据并行和模型并行优势的自动化并行训练系统。给定模型描述和设备信息,OSDP在内存消耗和硬件利用率之间进行权衡,从而自动生成分布式计算图并最大化系统整体吞吐量。此外,OSDP引入了算子拆分技术,以极小的开销进一步缓解训练期间的峰值内存占用,这使得训练更大模型成为可能,并提高了吞吐量。OSDP在多种不同类型的大规模模型上的大量实验结果表明,所提出的策略在多个方面优于现有最先进的方法。代码可在 https://github.com/Youhe-Jiang/OptimalShardedDataParallel 获取。

英文摘要:

Large-scale deep learning models contribute to significant performance improvements on varieties of downstream tasks. Current data and model parallelism approaches utilize model replication and partition techniques to support the distributed training of ultra-large models. However, directly deploying these systems often leads to sub-optimal training efficiency due to the complex model architectures and the strict device memory constraints. In this paper, we propose Optimal Sharded Data Parallel (OSDP), an automated parallel training system that combines the advantages from both data and model parallelism. Given the model description and the device information, OSDP makes trade-offs between the memory consumption and the hardware utilization, thus automatically generates the distributed computation graph and maximizes the overall system throughput. In addition, OSDP introduces operator splitting to further alleviate peak memory footprints during training with negligible overheads, which enables the trainability of larger models as well as the higher throughput. Extensive experimental results of OSDP on multiple different kinds of large-scale models demonstrate that the proposed strategy outperforms the state-of-the-art in multiple regards. Our code is available at https://github.com/Youhe-Jiang/OptimalShardedDataParallel.

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

↑