MoE-Gen: High-Throughput MoE Inference on a Single GPU with Module-Based Batching

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Xu, Tairan, Xue, Leyang, Lu, Zhan, Jackson, Adrian, Mai, Luo
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909536150880256
author Xu, Tairan
Xue, Leyang
Lu, Zhan
Jackson, Adrian
Mai, Luo
author_facet Xu, Tairan
Xue, Leyang
Lu, Zhan
Jackson, Adrian
Mai, Luo
contents This paper presents MoE-Gen, a high-throughput MoE inference system optimized for single-GPU execution. Existing inference systems rely on model-based or continuous batching strategies, originally designed for interactive inference, which result in excessively small batches for MoE's key modules-attention and expert modules-leading to poor throughput. To address this, we introduce module-based batching, which accumulates tokens in host memory and dynamically launches large batches on GPUs to maximize utilization. Additionally, we optimize the choice of batch sizes for each module in an MoE to fully overlap GPU computation and communication, maximizing throughput. Evaluation demonstrates that MoE-Gen achieves 8-31x higher throughput compared to state-of-the-art systems employing model-based batching (FlexGen, MoE-Lightning, DeepSpeed), and offers even greater throughput improvements over continuous batching systems (e.g., vLLM and Ollama) on popular MoE models (DeepSeek and Mixtral) across offline inference tasks. MoE-Gen's source code is publicly available at https://github.com/EfficientMoE/MoE-Gen
format Preprint
id arxiv_https___arxiv_org_abs_2503_09716
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MoE-Gen: High-Throughput MoE Inference on a Single GPU with Module-Based Batching
Xu, Tairan
Xue, Leyang
Lu, Zhan
Jackson, Adrian
Mai, Luo
Distributed, Parallel, and Cluster Computing
Machine Learning
This paper presents MoE-Gen, a high-throughput MoE inference system optimized for single-GPU execution. Existing inference systems rely on model-based or continuous batching strategies, originally designed for interactive inference, which result in excessively small batches for MoE's key modules-attention and expert modules-leading to poor throughput. To address this, we introduce module-based batching, which accumulates tokens in host memory and dynamically launches large batches on GPUs to maximize utilization. Additionally, we optimize the choice of batch sizes for each module in an MoE to fully overlap GPU computation and communication, maximizing throughput. Evaluation demonstrates that MoE-Gen achieves 8-31x higher throughput compared to state-of-the-art systems employing model-based batching (FlexGen, MoE-Lightning, DeepSpeed), and offers even greater throughput improvements over continuous batching systems (e.g., vLLM and Ollama) on popular MoE models (DeepSeek and Mixtral) across offline inference tasks. MoE-Gen's source code is publicly available at https://github.com/EfficientMoE/MoE-Gen
title MoE-Gen: High-Throughput MoE Inference on a Single GPU with Module-Based Batching
topic Distributed, Parallel, and Cluster Computing
Machine Learning
url https://arxiv.org/abs/2503.09716