HarMoEny: Efficient Multi-GPU Inference of MoE Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Doucet, Zachary, Sharma, Rishi, de Vos, Martijn, Pires, Rafael, Kermarrec, Anne-Marie, Balmau, Oana
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912435321962496
author Doucet, Zachary
Sharma, Rishi
de Vos, Martijn
Pires, Rafael
Kermarrec, Anne-Marie
Balmau, Oana
author_facet Doucet, Zachary
Sharma, Rishi
de Vos, Martijn
Pires, Rafael
Kermarrec, Anne-Marie
Balmau, Oana
contents Mixture-of-Experts (MoE) models offer computational efficiency during inference by activating only a subset of specialized experts for a given input. This enables efficient model scaling on multi-GPU systems that use expert parallelism without compromising performance. However, load imbalance among experts and GPUs introduces waiting times, which can significantly increase inference latency. To address this challenge, we propose HarMoEny, a novel solution to address MoE load imbalance through two simple techniques: (i) dynamic token redistribution to underutilized GPUs and (ii) asynchronous prefetching of experts from the system to GPU memory. These techniques achieve a near-perfect load balance among experts and GPUs and mitigate delays caused by overloaded GPUs. We implement HarMoEny and compare its latency and throughput with four MoE baselines using real-world and synthetic datasets. Under heavy load imbalance, HarMoEny increases throughput by 37%-70% and reduces time-to-first-token by 34%-41%, compared to the next-best baseline. Moreover, our ablation study demonstrates that HarMoEny's scheduling policy reduces the GPU idling time by up to 84% compared to the baseline policies.
format Preprint
id arxiv_https___arxiv_org_abs_2506_12417
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle HarMoEny: Efficient Multi-GPU Inference of MoE Models
Doucet, Zachary
Sharma, Rishi
de Vos, Martijn
Pires, Rafael
Kermarrec, Anne-Marie
Balmau, Oana
Distributed, Parallel, and Cluster Computing
Mixture-of-Experts (MoE) models offer computational efficiency during inference by activating only a subset of specialized experts for a given input. This enables efficient model scaling on multi-GPU systems that use expert parallelism without compromising performance. However, load imbalance among experts and GPUs introduces waiting times, which can significantly increase inference latency. To address this challenge, we propose HarMoEny, a novel solution to address MoE load imbalance through two simple techniques: (i) dynamic token redistribution to underutilized GPUs and (ii) asynchronous prefetching of experts from the system to GPU memory. These techniques achieve a near-perfect load balance among experts and GPUs and mitigate delays caused by overloaded GPUs. We implement HarMoEny and compare its latency and throughput with four MoE baselines using real-world and synthetic datasets. Under heavy load imbalance, HarMoEny increases throughput by 37%-70% and reduces time-to-first-token by 34%-41%, compared to the next-best baseline. Moreover, our ablation study demonstrates that HarMoEny's scheduling policy reduces the GPU idling time by up to 84% compared to the baseline policies.
title HarMoEny: Efficient Multi-GPU Inference of MoE Models
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2506.12417