DistSim:大规模混合分布式DNN训练的性能模型
DistSim: A performance model of large-scale hybrid distributed DNN training
AI总结:
针对现有混合并行DNN训练性能评估成本高或覆盖不全的问题,本研究提出基于事件的性能模型DistSim,仅需两节点剖析即可精准预测训练耗时,还可用于搜索最优混合并行策略,实现最高7.37倍的吞吐量提升。
摘要:
随着深度神经网络(DNN)训练工作负载的计算需求不断增长,分布式训练已被广泛采用。被称为混合并行分布式训练的数据、模型与流水线并行策略的组合,被引入以解决大规模模型的部署问题。然而,如何评估混合策略以及每台设备的利用率仍是一项挑战,因为现有研究要么在真实的大规模集群上进行性能剖析,时间与资金成本高昂,要么仅分析特定类型的并行方式,未考虑混合并行的情况。\n在本研究中,我们提出了DistSim——一种基于事件的性能模型,能够以较低的剖析成本准确分析每台设备的计算与通信活动。DistSim根据给定的分布式策略将模型拆解为多个事件,这些事件可在2个节点上完成性能剖析。随后,DistSim利用不同并行策略的层级结构,生成从层级到模型级的计算与通信事件流,最终生成参与训练的每台设备的活动时间线。\n实验结果表明,在多种混合策略设置下,DistSim预测分布式训练批次时间的误差低于4%,预测单台设备活动时间的误差低于5%。我们还提供了DistSim的一个使用场景:自动评估并搜索最优分布式训练策略,找到了一种吞吐量提升最高达7.37倍的混合策略。
英文摘要:
With the ever-increasing computational demand of DNN training workloads, distributed training has been widely adopted. A combination of data, model and pipeline parallelism strategy, called hybrid parallelism distributed training, is imported to tackle the problem of deploying large-scale models. However, how to evaluate the hybrid strategy and the utilization of each device remains a challenge since existing works either profile on a real large-scale cluster with high time and money costs or only analyze a specific type of parallelism without considering the hybrid parallelism. In this work, we proposed DistSim, an event-based performance model to accurately analyze each device's computation and communication activities with low profiling costs. DistDim breaks down the model into events according to the given distributed strategy, which can be profiled on two nodes. Then DistSim leverages the hierarchy of different parallel strategies to generate the computation and communication event-flow from layer level to model level and finally the activity timeline of each device participating in training. Experiment shows that DistSim can reach \revise{<4\%} errors when predicting distributing training batch time and \revise{<5\%} errors when predicting a single device's activity time in various hybrid strategy settings. We also provide a use-case of DistSim, automatically evaluate and search the best distributed training strategy, and find a hybrid strategy with at most $7.37\times$ throughput improvement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。