Archive of AI

Source Snapshot / 2020-02-13-microsoft-deepspeed-zero-2

ZeRO: Memory Optimizations Toward Training Trillion Parameter Models

Linked event: 2020-02-13 · Microsoft Open-Sources DeepSpeed and ZeRO Memory Optimization Framework, Breaking Barriers to Training 10B-to-Trillion-Parameter Models

Publisher
arXiv
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 164359f86622cda6
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

Skip to main content

Press Enter to search · Advanced search

Computer Science > Machine Learning

arXiv:1910.02054 (cs)

[Submitted on 4 Oct 2019 (v1), last revised 13 May 2020 (this version, v3)]

Title:ZeRO: Memory Optimizations Toward Training Trillion Parameter Models

Authors:Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong He

View a PDF of the paper titled ZeRO: Memory Optimizations Toward Training Trillion Parameter Models, by Samyam Rajbhandari and 3 other authors

HTML (experimental)

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.

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.

Machine Learning (cs.LG); Distributed, Parallel, and Cluster Computing (cs.DC); Machine Learning (stat.ML)

arXiv:1910.02054 [cs.LG]

arXiv:1910.02054v3 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.1910.02054

Focus to learn more

arXiv-issued DOI via DataCite

Submission history

From: Jeff Rasley [view email] [v1]

Fri, 4 Oct 2019 17:29:39 UTC (110 KB) (withdrawn)

Mon, 7 Oct 2019 16:55:13 UTC (110 KB)

Wed, 13 May 2020 06:45:15 UTC (632 KB)

Full-text links:

Access Paper:

view license

Current browse context:

Change to browse by:

References & Citations

Google Scholar

Semantic Scholar

3 blog links

(what is this?)

DBLP - CS Bibliography

listing | bibtex

Samyam RajbhandariYuxiong He

export BibTeX citation

BibTeX formatted citation

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

IArxiv recommender toggle

IArxiv Recommender

(What is IArxiv?)

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? |

Disable MathJax (What is MathJax?)