WarmServe: 为多LLM服务实现一种多GPU预热
WarmServe: Enabling One-for-Many GPU Prewarming for Multi-LLM Serving
AI总结:
本文提出WarmServe系统,通过基于工作负载预测的多GPU预热技术,减少LLM服务中的尾部时间到第一个令牌(TTFT)并提高请求吞吐量。
摘要:
在共享GPU集群中部署多个模型是提高大型语言模型(LLM)服务资源效率的关键策略。现有多LLM服务系统通过牺牲降级的推理性能,特别是时间到第一个令牌(TTFT)来提高GPU利用率。我们归因于缺乏对未来工作负载特征的认识。相反,最近的分析表明,现实世界中的LLM服务工作负载具有强周期性和长期可预测性。在本文中,我们提出了一种“一为多”GPU预热方法,根据工作负载预测主动将多个模型的参数加载到GPU上。这些预热的权重使系统能够在遇到请求高峰时迅速实例化服务实例。我们设计并实现了WarmServe,一个多LLM服务系统,包含三个关键技术:(1)一个模型放置算法,优化预热决策以最小化跨模型预热干扰;(2)一个KV缓存预留策略,将正在运行GPU上的空闲KV缓存空间重新利用于预热新模型;(3)一个高效的GPU内存切换机制用于张量管理。在真实世界数据集上的评估显示,WarmServe将尾部TTFT减少到比最先进的自动扩展系统高50.8倍,同时支持比GPU共享系统高2.5倍的请求吞吐量。
英文摘要:
Deploying multiple models within shared GPU clusters is a key strategy to improve resource efficiency in large language model (LLM) serving. Existing multi-LLM serving systems improve GPU utilization at the cost of degraded inference performance, particularly time-to-first-token (TTFT). We attribute this degradation to the lack of awareness regarding future workload characteristics. In contrast, recent analyses have shown the strong periodicity and long-term predictability of real-world LLM serving workloads. In this paper, we propose one-for-many GPU prewarming, which proactively loads parameters from multiple models onto GPUs based on workload forecasts. These prewarmed weights enable the system to promptly instantiate serving instances upon encountering request bursts. We design and implement WarmServe, a multi-LLM serving system incorporating three key techniques: (1) a model placement algorithm that optimizes prewarming decisions to minimize cross-model prewarming interference, (2) a KV cache reservation strategy that repurposes idle KV cache space on running GPUs for prewarming new models, and (3) an efficient GPU memory switching mechanism for tensor management. Evaluation on real-world datasets shows that WarmServe reduces tail TTFT by up to 50.8$\times$ compared to the state-of-the-art autoscaling-based system, while supporting up to 2.5$\times$ higher request throughput than the GPU-sharing system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。