betaFeedback

WorksComputer Science

IsoMoE: Placement-Invariant Hybrid CPU-GPU MoE Inference with Lossless 12-bit Experts

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×\times and a maximum speedup of 1.54×\times. Our source code is publicly available at https://anonymous.4open.science/r/isomoe-artifact-9C21/.

Paper details

vlnc:W_bx4k8m3d
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
arXiv nonexclusive license
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…