Introduction
In the rapidly evolving landscape of Large Language Models (LLMs), providers face a significant challenge in balancing cost-efficiency with user experience. Traditional serving strategies often fall into two categories: autoscaling, which saves costs but introduces high "cold start" latencies as weights load from disk, and GPU sharing, which eliminates loading time but sacrifices the KV cache space necessary for long-context performance.
WarmServe addresses this dilemma by introducing universal GPU workers. These workers act as "warm backups" for multiple models simultaneously by proactively prewarming model weights into unused GPU memory—specifically the slack space typically reserved for the KV cache. By leveraging the high predictability of LLM workloads (approximately 93% accuracy in 5-minute windows), WarmServe achieves up to a 50.8× improvement in time-to-first-token (TTFT) compared to state-of-the-art autoscaling systems.
System Architecture and Methods
WarmServe's architecture is built around a Global Manager and a dynamic GPU Pool, designed to transition seamlessly between idle, universal, and dedicated states.
Proactive Prewarming
The system's core innovation is its prewarming strategy. Instead of reactive loading, WarmServe utilizes the "grace period"—the time when a model instance is scaling down but still processing final requests—to load weights for other models into the unused portions of the KV cache. This "one-for-many" approach allows a single GPU to store weights for several models, ready to transition to a dedicated worker in milliseconds if demand spikes.
Evict-aware Model Placement and Zero-Overhead Switching
To manage these multiple models, WarmServe employs an Evict-aware Model Placement strategy. This ensures that loading one model does not inadvertently displace the prewarmed weights of another. Furthermore, the system utilizes the CUDA Virtual Memory Management (VMM) API to enable Zero-Overhead Memory Switching. This allows the system to remap virtual addresses to physical memory in the background, hiding the latency of page table updates when a model goes "live."
Key Results and Performance
The researchers evaluated WarmServe using real-world production traces (AzureConv and AzureCode) and the Llama2 model series (7B to 70B). Key findings include:
- Dramatic Latency Reduction: WarmServe reduces P99 tail TTFT by up to 50.8× compared to
ServerlessLLM. For a Llama2-70B model, the first token is generated in roughly 665ms, compared to over 20 seconds in traditional systems. - Enhanced Capacity: By avoiding permanent sacrifice of KV cache space, the system handles up to 2.5× more requests than static sharing systems like
MuxServe. - Predictive Efficiency: The "Corrective Seasonal Predictor" (CSP) allows the Global Manager to accurately forecast peak loads, ensuring the most relevant models are prewarmed.
Limitations and Future Work
While WarmServe significantly advances multi-LLM serving, its performance remains sensitive to the accuracy of workload predictions. Unprecedented shifts in user behavior could still trigger cold starts. Additionally, managing physical memory fragmentation across numerous prewarmed models presents a scaling challenge. Future research may explore applying these "one-for-many" techniques to Mixture-of-Experts (MoE) models, where total weight sizes are larger but only a fraction are active per token.
Summary updated