arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.11469cs.DC
收藏

通过灵活工作负载控制加速异构张量并行

Accelerating Heterogeneous Tensor Parallelism via Flexible Workload Control

Zhigang Wang, Xu Zhang, Ning Wang, Chuanfei Xu, Jie Nie, Zhiqiang Wei, Yu Gu, Ge Yu

AI总结:

针对异构设备与多租户资源争用导致张量并行训练出现落后任务的问题,提出 ZERO-resizing 与轻量迁移结合的 SEMI-migration,在无迁移或无精度损失间自适应均衡工作负载,并在 Colossal-AI 上验证有效。

摘要:

近年来,基于 Transformer 的模型正变得越来越深、越来越大。为获得更好的可扩展性,工业界的一种底层训练方案是将数十亿参数(张量)切分到许多任务中,然后在同构加速器(例如 GPU)上运行。然而,这种专用计算集群在学术界和中型公司中成本高得令人难以承受。一种经济的替代方案是聚合现有异构设备,并在多租户之间共享资源。尽管如此,静态硬件配置和动态资源争用必然会产生落后任务,从而严重拖慢整体训练效率。现有工作的贡献主要是为传统数据并行量身定制的。由于严格的通信和正确性约束,它们无法很好地适用于新的张量并行。在本文中,我们首先提出 ZERO-resizing,这是一种无需任何数据迁移的新型动态工作负载均衡技术。我们通过临时调整核心张量相关计算中涉及矩阵的大小来实时调节工作负载。我们专门设计了数据插补和优先级选择策略,以分别满足正常训练所需的一致性约束并降低精度损失。我们还给出了一种无精度损失的轻量级数据迁移技术,以应对严重异构性。我们最终的 SEMI-migration 解决方案构建在这两种技术之上,能够自适应地区分它们各自的均衡任务,从而在效率和精度上取得全面成功。在具有代表性的 Colossal-AI 平台上进行的大量实验验证了我们所提方案的有效性。

英文摘要:

Transformer-based models are becoming deeper and larger recently. For better scalability, an underlying training solution in industry is to split billions of parameters (tensors) into many tasks and then run them across homogeneous accelerators (e.g., GPUs). However, such dedicated compute cluster is prohibitively expensive in academia and moderate companies. An economic replacement is to aggregate existing heterogeneous devices and share resources among multi-tenants. Nevertheless, static hardware configurations and dynamic resource contention definitely cause straggling tasks, which heavily slows down the overall training efficiency. Existing works feature contributions mainly tailored for traditional data parallelism. They cannot work well for the new tensor parallelism due to strict communication and correctness constraints. In this paper we first present ZERO-resizing, a novel dynamic workload balancing technique without any data migration. We tune workloads in real-time by temporarily resizing matrices involved in core tensor-related computations. We particularly design data imputation and priority selection policies to respectively satisfy consistency constraint required by normal training and reduce the accuracy loss. We also give a lightweight data migration technique without loss of accuracy, to cope with heavy heterogeneity. Our final SEMI-migration solution is built on top of these two techniques and can adaptively distinguish their respective balancing missions, to achieve an overall success in efficiency and accuracy. Extensive experiments on the representative Colossal-AI platform validate the effectiveness of our proposals.

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

↑