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

Piper: 可编程的分布式训练系统

Piper: A Programmable Distributed Training System

University of Washington(华盛顿大学);University of Washington and Shanghai Jiao Tong University(华盛顿大学和上海交通大学)

Megan Frisella, Shubham Tiwari, Andy Ruan, Yi Pan, Parker Gustafson, Mat Jacob, Gilbert Bernstein, Stephanie Wang

AI总结:

提出Piper系统,通过解耦策略与运行时实现,允许用户用少量注解和调度指令声明分布式训练策略,并编译为设备执行计划,支持常见策略并实现组合策略的联合调度优化。

摘要:

大规模模型训练日益依赖于组合多种并行策略(如数据、流水线和专家并行)以及内存节省优化(如ZeRO)。用于基础模型预训练的部署系统通常依赖人类专家手动设计高层并行策略,然后实现相应的低层执行策略,这使得系统难以适应新策略。同时,许多通用框架更加灵活,但其实现仍然局限于一组固定的常见并行策略,使得整合最新策略具有挑战性。我们提出Piper,一个用户可控的分布式训练系统,将策略与运行时实现解耦。Piper允许用户通过少量模型注解和调度指令声明全面的分布式训练策略。每条指令对Piper的中间表示(IR)应用变换,IR是一个统一的全局训练DAG,表示所有计算和通信。使用此IR,Piper编译每设备执行计划,并使用与策略无关的分布式运行时执行它们。我们表明,该组合系统在常见策略(如ZeRO)上保持性能一致,同时通过组合并行策略(如DeepSeek-V3的DualPipe)中计算和通信的联合调度,实现额外的性能和内存效率提升。

英文摘要:

Large-scale model training increasingly relies on composing multiple parallelism strategies, such as data, pipeline, and expert parallelism, together with memory-saving optimizations like ZeRO. Deployed systems for foundation model pretraining often rely on human experts to manually design a high-level parallelism strategy then implement the corresponding low-level execution strategy, making it difficult to adapt the system to new strategies. Meanwhile, many general-purpose frameworks are more flexible but their implementations are still tied to a fixed set of common parallelism strategies, making it challenging to integrate state-of-the-art strategies. We present Piper, a user-controllable distributed training system that decouples the strategy from the runtime implementation. Piper allows users to declare a comprehensive distributed training strategy with a small set of model annotations and scheduling directives. Each directive applies a transformation on Piper's intermediate representation (IR), a unified global training DAG that represents all computation and communication. Using this IR, Piper compiles per-device execution plans and executes them with a distributed runtime agnostic to the strategy. We show that the combined system maintains performance parity on commonly available strategies such as ZeRO, while also enabling additional performance and memory efficiency gains through joint scheduling of compute and communication in composed parallelism strategies such as DeepSeek-V3's DualPipe.

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

↑