NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fiddler: CPU-GPU Orchestration for Fast Inference of Mixture-of-Experts Models

Keisuke Kamahori, Tian Tang, Yile Gu, Kan Zhu, Baris Kasikci

TL;DR

Fiddler is a new orchestration system that makes running massive Mixture-of-Experts (MoE) models possible—and fast—on hardware with limited GPU memory. By dynamically deciding whether to move model weights to the GPU or move data activations to the CPU based on the current workload, Fiddler achieves up to an 11.5x speedup over existing state-of-the-art inference frameworks.

What Problem Does This Paper Address?

Large Language Models (LLMs) using Mixture-of-Experts (MoE) architectures, like Mixtral-8x7B or Grok-1, are incredibly powerful but physically massive. While a standard dense model uses every parameter for every token, an MoE model only activates a small subset of "experts" per token. However, to run inference, you traditionally need enough GPU VRAM to store the entire model—often hundreds of gigabytes—which is far beyond the reach of a single consumer GPU or even a mid-range workstation.

High-level overview of Fiddler's execution strategy based on input size.

Existing solutions generally fall into two camps:

  1. Offloading: Storing weights in CPU RAM and swapping them into the GPU on demand. This is crippled by the slow PCIe bus "bottleneck."
  2. CPU-Inference: Running parts of the model on the CPU. This avoids data transfers but is painfully slow because CPUs lack the massive parallel throughput of GPUs.

The challenge is that neither approach is "one size fits all." A strategy that works for generating a single word (small data) fails miserably during the "prefill" stage when the model processes a long prompt (large data).

Methods

The core innovation of Fiddler is its ability to choose the optimal execution strategy at runtime for every single layer. It uses a latency model to predict which of three scenarios will be fastest:

Fiddler's initialization and execution workflow, highlighting the latency crossover point.
  • Scenario A (GPU Hit): If the required expert is already in GPU memory, run it there.
  • Scenario B (Weight Transfer): If the input size is large (e.g., during prompt prefill), it is faster to move the heavy expert weights to the GPU and let the GPU's high throughput handle the math.
  • Scenario C (Activation Transfer): If the input size is small (e.g., generating a single token), it is actually faster to move the tiny "activation" data to the CPU, run the expert there, and send the result back. This avoids the massive overhead of moving gigabytes of weights over the PCIe bus just to process a few bytes of data.

To make this work, Fiddler includes:

  • Expert Popularity Profiling: It identifies which experts are used most frequently and keeps them permanently in the GPU VRAM to maximize "hits."
  • Custom CPU Kernels: The authors wrote specialized kernels using the AVX512_BF16 instruction set to squeeze maximum performance out of the CPU when it is called into action.

Datasets

The researchers evaluated Fiddler using several prominent MoE models and real-world datasets:

  • Models: Mixtral-8x7B (uncompressed 16-bit) and Phi-3.5-MoE.
  • Data: ShareGPT (conversations between humans and chatbots) was used to profile expert popularity and test realistic inference scenarios.
  • LMSYS-Chat-1M: Used for sensitivity analysis to ensure the system remains robust across different types of user prompts.

Key Insights and Ideas

  • The Crossover Point: The most critical insight is that the "best" hardware for the job changes based on batch size. For a single token, the CPU is "fast enough" and avoids the data transfer tax. For a thousand tokens, the GPU's raw speed justifies the cost of moving the weights.
  • Exploiting "Celebrity" Experts: Routing in MoE models isn't uniform. Some experts are used much more often than others. By keeping these "popular" experts in VRAM, Fiddler significantly reduces the need for any data transfer at all.
  • Heterogeneous Harmony: Instead of treating the CPU as a "backup" for when the GPU runs out of memory, Fiddler treats them as co-processors with distinct strengths (CPU for low-latency/small-data, GPU for high-throughput/large-data).

Key Results

Fiddler consistently outperformed baselines like DeepSpeed-MII and llama.cpp across different hardware environments:

  • Single Batch Inference: 1.26x faster than the best baseline.
  • Long Prefill (Prompts): 1.30x speedup, handling long contexts more gracefully.
  • Beam Search: A massive 11.57x speedup. Beam search increases the effective batch size, which plays perfectly into Fiddler’s dynamic orchestration.
  • Model Agnostic: While primarily tested on Mixtral, it showed a 6.5x average speedup on the smaller Phi-3.5-MoE model compared to DeepSpeed-MII.

Limitations and Future Work

While Fiddler is a major step forward for "local" LLM execution, the authors note some areas for growth:

  • VRAM Minimums: The system assumes that non-expert layers (like the self-attention mechanism) can fit in the GPU memory. For truly gargantuan models on very low-end hardware, this might still be a hurdle.
  • Static Popularity: Currently, expert popularity is determined offline. Future versions could potentially adapt to a specific user's style or a specific document's topics in real-time.
  • Multi-GPU: The current paper focuses on single-GPU setups; extending this orchestration to multiple heterogeneous GPUs (e.g., an NVIDIA card paired with integrated graphics) is a promising next step.

Summary updated

BibTeX
@inproceedings{kamahori2025fiddler,
  author = {Keisuke Kamahori and Tian Tang and Yile Gu and Kan Zhu and Baris Kasikci},
  title = {{Fiddler: CPU-GPU Orchestration for Fast Inference of Mixture-of-Experts Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=N5fVv6PZGz},
}
Figure