arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.07857cs.DCcs.AIcs.LGcs.PF
收藏

ZeRO-Infinity:打破GPU内存墙,实现极高规模的深度学习

ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learning

Microsoft(微软)

Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith, Yuxiong He

摘要:

在过去三年中,最大的密集深度学习模型增长了1000倍以上,达到数千亿个参数,而GPU内存仅增长了5倍(16 GB到80 GB)。因此,模型规模的增长主要是通过系统创新来支持的,这些创新允许大型模型适应多个GPU的聚合GPU内存。然而,我们正在接近GPU内存墙。它需要800个NVIDIA V100 GPU才能适应万亿参数模型进行训练,而这样的集群对于大多数数据科学家来说根本无法实现。此外,这种规模的训练模型需要复杂的并行技术组合,这给数据科学家重构模型带来了很大的负担。在本文中,我们介绍了ZeRO-Infinity,这是一种新型的异构系统技术,它利用GPU、CPU和NVMe内存,在不需要模型代码重构的情况下,在有限的资源上实现前所未有的模型规模。与此同时,它实现了出色的训练吞吐量和可扩展性,不受有限的CPU或NVMe带宽的限制。ZeRO-Infinity可以适应具有数十万亿甚至数百万亿参数的模型,用于在当前一代GPU集群上进行训练。它可用于在单个NVIDIA DGX-2节点上微调万亿参数模型,使大型模型更易于访问。在训练吞吐量和可扩展性方面,它在512个NVIDIA V100 GPU上保持了超过25 petaflops(峰值的40%),同时还展示了超线性可扩展性。ZeRO-Infinity的开源实现可通过DeepSpeed获得,DeepSpeed是一个深度学习优化库,使分布式训练变得简单,高效和有效。

英文摘要:

In the last three years, the largest dense deep learning models have grown over 1000x to reach hundreds of billions of parameters, while the GPU memory has only grown by 5x (16 GB to 80 GB). Therefore, the growth in model scale has been supported primarily though system innovations that allow large models to fit in the aggregate GPU memory of multiple GPUs. However, we are getting close to the GPU memory wall. It requires 800 NVIDIA V100 GPUs just to fit a trillion parameter model for training, and such clusters are simply out of reach for most data scientists. In addition, training models at that scale requires complex combinations of parallelism techniques that puts a big burden on the data scientists to refactor their model. In this paper we present ZeRO-Infinity, a novel heterogeneous system technology that leverages GPU, CPU, and NVMe memory to allow for unprecedented model scale on limited resources without requiring model code refactoring. At the same time it achieves excellent training throughput and scalability, unencumbered by the limited CPU or NVMe bandwidth. ZeRO-Infinity can fit models with tens and even hundreds of trillions of parameters for training on current generation GPU clusters. It can be used to fine-tune trillion parameter models on a single NVIDIA DGX-2 node, making large models more accessible. In terms of training throughput and scalability, it sustains over 25 petaflops on 512 NVIDIA V100 GPUs(40% of peak), while also demonstrating super linear scalability. An open source implementation of ZeRO-Infinity is available through DeepSpeed, a deep learning optimization library that makes distributed training easy, efficient, and effective.

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

↑