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

联合OP和张量融合优化分布式训练的DNN编译

Optimizing DNN Compilation for Distributed Training with Joint OP and Tensor Fusion

Xiaodong Yi, Shiwei Zhang, Lansong Diao, Chuan Wu, Zhen Zheng, Shiqing Fan, Siyu Wang, Jun Yang, Wei Lin

摘要:

本文提出了DisCo,一个用于数据并行分布式训练的自动深度学习编译模块。与大多数专注于在单个设备上进行训练或推理的深度学习编译器不同,DisCo优化了DNN模型,以便在多个GPU机器上进行分布式训练。现有的单设备编译策略在分布式训练中不起作用,主要是由于它们引起的通信效率低下。DisCo生成优化的联合计算算子和通信张量融合策略,以实现高效的分布式训练。构建了一个基于GNN的模拟器,以有效地估计算子/张量融合候选者实现的每次迭代训练时间。回溯搜索算法由模拟器驱动,在大的策略空间中有效地导航,以确定最小化分布式训练时间的良好算子/张量融合策略。我们比较DisCo与现有的DL融合方案,并表明它实现了良好的训练速度接近理想的,充分的计算通信重叠的情况下。

英文摘要:

This paper proposes DisCo, an automatic deep learning compilation module for data-parallel distributed training. Unlike most deep learning compilers that focus on training or inference on a single device, DisCo optimizes a DNN model for distributed training over multiple GPU machines. Existing single-device compilation strategies do not work well in distributed training, due mainly to communication inefficiency that they incur. DisCo generates optimized, joint computation operator and communication tensor fusion strategies to enable highly efficient distributed training. A GNN-based simulator is built to effectively estimate per-iteration training time achieved by operator/tensor fusion candidates. A backtracking search algorithm is driven by the simulator, navigating efficiently in the large strategy space to identify good operator/tensor fusion strategies that minimize distributed training time. We compare DisCo with existing DL fusion schemes and show that it achieves good training speed-up close to the ideal, full computation-communication overlap case.

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

↑