TL;DR: WarmServe is a novel multi-LLM serving system that eliminates the "cold-start" latency of loading large models by introducing one-for-many GPU prewarming. By forecasting request bursts and proactively loading multiple models into idle GPU memory, WarmServe reduces tail time-to-first-token (TTFT) by up to 50.8× while maintaining 2.5× higher throughput than traditional GPU-sharing methods.
The Multi-LLM Serving Dilemma
Deploying multiple specialized Large Language Models (LLMs)—such as distinct models for chat, coding, and reasoning—on a shared GPU cluster is a logistical challenge. Providers typically rely on two primary resource management strategies, both of which introduce significant trade-offs:
- Autoscaling: This approach spins up model instances only when traffic spikes, saving costs by keeping GPUs idle when demand is low. However, loading a massive model (e.g., 70 billion parameters) from disk to VRAM takes several seconds. This creates a severe "cold-start" delay, resulting in a painfully slow time-to-first-token (TTFT) for the end user.
- GPU Sharing: To avoid cold starts, systems can keep multiple models loaded on the same GPU simultaneously. Unfortunately, this forces models to compete for limited memory. Specifically, it shrinks the available KV cache—the crucial "scratchpad" memory LLMs use to process long contexts and generate tokens—which severely bottlenecks the system's overall throughput.
The authors of WarmServe identify a critical missed opportunity: real-world LLM workloads are not entirely random. They exhibit strong, predictable periodic patterns (such as daily and weekly cycles). WarmServe exploits this predictability to prepare GPUs before requests arrive.
WarmServe's Architecture and Methods
WarmServe bridges the gap between autoscaling and GPU sharing through a "one-for-many" prewarming architecture. The system relies on four core components:
- Workload Prediction: WarmServe utilizes a Corrective Seasonal Predictor (CSP). By analyzing historical data from previous days and recent time windows, the CSP forecasts peak loads with an impressive 92.7% accuracy.
- One-for-Many Prewarming: Instead of dedicating a GPU to a single model, WarmServe proactively loads the weights of multiple anticipated models into a single GPU’s memory. When a burst of requests arrives for a specific model, the system instantly activates it and evicts the others. Because deleting weights from memory is vastly faster than loading them from disk, the cold start is effectively bypassed.
- Proactive KV Cache Repurposing: This is one of WarmServe's most innovative mechanisms. When a GPU is preparing to spin down an active model due to waning traffic, WarmServe does not wait for the GPU to become completely empty. Instead, it uses the idle KV cache space of the currently running model to background-load the weights for the next predicted model.
- GPU Memory Switching: Leveraging the CUDA Virtual Memory Management (VMM) API, WarmServe maps and unmaps physical memory pages to virtual slots with near-zero overhead. This enables instantaneous swapping between prewarmed models without blocking the underlying inference engine.
Key Insights
- Predictability is the Secret Sauce: While individual user prompts are stochastic, the aggregate "pulse" of a data center is remarkably stable. Leveraging this macro-level predictability allows for proactive, rather than reactive, resource management.
- Eviction > Loading: In high-performance computing, it is almost always more efficient to over-provision memory with preloaded data and prune it later than to wait for a massive data transfer over the PCIe bus during a latency-critical request.
- The KV Cache as a Flexible Buffer: Traditionally, the KV cache is viewed strictly as a performance requirement for sequence generation. WarmServe reimagines it as a temporary storage bin for model weights, maximizing the utility of every byte of VRAM.
- Nested Placement Strategy: To prevent models from interfering with one another during prewarming, WarmServe employs a "disjoint or subset" rule. Models are either placed on entirely different GPUs, or one is completely nested within the other's GPU set, drastically simplifying resource contention.
Experimental Setup and Results
The researchers evaluated WarmServe using four major real-world production traces: AzureConv and AzureCode (from Microsoft’s production services), BurstGPT (capturing highly bursty patterns), and ServeGen. They tested the system under varying memory pressures using the Llama 2 series (7B, 13B, and 70B variants).
The results demonstrate significant performance leaps:
- Massive Latency Reduction: Compared to state-of-the-art autoscaling systems (like ServerlessLLM), WarmServe reduced P99 TTFT by up to 50.8×. For a massive Llama2-70B model, the first token can be generated in approximately 670ms, even when the engine is technically "created on demand."
- Superior Throughput: WarmServe handled 2.5× more requests than GPU-sharing systems (like MuxServe). Once a model is "warmed" and activated, it gains exclusive access to the GPU's memory, allowing for a much larger KV cache and highly efficient batching.
- High Hit Ratio: Even under heavy pressure, the system achieved an 82% prewarming hit ratio, meaning the vast majority of burst requests found their required model already waiting in VRAM.
Limitations and Future Directions
While WarmServe presents a compelling solution, it has limitations. First, there is a physical memory ceiling: as models scale toward 400B+ parameters, the capacity to prewarm multiple models on a single GPU will diminish. Second, while the CSP predictor is highly accurate, it remains vulnerable to prediction outliers or "black swan" viral spikes that defy historical patterns. Finally, the current implementation has a strong hardware dependency, relying heavily on NVIDIA-specific CUDA VMM features; porting this to AMD GPUs or TPUs would require significant engineering effort.
Future work may explore more complex, deep-learning-based predictors and extend the system to manage heterogeneous clusters featuring different generations of GPU hardware.
Summary updated