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

HexiSeq: 适配长上下文训练的LLM异构硬件支持

HexiSeq: Accommodating Long Context Training of LLMs over Heterogeneous Hardware

The Hong Kong University of Science and Technology(香港科技大学);The University of Hong Kong(香港大学)

Yan Liang, Youhe Jiang, Ran Yan, Binhang Yuan, Wei Wang, Chuan Wu

AI总结:

HexiSeq通过异构GPU集群的计算、内存和通信能力分配,实现非对称CP-HP分区,提升长上下文LLM训练吞吐量,实验显示在混合H100-A100和模拟集群中性能提升达1.11至1.72倍。

摘要:

大型语言模型(LLM)的长上下文训练通常通过上下文并行(CP)和头部并行(HP)进行分布式训练,但现有训练系统大多假设同构GPU网格。本文扩展CP和HP以适应异构GPU集群,其中包含混合GPU型号和非均匀网络带宽,这是生产训练中的常见设置。我们引入HexiSeq系统,通过根据设备计算、内存和通信能力分配序列分片和注意力头,支持完全非对称的CP-HP分区。我们将异构CP-HP分配形式化为一个约束优化问题,并开发一个高效的分层调度器来寻找最优调度方案。我们在真实和模拟的异构集群上评估HexiSeq,与最先进的CP和HP基线进行比较。在从3B到70B参数和上下文长度达一百万token的模型上,HexiSeq平均吞吐量提升1.11倍,在混合H100-A100测试床中最高达1.19倍,在模拟集群中使用32-128台GPU(最多四种GPU型号)时平均提升1.36倍,最高达1.72倍。在FLOP可比的对偶中,HexiSeq在同构集群上达到接近最强同构基线的吞吐量,表明异构集群可以高效用于长上下文LLM训练。

英文摘要:

Long-context training of large language models (LLMs) is commonly distributed with Context Parallelism (CP) and Head Parallelism (HP), but existing training systems largely assume homogeneous GPU meshes. This paper extends CP and HP to heterogeneous GPU clusters with mixed GPU models and non-uniform network bandwidths, a common setting in production training. We introduce HexiSeq, a system that supports fully asymmetric CP--HP partitioning by assigning sequence shards and attention heads according to device compute, memory, and communication capabilities. We formalize heterogeneous CP--HP allocation as a constrained optimization problem and develop an efficient hierarchical scheduler for finding optimal schedules. We evaluate HexiSeq against state-of-the-art CP and HP baselines on both real and simulated heterogeneous clusters. Across models from 3B to 70B parameters and context lengths up to one million tokens, HexiSeq improves throughput by $1.11\times$ on average and up to $1.19\times$ on mixed H100--A100 testbeds, and by $1.36\times$ on average and up to $1.72\times$ in simulations with 32--128 GPUs spanning up to four GPU models. On FLOP-comparable pairs against homogeneous clusters, HexiSeq reaches throughput close to the strongest homogeneous baseline, showing that heterogeneous clusters can be used efficiently for long-context LLM training.

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

↑