HexiScale:在异构硬件上促进大语言模型训练
HexiScale: Facilitating Large Language Model Training over Heterogeneous Hardware
AI总结:
本文提出HexiScale系统,通过异构GPU实现训练计算的灵活分配,提升资源利用效率,实验显示其在不同规模LLM训练中性能优于传统同构和异构系统。
摘要:
训练大语言模型(LLMs)是一个计算密集型任务,通常在具有同构高性能GPU的数据中心中进行。本文探索了一种替代方法,通过在异构GPU上部署训练计算,以实现更好的灵活性和效率。为此,我们提出了一种新的系统HexiScale,能够灵活支持在数据并行、流水线并行和张量模型并行范围内进行不对称划分。我们进一步将不对称划分的训练计算分配到一组异构GPU上形式化为一个约束优化问题,并提出一种高效的层次图划分算法。我们的方法有效将训练计算分配到异构GPU上,充分利用可用的计算能力。我们比较了HexiScale与最先进的同构和异构训练系统的性能。当训练不同规模的LLM(从7B到30B)时,实验结果表明:(i)与最先进的同构基线在同构GPU上运行相比,HexiScale在异构GPU上运行时具有相同理论FLOPS的性能;(ii)与最先进的异构基线在相同异构集群上运行相比,HexiScale的吞吐量提高了1.5倍到2.4倍。
英文摘要:
Training large language models (LLMs) is a computationally intensive task, which is typically conducted in data centers with homogeneous high-performance GPUs. In this paper, we explore an alternative approach by deploying training computations across heterogeneous GPUs to enable better flexibility and efficiency for heterogeneous resource utilization. Toward this end, we propose a novel system, HexiScale, that can flexibly support asymmetric partition of training computations in the scope of data-, pipeline-, and tensor model parallelism. We further formalize the allocation of asymmetric partitioned training computations over a set of heterogeneous GPUs as a constrained optimization problem and propose an efficient hierarchical graph partitioning algorithm. Our approach effectively allocates training computations across heterogeneous GPUs, fully leveraging the available computational power. We compare the performance of HexiScale with state-of-the-art homogeneous and heterogeneous training systems. When training LLMs at different scales (from 7B to 30B), empirical results demonstrate that: (i) compared to state-of-the-art homogeneous baselines running over homogeneous GPUs, HexiScale achieves similar performance when running over heterogeneous GPUs with the same theoretical FLOPS; (ii) compared to state-of-the-art heterogeneous baselines running on the same heterogeneous clusters, HexiScale delivers $1.5\times$ to $2.4\times$ higher throughput.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。