Large deep learning models offer significant accuracy gains, but training billions to trillions of parameters is challenging. Existing solutions such as data and model parallelisms exhibit fundamental limitations to fit these models into limited device memory, while obtaining computation, communication and development efficiency. We develop a novel solution, Zero Redundancy Optimizer (ZeRO), to optimize memory, vastly improving training speed while increasing the model size that can be efficiently trained. ZeRO eliminates memory redundancies in data- and model-parallel training while retaining low communication volume and high computational granularity, allowing us to scale the model size proportional to the number of devices with sustained high efficiency. Our analysis on memory requirements and communication volume demonstrates: ZeRO has the potential to scale beyond 1 Trillion parameters using today's hardware.
We implement and evaluate ZeRO: it trains large models of over 100B parameter with super-linear speedup on 400 GPUs, achieving throughput of 15 Petaflops. This represents an 8x increase in model size and 10x increase in achievable performance over state-of-the-art. In terms of usability, ZeRO can train large models of up to 13B parameters (e.g., larger than Megatron GPT 8.3B and T5 11B) without requiring model parallelism which is harder for scientists to apply. Last but not the least, researchers have used the system breakthroughs of ZeRO to create the world's largest language model (Turing-NLG, 17B parameters) with record breaking accuracy.
Democratizing Clinical Tumor Whole Genome Sequencing: 18-hour End-to-end Analysis via Trillion-parameter Large Language Models Locally Deployed on Consumer-grade Hardware
基于深度学习的模型已经主导了生产推荐系统的当前景观。此外,近年来,模型规模呈指数级增长-从谷歌2016年的10亿参数模型到最新的Facebook模型,拥有12万亿参数。模型容量的每一次跳跃都带来了显著的质量提升,这让我们相信100万亿参数的时代即将到来。然而,即使在工业规模的数据中心内,这种模型的训练也具有挑战性。这种困难来自于训练计算的惊人异质性-模型的嵌入层可能包括总模型大小的99.99%以上,这是非常内存密集型的;而其余的神经网络则越来越计算密集型。为了支持如此庞大的模型的训练,迫切需要一个高效的分布式训练系统。在本文中,我们解决了这一挑战,仔细共同设计的优化算法和分布式系统架构。具体而言,为了保证训练效率和训练精度,设计了一种新的混合训练算法,其中嵌入层和密集神经网络采用不同的同步机制;然后构建了一个支持该混合训练算法的并行推荐训练系统Persia(parallel recommendation training system with hybrid acceleration)。理论论证和实证研究多达100万亿的参数进行了论证的制度设计和实施的波斯。我们公开了Persia(在https://github.com/PersiaML/Persia),这样任何人都可以轻松地训练一个100万亿参数规模的推荐模型。
Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarking
Department of Electrical and Computer Engineering, University of Minnesota(明尼苏达大学电气与计算机工程系);Peking University(北京大学);School of Mathematics and Statistics, University of Sydney(悉尼大学数学与统计学学院)
Stochastic Dimension Zeroth-Order Estimator: Stable and Memory-Efficient Training of PINNs
Tianjin University National Center for Applied Mathematics(天津大学应用数学中心);Jilin University School of Mechanical and Aerospace Engineering(吉林大学机械与 aerospace 工程学院)
On-Device Fine-Tuning via Backprop-Free Zeroth-Order Optimization
Institute for Intelligent Networked Systems, Northeastern University London(智能网络系统研究所,东北大学伦敦分校);Department of Engineering, King’s College London(工程系,伦敦大学国王学院)
Associative Memory and Generative Diffusion in the Zero-noise Limit
Computational & Systems Biology, Sloan Kettering Institute, Memorial Sloan Kettering Cancer Center(计算生物学与系统生物学,斯隆凯特灵研究所,纪念斯隆凯特灵癌症中心);Tri-Institutional Training Program in Computational Biology & Medicine(计算生物学与医学三机构联合培训计划)