Priority-Aware Preemptive Scheduling for Mixed-Priority Workloads in MoE Inference
Mohammad Siavashi, Faezeh Keshmiri Dindarloo, Dejan Kostic, Marco Chiesa
TL;DR
The paper addresses HOL blocking in LLM MoE inference by introducing QLLM, a system that performs fine-grained preemption at the expert level guided by a priority-aware scheduler. It introduces per-expert queues and unified sequence/batch abstractions with a Unified Dynamic Cache to manage KV caches and state, enabling LS tasks to preempt BE tasks without losing progress. The approach yields dramatic reductions in LS time-to-first-token and turnaround, while preserving throughput, demonstrated on Nvidia A100 hardware with Mixtral 8x7B; it also integrates cleanly with Hugging Face MoE models. The work highlights modularity and extensibility, and discusses limitations such as memory overhead and potential starvation, with plans to release open-source.
Abstract
Large Language Models have revolutionized natural language processing, yet serving them efficiently in data centers remains challenging due to mixed workloads comprising latency-sensitive (LS) and best-effort (BE) jobs. Existing inference systems employ iteration-level first-come-first-served scheduling, causing head-of-line blocking when BE jobs delay LS jobs. We introduce QLLM, a novel inference system designed for Mixture of Experts (MoE) models, featuring a fine-grained, priority-aware preemptive scheduler. QLLM enables expert-level preemption, deferring BE job execution while minimizing LS time-to-first-token (TTFT). Our approach removes iteration-level scheduling constraints, enabling the scheduler to preempt jobs at any layer based on priority. Evaluations on an Nvidia A100 GPU show that QLLM significantly improves performance. It reduces LS TTFT by an average of $65.5\times$ and meets the SLO at up to $7$ requests/sec, whereas the baseline fails to do so under the tested workload. Additionally, it cuts LS turnaround time by up to $12.8\times$ without impacting throughput. QLLM is modular, extensible, and seamlessly integrates with Hugging Face MoE models.
