MPMoE: Memory Efficient MoE for Pre-Trained Models With Adaptive Pipeline Parallelism

计算机科学 并行计算 管道(软件) 平行性(语法) 任务并行性 指令级并行 计算机体系结构 操作系统
作者
Zheng Zhang,Yaqi Xia,H. Wang,Donglin Yang,Chuang Hu,Xiaobo Zhou,Dazhao Cheng
出处
期刊:IEEE Transactions on Parallel and Distributed Systems [Institute of Electrical and Electronics Engineers]
卷期号:35 (6): 998-1011 被引量:4
标识
DOI:10.1109/tpds.2024.3385639
摘要

In recent years, the Mixture-of-Experts (MoE) technique has gained widespread popularity as a means to scale pretrained models to exceptionally large sizes. Dynamic activation of experts allows for conditional computation, increasing the number of parameters of neural networks, which is critical for absorbing the vast amounts of knowledge available in many deep learning areas. However, despite the existing system and algorithm optimizations, there are significant challenges to be tackled when it comes to the inefficiencies of communication and memory consumption. In this paper, we present the design and implementation of MPMoE, a high-performance library that accelerates MoE training with adaptive and memory-efficient pipeline parallelism. Inspired by that the MoE training procedure can be divided into multiple independent sub-stages. We design a pipeline parallelism method for reducing communication latency by overlapping with computation operations. Further, we analyze the memory footprint breakdown of MoE training and identify that activations and temporary buffers are the primary contributors to the overall memory footprint. Toward memory efficiency, we propose memory reuse strategies to reduce memory requirements by eliminating memory redundancies. Finally, to optimize pipeline granularity and memory reuse strategies jointly, we propose a profile-based algorithm and a performance model to determine the configurations of MPMoE at runtime. We implement MPMoE upon PyTorch and evaluate it with common MoE models in two physical clusters, including 64 NVIDIA A100 GPU cards and 16 NVIDIA V100 GPU cards. Compared with the state-of-art approach, MPMoE achieves up to 2.3× speedup while reducing more than 30% memory footprint for training large models.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
yt发布了新的文献求助10
刚刚
dongdadada发布了新的文献求助10
1秒前
kitty发布了新的文献求助10
1秒前
1秒前
2秒前
2秒前
2秒前
海布里的风完成签到,获得积分10
3秒前
Chaoli完成签到,获得积分10
3秒前
黄74185296完成签到,获得积分10
5秒前
maclogos完成签到,获得积分10
5秒前
planA完成签到,获得积分10
6秒前
8秒前
8秒前
yt完成签到,获得积分10
9秒前
可爱的函函应助dongdadada采纳,获得10
10秒前
tian完成签到,获得积分10
10秒前
11秒前
阿也完成签到 ,获得积分10
12秒前
Bob完成签到 ,获得积分10
12秒前
Jasper应助豆豆采纳,获得10
16秒前
火星上白羊完成签到,获得积分10
16秒前
我爱罗完成签到,获得积分10
16秒前
飞虎完成签到,获得积分10
16秒前
17秒前
屠建锋完成签到,获得积分10
17秒前
YL完成签到,获得积分10
18秒前
PMME完成签到,获得积分10
18秒前
19秒前
忧伤的八宝粥完成签到,获得积分0
19秒前
酸奶完成签到,获得积分10
19秒前
19秒前
甜甜圈完成签到,获得积分10
20秒前
樟木头发布了新的文献求助10
20秒前
20秒前
kitty完成签到,获得积分10
20秒前
22秒前
whandzxl发布了新的文献求助10
22秒前
22秒前
123发布了新的文献求助10
23秒前
高分求助中
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小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7232157
求助须知:如何正确求助?哪些是违规求助? 8858345
关于积分的说明 18684836
捐赠科研通 6897916
什么是DOI,文献DOI怎么找? 3191824
关于科研通互助平台的介绍 2361650
邀请新用户注册赠送积分活动 2166227