大规模分布式训练中的硬件扩展趋势与收益递减
Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Training
AI总结:
本研究通过实证分析表明,大规模分布式训练中硬件配置与并行化策略的选择至关重要,超过特定规模后次优并行策略或更优,且扩展加速器总数易出现收益递减。
摘要:
近年来神经网络模型能力的显著提升由模型规模、训练数据及相应计算资源的扩展驱动。为开发现代应用(如大型语言模型,LLMs)所需的超大型网络,模型训练需在数万个硬件加速器(如GPU)上分布式进行,要求在大型计算集群中协调计算与通信。本研究表明,硬件配置与并行化策略的审慎考量对模型规模、训练数据及总计算量的有效(即计算与成本高效)扩展至关重要。我们对大规模LLM训练工作负载在不同模型规模、硬件配置及分布式并行化策略下的性能开展了广泛实证研究,结果显示:(1)超过特定规模后,某些分布式通信策略带来的开销会使此前被认为次优的并行化策略变得更优;(2)即便硬件与并行化策略已得到适当优化,为大型模型训练扩展加速器总数仍会迅速产生收益递减,这意味着每增加一单位功率或GPU小时的边际性能较差。
英文摘要:
Dramatic increases in the capabilities of neural network models in recent years are driven by scaling model size, training data, and corresponding computational resources. To develop the exceedingly large networks required in modern applications, such as large language models (LLMs), model training is distributed across tens of thousands of hardware accelerators (e.g. GPUs), requiring orchestration of computation and communication across large computing clusters. In this work, we demonstrate that careful consideration of hardware configuration and parallelization strategy is critical for effective (i.e. compute- and cost-efficient) scaling of model size, training data, and total computation. We conduct an extensive empirical study of the performance of large-scale LLM training workloads across model size, hardware configurations, and distributed parallelization strategies. We demonstrate that: (1) beyond certain scales, overhead incurred from certain distributed communication strategies leads parallelization strategies previously thought to be sub-optimal in fact become preferable; and (2) scaling the total number of accelerators for large model training quickly yields diminishing returns even when hardware and parallelization strategies are properly optimized, implying poor marginal performance per additional unit of power or GPU-hour.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。