MiCS:在公有云上训练巨型模型的近线性扩展
MiCS: Near-linear Scaling for Training Gigantic Model on Public Cloud
摘要:
现有的大型模型训练通用框架,即,具有数十亿个参数的密集模型,由于大量的通信开销,无法在具有各种网络条件的云环境中有效地扩展。在本文中,我们提出了MiCS,它最小化通信规模,以降低通信开销。具体地,通过减少通信集合中的参与者的数量,MiCS可以利用异构网络带宽,减少较慢链路上的网络流量,减少用于维持高网络带宽利用率的通信的延迟,并且分摊昂贵的全局梯度同步开销。我们在AWS上的评估表明,MiCS的系统吞吐量高达2.89 $\times$的最先进的大型模型训练系统。MiCS实现了接近线性的扩展效率,最高可达DeepSpeed的1.27 $\times$。MiCS允许我们在512个GPU上训练具有1000亿个参数的专有模型,弱伸缩效率为99.4%,并且它能够在公共云上饱和超过54.5%的理论计算能力,与DGX-A100集群相比,具有更少的GPU内存和更受限制的网络。
英文摘要:
Existing general purpose frameworks for gigantic model training, i.e., dense models with billions of parameters, cannot scale efficiently on cloud environment with various networking conditions due to large communication overheads. In this paper, we propose MiCS, which Minimizes the Communication Scale to bring down communication overhead. Specifically, by decreasing the number of participants in a communication collective, MiCS can utilize heterogeneous network bandwidth, reduce network traffic over slower links, reduce the latency of communications for maintaining high network bandwidth utilization, and amortize expensive global gradient synchronization overhead. Our evaluation on AWS shows that the system throughput of MiCS is up to 2.89$\times$ that of the state-of-the-art large model training systems. MiCS achieves near-linear scaling efficiency, which is up to 1.27$\times$ that of DeepSpeed. MiCS allows us to train a proprietary model with 100 billion parameters on 512 GPUs with 99.4% weak-scaling efficiency, and it is able to saturate over 54.5% theoretical computation power of each GPU on a public cloud with less GPU memory and more restricted networks than DGX-A100 clusters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。