arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.05112cs.DC
收藏

一种灵活的、可编程的流水线并行框架,用于高效的DNN训练

A Flexible Programmable Pipeline Parallelism Framework for Efficient DNN Training

Shanghai AI Lab(上海人工智能实验室);Zhejiang University(浙江大学);Shanghai Jiao Tong University(上海交通大学);Tsinghua University(清华大学);Peking University(北京大学)

Lijuan Jiang, Xingjian Qian, Zhenxiang Ma, Zan Zong, Hengjie Li, Chao Yang, Jidong Zhai

AI总结:

本文提出FlexPipe,一个可编程流水线并行框架,通过DSL和自动化调度器实现灵活调度探索,相比Megtron-LM最高加速2.28倍。

摘要:

流水线并行是一种必不可少的分布式并行方法。日益复杂和多样化的DNN模型需要为性能精心定制的流水线调度。然而,现有的实践通常依赖于预定义的调度,每种调度都有其优势,但无法自动适应新兴的模型架构。由于调度空间巨大且多变,探索新颖的高效调度是令人生畏的。此外,由于繁重的编码负担和不断变化的需求,手动实现调度可能具有挑战性。不幸的是,现有框架在自动化调度探索方面存在局限性,并且缺乏灵活性和可控性。本文提出了FlexPipe,一个可编程的流水线并行框架,具有增强的生产力、可编程性、可调试性和易于调优的特点。FlexPipe有两个主要组成部分:一个简洁的领域特定语言(DSL)和一个自动化调度器。FlexPipe能够在广泛的调度类型中,以较小的搜索成本,实现各种并行场景的自动化调度探索。此外,用户可以使用FlexPipe DSL快速开发和定制调度,该DSL在阶段间微批量计算流水线顺序方面体现了灵活的可控性。它还提供了方便的机制,将新操作纳入调度以满足不断变化的需求。我们的评估结果表明,与流行的大规模并行框架Megtron-LM相比,FlexPipe实现了高达2.28倍的性能加速,与最先进的自动化流水线并行框架相比,获得了高达1.49倍的性能加速。

英文摘要:

Pipeline parallelism is an essential distributed parallelism method. Increasingly complex and diverse DNN models necessitate meticulously customized pipeline schedules for performance. However, existing practices typically rely on predefined schedules, each with strengths, but fail to adapt automatically to the emerging model architectures. Exploring novel high-efficiency schedules is daunting due to the enormous and varying schedule space. Besides, manually implementing schedules can be challenging due to the onerous coding burdens and constantly changing needs. Unfortunately, existing frameworks have limitations in automated schedule exploration and lack flexibility and controllability. This paper presents FlexPipe, a programmable pipeline parallelism framework with enhanced productivity, programmability, debuggability, and ease of tuning. FlexPipe has two main components: a succinct domain-specific language (DSL) and an automated scheduler. FlexPipe enables automated schedule exploration for various parallel scenarios within a broad spectrum of schedule types at a small search cost. Besides, users can swiftly develop and customize schedules using the FlexPipe DSL, which embodies flexible controllability in the pipeline order of micro-batch computations over stages. It also provides convenient mechanisms to include new operations in schedules to meet changing demands. Our evaluation results demonstrate that FlexPipe achieves up to 2.28X performance speedup compared to the popular large-scale parallel framework Megtron-LM, and gains up to 1.49X performance speedup compared to the state-of-the-art automated pipeline parallelism framework.

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

↑