FloE: On-the-Fly MoE Inference on Memory-constrained GPU

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhou, Yuxin, Li, Zheng, Zhang, Jun, Wang, Jue, Wang, Yiping, Xie, Zhongle, Chen, Ke, Shou, Lidan
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912369756602368
author Zhou, Yuxin
Li, Zheng
Zhang, Jun
Wang, Jue
Wang, Yiping
Xie, Zhongle
Chen, Ke
Shou, Lidan
author_facet Zhou, Yuxin
Li, Zheng
Zhang, Jun
Wang, Jue
Wang, Yiping
Xie, Zhongle
Chen, Ke
Shou, Lidan
contents With the widespread adoption of Mixture-of-Experts (MoE) models, there is a growing demand for efficient inference on memory-constrained devices. While offloading expert parameters to CPU memory and loading activated experts on demand has emerged as a potential solution, the large size of activated experts overburdens the limited PCIe bandwidth, hindering the effectiveness in latency-sensitive scenarios. To mitigate this, we propose FloE, an on-the-fly MoE inference system on memory-constrained GPUs. FloE is built on the insight that there exists substantial untapped redundancy within sparsely activated experts. It employs various compression techniques on the expert's internal parameter matrices to reduce the data movement load, combined with low-cost sparse prediction, achieving perceptible inference acceleration in wall-clock time on resource-constrained devices. Empirically, FloE achieves a 9.3x compression of parameters per expert in Mixtral-8x7B; enables deployment on a GPU with only 11GB VRAM, reducing the memory footprint by up to 8.5x; and delivers a 48.7x inference speedup compared to DeepSpeed-MII on a single GeForce RTX 3090 - all with only a 4.4$\%$ - 7.6$\%$ average performance degradation.
format Preprint
id arxiv_https___arxiv_org_abs_2505_05950
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle FloE: On-the-Fly MoE Inference on Memory-constrained GPU
Zhou, Yuxin
Li, Zheng
Zhang, Jun
Wang, Jue
Wang, Yiping
Xie, Zhongle
Chen, Ke
Shou, Lidan
Machine Learning
With the widespread adoption of Mixture-of-Experts (MoE) models, there is a growing demand for efficient inference on memory-constrained devices. While offloading expert parameters to CPU memory and loading activated experts on demand has emerged as a potential solution, the large size of activated experts overburdens the limited PCIe bandwidth, hindering the effectiveness in latency-sensitive scenarios. To mitigate this, we propose FloE, an on-the-fly MoE inference system on memory-constrained GPUs. FloE is built on the insight that there exists substantial untapped redundancy within sparsely activated experts. It employs various compression techniques on the expert's internal parameter matrices to reduce the data movement load, combined with low-cost sparse prediction, achieving perceptible inference acceleration in wall-clock time on resource-constrained devices. Empirically, FloE achieves a 9.3x compression of parameters per expert in Mixtral-8x7B; enables deployment on a GPU with only 11GB VRAM, reducing the memory footprint by up to 8.5x; and delivers a 48.7x inference speedup compared to DeepSpeed-MII on a single GeForce RTX 3090 - all with only a 4.4$\%$ - 7.6$\%$ average performance degradation.
title FloE: On-the-Fly MoE Inference on Memory-constrained GPU
topic Machine Learning
url https://arxiv.org/abs/2505.05950