ZeRO: Memory optimizations Toward Training Trillion Parameter Models

计算机科学 加速 并行计算 零(语言学) 计算 数据并行性 计算机工程 比例(比率) 吞吐量 平行性(语法) 算法 哲学 语言学 物理 量子力学 电信 无线
作者
Samyam Rajbhandari,Jeff Rasley,Olatunji Ruwase,Yuxiong He
标识
DOI:10.1109/sc41405.2020.00024
摘要

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 Turing-NLG, the world's largest language model at the time (17B parameters) with record breaking accuracy.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
佩琪关注了科研通微信公众号
刚刚
CodeCraft应助maozhehai29999采纳,获得10
刚刚
刚刚
dd发布了新的文献求助10
刚刚
li发布了新的文献求助10
刚刚
hah发布了新的文献求助10
刚刚
1秒前
传奇3应助jaeger采纳,获得10
1秒前
2秒前
乐邦詹士完成签到,获得积分10
3秒前
5秒前
诚心的电话完成签到 ,获得积分10
5秒前
ZT发布了新的文献求助20
6秒前
斯文败类应助zzz采纳,获得10
6秒前
6秒前
6秒前
6秒前
圈圈发布了新的文献求助10
7秒前
7秒前
ll完成签到,获得积分10
8秒前
核桃应助星星海采纳,获得30
9秒前
科研通AI6.3应助北林采纳,获得10
9秒前
10秒前
10秒前
李爱国应助wkb采纳,获得10
10秒前
10秒前
果称完成签到,获得积分10
10秒前
洋1发布了新的文献求助10
11秒前
Zlla1024发布了新的文献求助10
11秒前
11秒前
li完成签到,获得积分20
11秒前
12秒前
Luis发布了新的文献求助10
13秒前
火星上的乌龟关注了科研通微信公众号
15秒前
高高薯片给高高薯片的求助进行了留言
15秒前
16秒前
16秒前
17秒前
17秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Environmental Leverage in Times of Climate Crisis: Product Standards, Carbon Border Measures and Preferential Trade Agreements 1000
Matrix Methods in Data Mining and Pattern Recognition 510
Social Skills Improvement System-Rating Scales--Chinese Version 500
Dynamische Polarisation von H-1 und B-11 in (CH-3)-3NBH-3 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7243200
求助须知:如何正确求助?哪些是违规求助? 8867526
关于积分的说明 18705744
捐赠科研通 6917411
什么是DOI,文献DOI怎么找? 3196524
关于科研通互助平台的介绍 2370105
邀请新用户注册赠送积分活动 2171177