Comet: Fine-grained Computation-communication Overlapping for Mixture-of-Experts

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Shulai, Zheng, Ningxin, Lin, Haibin, Jiang, Ziheng, Bao, Wenlei, Jiang, Chengquan, Hou, Qi, Cui, Weihao, Zheng, Size, Chang, Li-Wen, Chen, Quan, Liu, Xin
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917944424923136
author Zhang, Shulai
Zheng, Ningxin
Lin, Haibin
Jiang, Ziheng
Bao, Wenlei
Jiang, Chengquan
Hou, Qi
Cui, Weihao
Zheng, Size
Chang, Li-Wen
Chen, Quan
Liu, Xin
author_facet Zhang, Shulai
Zheng, Ningxin
Lin, Haibin
Jiang, Ziheng
Bao, Wenlei
Jiang, Chengquan
Hou, Qi
Cui, Weihao
Zheng, Size
Chang, Li-Wen
Chen, Quan
Liu, Xin
contents Mixture-of-experts (MoE) has been extensively employed to scale large language models to trillion-plus parameters while maintaining a fixed computational cost. The development of large MoE models in the distributed scenario encounters the problem of large communication overhead. The inter-device communication of a MoE layer can occupy 47% time of the entire model execution with popular models and frameworks. Therefore, existing methods suggest the communication in a MoE layer to be pipelined with the computation for overlapping. However, these coarse grained overlapping schemes introduce a notable impairment of computational efficiency and the latency concealing is sub-optimal. To this end, we present COMET, an optimized MoE system with fine-grained communication-computation overlapping. Leveraging data dependency analysis and task rescheduling, COMET achieves precise fine-grained overlapping of communication and computation. Through adaptive workload assignment, COMET effectively eliminates fine-grained communication bottlenecks and enhances its adaptability across various scenarios. Our evaluation shows that COMET accelerates the execution of a single MoE layer by $1.96\times$ and for end-to-end execution, COMET delivers a $1.71\times$ speedup on average. COMET has been adopted in the production environment of clusters with ten-thousand-scale of GPUs, achieving savings of millions of GPU hours.
format Preprint
id arxiv_https___arxiv_org_abs_2502_19811
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Comet: Fine-grained Computation-communication Overlapping for Mixture-of-Experts
Zhang, Shulai
Zheng, Ningxin
Lin, Haibin
Jiang, Ziheng
Bao, Wenlei
Jiang, Chengquan
Hou, Qi
Cui, Weihao
Zheng, Size
Chang, Li-Wen
Chen, Quan
Liu, Xin
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Machine Learning
Mixture-of-experts (MoE) has been extensively employed to scale large language models to trillion-plus parameters while maintaining a fixed computational cost. The development of large MoE models in the distributed scenario encounters the problem of large communication overhead. The inter-device communication of a MoE layer can occupy 47% time of the entire model execution with popular models and frameworks. Therefore, existing methods suggest the communication in a MoE layer to be pipelined with the computation for overlapping. However, these coarse grained overlapping schemes introduce a notable impairment of computational efficiency and the latency concealing is sub-optimal. To this end, we present COMET, an optimized MoE system with fine-grained communication-computation overlapping. Leveraging data dependency analysis and task rescheduling, COMET achieves precise fine-grained overlapping of communication and computation. Through adaptive workload assignment, COMET effectively eliminates fine-grained communication bottlenecks and enhances its adaptability across various scenarios. Our evaluation shows that COMET accelerates the execution of a single MoE layer by $1.96\times$ and for end-to-end execution, COMET delivers a $1.71\times$ speedup on average. COMET has been adopted in the production environment of clusters with ten-thousand-scale of GPUs, achieving savings of millions of GPU hours.
title Comet: Fine-grained Computation-communication Overlapping for Mixture-of-Experts
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.19811