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

Ada-Grouper:利用自适应微批分组调度加速抢占网络中的流水线并行

Ada-Grouper: Accelerating Pipeline Parallelism in Preempted Network by Adaptive Group-Scheduling for Micro-Batches

Siyu Wang, Zongyan Cao, Chang Si, Lansong Diao, Jiamang Wang, Wei Lin

摘要:

流水线并行已被证明是一种显著的方法,可以提高在异构集群上训练具有数十亿参数的深度神经网络的吞吐量。1F 1B调度计划是一种广泛采用的内存和性能优化策略,它交换了不同微批的前向和后向阶段计算。另一方面,在使用1F 1B调度时的常见问题是,当网络资源被其他任务抢占时,即使级之间的通信最小,由于数据传输,级计算也会延迟。在云产品中无法保证对这些网络资源的独占访问。我们提出了一个通用的调度技术,以适应流水线并行抢占网络环境的代价一定量的内存压力。其核心思想是将1F 1B调度方案扩展到kFkB,将k个微批分组,交替执行k个前向和后向计算。我们提出Ada-Grouper,一个自适应kFkB调度器,定期调整组成员的数量k,以保持通信和计算效率之间的最佳平衡,对应于在不断变化的网络环境下的内存限制的变化。实验结果表明,我们的设计保持稳定的性能流水线并行,产生的性能提高了4%到30%,相比1F 1B抢占网络的情况。

英文摘要:

Pipeline parallelism has been demonstrated to be a remarkable approach to improve throughput for training deep neural networks with billions of parameters over heterogeneous clusters. The 1F1B scheduling plan is a widely adopted strategy for memory and performance optimization, which interchanges the forward and backward stage computations of different micro-batches. On the other hand, a common issue in using the 1F1B scheduling is that stage computation is delayed due to the data transfer when network resources are preempted by other tasks, even with the minimum communication between stages. The exclusive access of these network resources cannot be guaranteed in cloud offerings. We present a general scheduling technique to accommodate pipeline parallelism to preempted network environments at the expense of a certain amount of memory pressure. The core concept is to extend 1F1B schedule scheme to kFkB, which groups k micro-batches, and alternately executes k forward and backward computations. We propose Ada-Grouper, an adaptive kFkB scheduler which regularly adjusts the number of group members k to maintain an optimal balance between communication and computation efficiency correspond to changes in a changing network environment under the memory limit. Experimental results demonstrate that our design maintain stable performance for pipeline parallelism, yielding a performance increase of up from 4% to 30%, compared with 1F1B in preempted network scenarios.

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

↑