AMP:具有异质性感知的模型并行策略自动发现
AMP: Automatically Finding Model Parallel Strategies with Heterogeneity Awareness
摘要:
模型规模的扩大可以为许多机器学习(ML)任务带来全新的功能。然而,训练大型模型需要强大的分布式系统专业知识来仔细设计适合模型架构和集群设置的模型并行执行策略。在本文中,我们开发了AMP,一个框架,自动得出这样的战略。AMP利用旨在捕获模型和群集规格的异构性的成本模型,确定模型并行策略的有效空间,并高效地搜索高性能策略的空间。与现有方法不同,AMP专门针对支持由不均匀层和具有更多异构加速器和带宽的集群设置组成的复杂模型。我们在公共云的流行模型和集群设置上评估了AMP,并表明AMP返回的并行策略与典型集群设置上的专家调整策略相匹配。在异构群集或具有异构体系结构的模型上,AMP找到的策略的吞吐量分别比最先进的模型并行系统高1.54倍和1.77倍。
英文摘要:
Scaling up model sizes can lead to fundamentally new capabilities in many machine learning (ML) tasks. However, training big models requires strong distributed system expertise to carefully design model-parallel execution strategies that suit the model architectures and cluster setups. In this paper, we develop AMP, a framework that automatically derives such strategies. AMP identifies a valid space of model parallelism strategies and efficiently searches the space for high-performed strategies, by leveraging a cost model designed to capture the heterogeneity of the model and cluster specifications. Unlike existing methods, AMP is specifically tailored to support complex models composed of uneven layers and cluster setups with more heterogeneous accelerators and bandwidth. We evaluate AMP on popular models and cluster setups from public clouds and show that AMP returns parallel strategies that match the expert-tuned strategies on typical cluster setups. On heterogeneous clusters or models with heterogeneous architectures, AMP finds strategies with 1.54x and 1.77x higher throughput than state-of-the-art model-parallel systems, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。