Alpa:自动化分布式深度学习的操作员间和操作员内并行性
Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning
摘要:
Alpa通过生成统一数据、运算符和流水线并行的执行计划,自动化大型深度学习(DL)模型的模型并行训练。现有的模型并行训练系统要么需要用户手动创建并行化计划,要么从模型并行配置的有限空间自动生成并行化计划。它们不足以在分布式计算设备上扩展复杂的DL模型。Alpa通过将并行性视为两个层次来分配大型DL模型的训练:操作员间和操作员内并行性。在此基础上,Alpa构造了一种新的面向大规模模型并行执行计划的层次空间。Alpa设计了许多编译通道,以在每个并行级别自动导出高效的并行执行计划。Alpa实现了一个高效的运行时来协调分布式计算设备上的两级并行执行。我们的评估表明,Alpa生成的并行化计划可以匹配或优于手动调整的模型并行训练系统,即使是针对它们设计的模型。与专门的系统不同,Alpa还可以推广到具有异构架构的模型和没有手动设计计划的模型。Alpa的源代码可在https://github.com/alpa-projects/alpa上公开获取
英文摘要:
Alpa automates model-parallel training of large deep learning (DL) models by generating execution plans that unify data, operator, and pipeline parallelism. Existing model-parallel training systems either require users to manually create a parallelization plan or automatically generate one from a limited space of model parallelism configurations. They do not suffice to scale out complex DL models on distributed compute devices. Alpa distributes the training of large DL models by viewing parallelisms as two hierarchical levels: inter-operator and intra-operator parallelisms. Based on it, Alpa constructs a new hierarchical space for massive model-parallel execution plans. Alpa designs a number of compilation passes to automatically derive efficient parallel execution plans at each parallelism level. Alpa implements an efficient runtime to orchestrate the two-level parallel execution on distributed compute devices. Our evaluation shows Alpa generates parallelization plans that match or outperform hand-tuned model-parallel training systems even on models they are designed for. Unlike specialized systems, Alpa also generalizes to models with heterogeneous architectures and models without manually-designed plans. Alpa's source code is publicly available at https://github.com/alpa-projects/alpa
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。