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

Tangram: 隐藏GPU异构性以实现高效的大语言模型并行化

Tangram: Hiding GPU Heterogeneity for Efficient LLM Parallelization

Imperial College London(帝国理工学院)

Yanda Tao, Pedro F. Silvestre, Marcel Wagenländer, Peter Pietzuch

AI总结:

提出Tangram系统,通过将并行化规划与GPU异构性解耦,利用同构GPU岛和模型切片组合成工作平衡流水线,实现现有异构不可知并行化器在异构集群中的高效使用,训练吞吐量提升高达2.3倍。

摘要:

大语言模型训练任务的规模要求在大型GPU集群上进行并行化规划。由于随着时间的推移添加了不同类型的GPU和互连,这些GPU集群日益异构化。自动的大语言模型并行化器可以搜索并行化方案,但在异构GPU上面临爆炸式搜索空间。为了在异构GPU集群中使搜索易于处理,并行化器常常省略并行化类型(例如专家并行)或内存节省技术(例如ZeRO),这导致方案更差。我们描述了Tangram,一个通过将并行化规划与GPU异构性解耦,使得现有的异构不可知的大语言模型并行化器能够在异构GPU集群中使用的系统。为此,Tangram利用了两种洞察:(1) 由于批量购买导致具有相似计算、内存和连接性的GPU集合,Tangram可以将这样的同构GPU岛暴露给现有的并行化器;(2) 并行化器通常首先划分模型,然后并行化分区。Tangram可以将分配给GPU岛的模型切片组合成工作平衡的流水线,以实现高吞吐量。Tangram通过一个窄API与现有并行化器集成,该API依赖于模型切片/岛屿对的枚举。Tangram比当前的异构并行化器(Metis和Sailor)实现了高达2.3倍的训练吞吐量,并通过剪枝枚举方案扩展到大型GPU集群。

英文摘要:

The scale of LLM training jobs requires parallelization planning over large GPU clusters. Due to different GPU types and interconnects added over time, these GPU clusters are increasingly heterogeneous. Automatic LLM parallelizers can search for parallelization plans but face an exploding search space with heterogeneous GPUs. To make search tractable in heterogeneous GPU clusters, parallelizers often omit types of parallelism (e.g., expert parallelism) or memory-saving techniques (e.g., ZeRO), which results in worse plans. We describe Tangram, a system that enables the use of existing heterogeneity-unaware LLM parallelizers in heterogeneous GPU clusters by decoupling parallelization planning from GPU heterogeneity. For this, Tangram exploits two insights: (1) since bulk purchases result in sets of GPUs with similar compute, memory, and connectivity, Tangram can expose such homogeneous GPU islands to existing parallelizers; and (2) parallelizers commonly first partition models and then parallelize partitions. Tangram can compose such model slices, assigned to GPU islands, into work-balanced pipelines for high throughput. Tangram integrates with existing parallelizers through a narrow API, which relies on the enumeration of model-slice/island pairs. Tangram achieves up to 2.3x higher training throughput than current heterogeneous parallelizers (Metis and Sailor) and scales to large GPU clusters by pruning enumerated plans.

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

↑