IsoMoE: Placement-Invariant Hybrid CPU-GPU MoE Inference with Lossless 12-bit Experts
Hang Gu, Teng Wang, Zhendong Zheng, Qianyu Cheng, Wenqi Lou, Lei Gong, Xi Li, Xuehai Zhou
Abstract
Mixture-of-Experts (MoE) models scale model capacity at low computational cost. Hybrid CPU-GPU inference offloads some experts to the CPU, enabling a single GPU to run MoE models larger than its memory. Expert placement changes with free GPU memory and should only affect speed. However, the greedy decoding outputs of existing hybrid engines change with placement. This is because the two devices use different arithmetic to compute experts. In addition, decoding is limited by CPU memory bandwidth. Lossless compression reduces memory traffic, but the CPU decompresses entropy-coded formats too slowly to keep up with memory reads. To address these challenges, we propose IsoMoE, an efficient hybrid MoE inference system that guarantees that its outputs do not change with expert placement. IsoMoE introduces (i) a GPU expert kernel that bitwise replays the arithmetic of the CPU expert kernel, (ii) a memory layout that allows the CPU to efficiently compute lossless 12-bit experts using AVX-512 dot-product instructions, and (iii) a dual micro-batch pipeline that overlaps CPU and GPU computation without changing the outputs. Experimental results on three MoE models show that IsoMoE produces bitwise identical outputs across different expert placements. It is also faster than the fastest baseline in every setting, achieving an average decoding speedup of 1.26× and a maximum speedup of 1.54×. Our source code is publicly available at https://anonymous.4open.science/r/isomoe-artifact-9C21/.
Create a lesson
Related papers
Ostinato: Fast CPU-GPU MoE Inference for Local Agents via Resident Experts in Every Forward Pass
Shared title terminology · Junning Zhu
IA-MoE: An Intensity-Aware Mixture of Experts for DNN Inference
Shared title terminology · Meiyan Zeng, Sasu Tarkoma, Xiaoli Liu
One-Sided Expert-Parallel All-to-All for Mixture-of-Experts Inference over NVLink
Shared title terminology · Bo Li, Chulian Zhang, Or Biri et al.
Improved (Minimum) Spanning Tree Construction in the HYBRID Model
Shared title terminology · Shoma Hiraoka, Naoki Kitamura, Taisuke Izumi
Analysis of Multi-Client Inference Techniques for Vision-Language-Action Models
Shared title terminology · Stefan de Lasa, Mohammadreza Mofayezi, Gennady Pekhimenko et al.
TideCache: Efficient Hybrid LLM Serving with Transparent Cache Management and Layer-Wise Streaming
Shared title terminology · Jinbin Luo, Xiaozhe Yao, Shang Yang et al.