Holmes:面向具有异构 NIC 环境的跨集群分布式训练
Holmes: Towards Distributed Training Across Clusters with Heterogeneous NIC Environment
AI总结:
针对大型语言模型在异构网络接口卡环境下跨集群训练的难题,提出Holmes训练框架,通过基于NIC特性的智能调度方法和流水线并行技术,显著提升异构环境下的训练效率并实现跨集群扩展。
摘要:
诸如 GPT-3、OPT 和 LLaMA 等大型语言模型(LLMs)在广泛的任务中展现出了卓越的准确性。然而,训练这些模型可能会产生巨大的开销,通常需要数以万计的 GPU 进行数月的连续运行。通常,这种训练在配备同构高速远程直接内存访问(RDMA)网络接口卡(NICs)的专用 GPU 集群中进行。获取和维护此类专用集群极具挑战性。当前的 LLM 训练框架(如 Megatron-LM 和 Megatron-DeepSpeed)主要专注于在同构集群设置内优化训练。在本文中,我们介绍了 Holmes,这是一个用于 LLM 的训练框架,在异构 NIC 环境上采用了精心设计的数据和模型并行策略。我们的主要技术贡献在于一种新颖的调度方法,该方法根据连接的 NIC 特性,智能地将 LLM 训练中不同的计算任务片分配给特定的 GPU 设备组。此外,我们提出的框架利用流水线并行技术,展示了对多个 GPU 集群的可扩展性,即使在不同集群的节点之间没有高速互连的场景下也是如此。我们在异构 NIC 环境中进行了涉及多种场景的综合实验。在大多数情况下,我们的框架展现出的性能水平接近使用同构支持 RDMA 的网络(InfiniBand 或 RoCE)所能达到的水平,显著超过了纯以太网环境中的训练效率。此外,我们验证了我们的框架在异构 NIC 环境中的训练效率方面优于其他主流 LLM 框架,并且可以与它们无缝集成。
英文摘要:
Large language models (LLMs) such as GPT-3, OPT, and LLaMA have demonstrated remarkable accuracy in a wide range of tasks. However, training these models can incur significant expenses, often requiring tens of thousands of GPUs for months of continuous operation. Typically, this training is carried out in specialized GPU clusters equipped with homogeneous high-speed Remote Direct Memory Access (RDMA) network interface cards (NICs). The acquisition and maintenance of such dedicated clusters is challenging. Current LLM training frameworks, like Megatron-LM and Megatron-DeepSpeed, focus primarily on optimizing training within homogeneous cluster settings. In this paper, we introduce Holmes, a training framework for LLMs that employs thoughtfully crafted data and model parallelism strategies over the heterogeneous NIC environment. Our primary technical contribution lies in a novel scheduling method that intelligently allocates distinct computational tasklets in LLM training to specific groups of GPU devices based on the characteristics of their connected NICs. Furthermore, our proposed framework, utilizing pipeline parallel techniques, demonstrates scalability to multiple GPU clusters, even in scenarios without high-speed interconnects between nodes in distinct clusters. We conducted comprehensive experiments that involved various scenarios in the heterogeneous NIC environment. In most cases, our framework achieves performance levels close to those achievable with homogeneous RDMA-capable networks (InfiniBand or RoCE), significantly exceeding training efficiency within the pure Ethernet environment. Additionally, we verified that our framework outperforms other mainstream LLM frameworks under heterogeneous NIC environment in terms of training efficiency and can be seamlessly integrated with them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。