随着人工智能社区迈入拥有数十亿参数的大模型时代,分布式训练与推理已成为不可或缺的能力。尽管数据并行、模型并行、序列并行和流水线并行等多种并行策略已在主流硬件上成功应用于流行神经网络,但优化分布式部署方案仍需要大量专业知识和人工投入。此外,现有框架大多只适用于简单的链式结构,难以应对复杂的非线性架构。Mixture-of-experts 和多模态模型具有复杂的多输入多输出(MIMO)及分支丰富的拓扑结构,需要超越现有框架能力的细粒度算子级并行化。我们提出将并行规划形式化为一个使用混合整数规划的调度优化问题。我们提出一种双层求解框架,在最优性与计算效率之间取得平衡,自动生成有效的分布式方案,同时捕捉现代神经网络的异构结构和底层硬件约束。在与 DeepSeek 的 DualPipe 等专家设计策略进行对比的实验中,我们的框架取得了相当或更优的性能,在相同内存约束下将计算气泡减少了一半。该框架的多功能性不仅限于吞吐量优化,还可纳入硬件利用率最大化、内存容量约束以及其他考量或潜在策略。这些能力使我们的解决方案既可作为探索最优并行化策略的有价值研究工具,也可作为面向大规模 AI 部署的实用工业解决方案。
英文摘要:
As the artificial intelligence community advances into the era of large models with billions of parameters, distributed training and inference have become essential. While various parallelism strategies-data, model, sequence, and pipeline-have been successfully implemented for popular neural networks on main-stream hardware, optimizing the distributed deployment schedule requires extensive expertise and manual effort. Further more, while existing frameworks with most simple chain-like structures, they struggle with complex non-linear architectures. Mixture-of-experts and multi-modal models feature intricate MIMO and branch-rich topologies that require fine-grained operator-level parallelization beyond the capabilities of existing frameworks. We propose formulating parallelism planning as a scheduling optimization problem using mixed-integer programming. We propose a bi-level solution framework balancing optimality with computational efficiency, automatically generating effective distributed plans that capture both the heterogeneous structure of modern neural networks and the underlying hardware constraints. In experiments comparing against expert-designed strategies like DeepSeek's DualPipe, our framework achieves comparable or superior performance, reducing computational bubbles by half under the same memory constraints. The framework's versatility extends beyond throughput optimization to incorporate hardware utilization maximization, memory capacity constraints, and other considerations or potential strategies. Such capabilities position our solution as both a valuable research tool for exploring optimal parallelization strategies and a practical industrial solution for large-scale AI deployment.
Quantum-Assisted Automatic Path-Planning for Robotic Quality Inspection in Industry 4.0
TECNALIA, Basque Research and Technology Alliance (BRTA)(TECNALIA,巴斯克研究与技术联盟);Department of Mechanical, Energy and Management Engineering, University of Calabria(机械、能源与管理工程系,卡拉布里亚大学)
Improving Automatic Parallel Training via Balanced Memory Workload Optimization
Key Lab of High Confidence Software Technologies (MOE), Peking University(北京大学高可信软件技术重点实验室(教育部));Computer Science Department of Carnegie Mellon University(卡内基梅隆大学计算机科学系);ZTE company(中兴公司);Institute of Computational Social Science, Peking University (Qingdao)(北京大学(青岛)计算社会科学研究院)
HYPPO: A Surrogate-Based Multi-Level Parallelism Tool for Hyperparameter Optimization
Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);University of Minnesota Twin Cities(明尼苏达大学双城分校);Georgia Institute of Technology(佐治亚理工学院);Emory University(埃默里大学);Virginia Commonwealth University(弗吉尼亚联邦大学);Swarthmore College(斯沃斯莫尔学院);National Renewable Energy Laboratory(国家可再生能源实验室)
A learning-driven automatic planning framework for proton PBS treatments of H&N cancers
Department of Radiation Medicine and Applied Sciences, University of California at San Diego(放射医学与应用科学系,加州大学圣地亚哥分校);Amazon Inc.(亚马逊公司);California Protons Cancer Therapy Center(加利福尼亚质子癌症治疗中心)