DuetServe: Harmonizing Prefill and Decode for LLM Serving via Adaptive GPU Multiplexing
Abstract
Lay Summary
When you chat with an AI assistant, a powerful computer chip handles your request in two different steps: first it reads your whole question at once, then writes the answer one word at a time. The first step is like a sprint, the second a steady jog—and when one chip does both for many users at once, the two trip over each other, making replies stall and stutter. Today's systems either tolerate this interference or split the steps across separate chips, which stays smooth but leaves costly hardware idle. We built DuetServe, which lets a single chip run both steps at once without them colliding. It divides the chip's processing power into two lanes, but only when it predicts a slowdown coming, otherwise running at full efficiency. In tests, DuetServe handled up to 30% more work on the same hardware while keeping responses fast.