arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.19822cs.DCcs.LG
收藏

JointServe:在内存受限GPU上服务多模型智能体

JointServe: Serving Multi-Model Agents on Memory-Constrained GPUs

Beihang University(北京航空航天大学)

Daijin Hu

AI总结:

JointServe是一种服务系统,通过利用智能体工作负载特性优化权重与KV的内存分配,在内存受限GPU上服务多模型智能体,大幅降低会话完成时间并提升SLO达成率。

摘要:

大语言模型智能体正从调用工具的单模型演变为编排多个能力分布在不同权重中的专家模型的规划器。这一转变打破了当前服务系统的隐性假设:模型工作集能适配GPU内存。在私有和边缘部署典型的内存受限GPU上,朴素的全模型交换会将权重传输与计算串行化,且若无主机支持的KV恢复,切换时会丢弃会话状态。我们提出JointServe,一种将权重分片和KV块视为竞争统一内存预算的驻留对象的服务系统。JointServe利用智能体工作负载的三个结构特性(定向调用、间隙执行、双状态驻留)在模型被调用前做好准备:从调用者自身输出流解析的意图信号在生成过程中触发预取;部分k*驻留减少切换到增量层的操作;抢占式传输调度器通过保证带宽份额保护活跃会话的KV。当工作负载需求变化时,通过预留控制步骤调整权重/KV分配。评估显示,JointServe相比最强的全模型交换基线将会话完成时间降低21.7%,且在所有全模型交换基线均无法完成的崩溃场景中仍可用(存在46倍的差距)。在重放的SWE-bench、tau-bench和OSWorld轨迹上,它将会话完成时间最多降低49%,并将SLO达成率从2.8-24.5%提升至76.8-100%。

英文摘要:

LLM agents are evolving from a single model calling tools to planners that orchestrate multiple expert models whose capabilities live in distinct weights. This shift breaks a hidden assumption of today's serving systems: that the working set of models fits in GPU memory. On the memory-constrained GPUs typical of private and edge deployments, naive whole-model swapping serializes weight transfer with computation and, without host-backed KV restoration, discards session state at a switch. We present JointServe, a serving system that treats weight shards and KV blocks as residency objects competing for one unified memory budget. JointServe exploits three structural properties of agent workloads (directed calls, gapped execution, and dual-state residency) to prepare models before they are called: an intent signal parsed from the caller's own output stream triggers prefetch during generation, partial k* residency reduces switching to incremental layers, and a preemptive transfer scheduler protects live-session KV with a guaranteed bandwidth share. A carve-out control step adjusts the weight/KV allocation as workload demands change. Evaluations show that JointServe reduces session completion time by 21.7% over the strongest whole-model swap baseline and stays usable in a crash regime where every whole-model swap baseline fails to finish (a 46-fold gap). On replayed SWE-bench, tau-bench, and OSWorld traces, it cuts session completion time by up to 49% and lifts SLO attainment from 2.8-24.5% to 76.8-100%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑