Saved in:
Bibliographic Details
Main Authors: Wu, Yongji, Qu, Wenjie, Liu, Xueshen, Tao, Tianyang, Qiao, Yifan, Wang, Zhuang, Bai, Wei, Tian, Yuan, Zhang, Jiaheng, Mao, Z. Morley, Lentz, Matthew, Zhuo, Danyang, Stoica, Ion
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.04656
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918168332599296
author Wu, Yongji
Qu, Wenjie
Liu, Xueshen
Tao, Tianyang
Qiao, Yifan
Wang, Zhuang
Bai, Wei
Tian, Yuan
Zhang, Jiaheng
Mao, Z. Morley
Lentz, Matthew
Zhuo, Danyang
Stoica, Ion
author_facet Wu, Yongji
Qu, Wenjie
Liu, Xueshen
Tao, Tianyang
Qiao, Yifan
Wang, Zhuang
Bai, Wei
Tian, Yuan
Zhang, Jiaheng
Mao, Z. Morley
Lentz, Matthew
Zhuo, Danyang
Stoica, Ion
contents Sparsely-activated Mixture-of-Experts (MoE) architecture has increasingly been adopted to further scale large language models (LLMs). However, frequent failures still pose significant challenges as training scales. The cost of even a single failure is significant, as all GPUs need to idle wait until the failure is resolved, potentially losing considerable training progress as training has to restart from checkpoints. This problem is exacerbated by the growing use of spot instances on public clouds for model training, which despite offering substantial cost savings, introduce frequent preemptions-essentially failures that regularly occur throughout the training process. Existing solutions for efficient fault-tolerant training either lack elasticity or rely on building resiliency into pipeline parallelism, which cannot be applied to MoE models due to the expert parallelism strategy adopted by the MoE architecture. We present Lazarus, a system for resilient and elastic training of MoE models. Lazarus adaptively allocates expert replicas to address the inherent imbalance in expert workload and speeds up training, while a provably optimal expert placement algorithm is developed to maximize the probability of recovery upon failures. Through adaptive expert placement and a flexible token dispatcher, Lazarus can also fully utilize all available nodes after failures, leaving no GPU idle. Our evaluation shows that Lazarus outperforms existing MoE training systems by up to 5.7x under frequent node failures and 3.4x on a real spot instance trace.
format Preprint
id arxiv_https___arxiv_org_abs_2407_04656
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Lazarus: Resilient and Elastic Training of Mixture-of-Experts Models
Wu, Yongji
Qu, Wenjie
Liu, Xueshen
Tao, Tianyang
Qiao, Yifan
Wang, Zhuang
Bai, Wei
Tian, Yuan
Zhang, Jiaheng
Mao, Z. Morley
Lentz, Matthew
Zhuo, Danyang
Stoica, Ion
Distributed, Parallel, and Cluster Computing
Machine Learning
Sparsely-activated Mixture-of-Experts (MoE) architecture has increasingly been adopted to further scale large language models (LLMs). However, frequent failures still pose significant challenges as training scales. The cost of even a single failure is significant, as all GPUs need to idle wait until the failure is resolved, potentially losing considerable training progress as training has to restart from checkpoints. This problem is exacerbated by the growing use of spot instances on public clouds for model training, which despite offering substantial cost savings, introduce frequent preemptions-essentially failures that regularly occur throughout the training process. Existing solutions for efficient fault-tolerant training either lack elasticity or rely on building resiliency into pipeline parallelism, which cannot be applied to MoE models due to the expert parallelism strategy adopted by the MoE architecture. We present Lazarus, a system for resilient and elastic training of MoE models. Lazarus adaptively allocates expert replicas to address the inherent imbalance in expert workload and speeds up training, while a provably optimal expert placement algorithm is developed to maximize the probability of recovery upon failures. Through adaptive expert placement and a flexible token dispatcher, Lazarus can also fully utilize all available nodes after failures, leaving no GPU idle. Our evaluation shows that Lazarus outperforms existing MoE training systems by up to 5.7x under frequent node failures and 3.4x on a real spot instance trace.
title Lazarus: Resilient and Elastic Training of Mixture-of-Experts Models
topic Distributed, Parallel, and Cluster Computing
Machine Learning
url https://arxiv.org/abs/2407.04656