TL;DR
Prism is a multi-LLM serving system that reduces inference costs by up to 2x and improves service-level objective (SLO) attainment by 3.3x. By implementing "cross-model memory coordination," Prism allows multiple models to dynamically share GPU memory in real-time, eliminating the waste associated with idle hardware in long-tailed workloads.
The Challenge: Inefficient LLM Serving
Serving Large Language Models (LLMs) at scale is prohibitively expensive. Current industry standards often involve dedicating specific GPUs to individual models. However, production traces reveal that LLM workloads are highly inefficient under this model.
Analysis of real-world traces shows a "long-tail" distribution: while a few models are highly popular, the vast majority receive infrequent requests and spend significant time idle. This leads to an average compute utilization of only 1.3%. Existing sharing solutions, such as static partitioning or slow model swapping, fail to handle the bursty nature of these requests (as seen in the fluctuating request rates above). Prism addresses this by enabling Model A to instantly "lend" unused memory to Model B during traffic spikes.
Architectural Innovations
Prism introduces three key components to enable fluid GPU sharing:
- kvcached (On-demand Memory Allocation): Prism decouples virtual and physical memory. It reserves a large virtual address space but only maps physical memory pages (e.g., 2MB blocks) when a model actually requires them for its KV cache or weights. This prevents memory from being locked by idle models.
- Fast Model Activation: Prism maintains a pool of "warm" engines and uses parallelized loading across NVLink. This allows an 8B model to be activated in just 0.7 seconds, making rapid model swapping feasible.
- Two-Level Demand-Aware Scheduling:
- Global Scheduler: Uses the KV Pressure Ratio (KVPR) to balance request rates and SLO urgency across the GPU fleet.
- Local Scheduler: Employs the Moore-Hodgson algorithm to prioritize incoming requests based on deadline tightness, maximizing overall SLO attainment.
Workload Characteristics
The researchers validated Prism using traces from Hyperbolic, Novita AI, and Chatbot Arena. These traces highlight the extreme variability in request patterns across different providers.
As shown in the figure above, a large percentage of models exhibit a high Coefficient of Variation (CV), indicating significant burstiness. This high variability further underscores the need for dynamic memory coordination rather than static allocation.
Key Results
- 2x Cost Reduction: Prism achieves 99% SLO attainment using only 16 GPUs for workloads that previously required 32 GPUs with state-of-the-art baselines like MuxServe++.
- 3.3x SLO Improvement: For the same hardware budget, Prism significantly boosts Time-to-First-Token (TTFT) SLO attainment.
- Rapid Activation: 70B parameter models can be activated in 1.5 seconds, up to 7x faster than traditional methods.
- Balanced Utilization: The global scheduler effectively distributes memory pressure, preventing performance-degrading hotspots across the cluster.
Conclusion
Prism demonstrates that the primary bottleneck in multi-LLM serving is memory capacity, not just compute. By providing the "illusion" of high memory availability through virtual management and dynamic coordination, Prism enables significantly more cost-effective and responsive LLM infrastructure.
Summary updated