ZeRO: Memory Optimizations Toward Training Trillion Parameter Models
Samyam Rajbhandari∗, Jeff Rasley111Equal Contributors, Olatunji Ruwase, Yuxiong He {samyamr, jerasley, olruwase,
Abstract
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.
原文 arXiv:1910.02054;中英对照 + 大白话阅读 https://aha.fim.ai/paper/1910.02054v3