arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.02390cs.LG
收藏

具有收敛保证的大模型量化分布式训练

Quantized Distributed Training of Large Models with Convergence Guarantees

Institute of Science and Technology Austria(奥地利科学技术研究所);CNRS(法国国家科学研究中心);IRIF(法国信息与自动化研究所);Université Paris Cité(巴黎西岱大学);Max Planck Institute for Informatics(马克斯·普朗克信息学研究所)

Ilia Markov, Adrian Vladu, Qi Guo, Dan Alistarh

摘要:

通信缩减技术是提高深度神经网络(DNN)数据并行训练可扩展性的一种流行方法。最近出现的大语言模型,如GPT,需要新的方法来利用数据并行。其中,全分片数据并行(FSDP)训练非常受欢迎,但它仍然遇到可扩展性瓶颈。一个原因是将压缩技术应用于FSDP具有挑战性:由于绝大多数通信涉及模型的权重,直接压缩会改变收敛并导致精度损失。我们提出了QSDP,FSDP的一个变种,它支持梯度和权重量化与理论保证,是简单的实现,基本上没有开销。为了得到QSDP,我们证明了SGD的自然修改实现收敛,即使我们只保持量化的权重,因此,我们训练的域由量化点组成,因此,高度非凸。我们通过在多节点集群上训练具有多达13亿个参数的GPT系列模型来验证这种方法。实验表明,QSDP保留了模型的准确性,同时完全消除了FSDP的通信瓶颈,提供了高达2.2倍的端到端加速比。

英文摘要:

Communication-reduction techniques are a popular way to improve scalability in data-parallel training of deep neural networks (DNNs). The recent emergence of large language models such as GPT has created the need for new approaches to exploit data-parallelism. Among these, fully-sharded data parallel (FSDP) training is highly popular, yet it still encounters scalability bottlenecks. One reason is that applying compression techniques to FSDP is challenging: as the vast majority of the communication involves the model's weights, direct compression alters convergence and leads to accuracy loss. We present QSDP, a variant of FSDP which supports both gradient and weight quantization with theoretical guarantees, is simple to implement and has essentially no overheads. To derive QSDP we prove that a natural modification of SGD achieves convergence even when we only maintain quantized weights, and thus the domain over which we train consists of quantized points and is, therefore, highly non-convex. We validate this approach by training GPT-family models with up to 1.3 billion parameters on a multi-node cluster. Experiments show that QSDP preserves model accuracy, while completely removing the communication bottlenecks of FSDP, providing end-to-end speedups of up to 2.2x.

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

↑