Scepsy通过统计分析提升多模型智能体工作流的部署效率。
Scepsy: Serving Agentic Workflows Using Aggregate LLM Pipelines

- 基于各LLM执行时间占比稳定,构建聚合流水线预测资源需求。
- 实测比独立优化系统吞吐高2.4倍,延迟低27倍。
- 适合需要高效调度复杂多模型任务的研发团队使用。
智能体工作流通过编排多个大语言模型(LLMs)和工具完成复杂任务。在保持目标吞吐量的同时实现低延迟服务极具挑战性,因为这些工作流可采用任意智能体框架,且执行时间具有数据依赖性,可能产生分支、分叉或递归。由于工作流中的LLM数量常超过可用GPU数,导致GPU超分配。我们提出Scepsy,一种新型智能体服务系统,可高效将任意多LLM智能体工作流调度到GPU集群上。Scepsy利用关键洞察:尽管智能体工作流的整体延迟不可预测,但每个LLM的总执行时间占比在不同运行中相对稳定。系统首先在不同并行度下对LLM进行性能剖析,据此构建轻量级的聚合LLM流水线——一种用于资源分配的延迟/吞吐预测器。为找到满足目标吞吐量且延迟最低的GPU分配方案,Scepsy利用该流水线在分数型GPU份额、张量并行度和副本数构成的搜索空间中进行探索。采用分层启发式策略将最优分配放置于GPU集群,最小化碎片化并遵守网络拓扑约束。我们在真实智能体工作流上的评估表明,Scepsy相比独立优化或依赖用户指定分配的系统,吞吐量最高提升2.4倍,延迟降低27倍。
原文摘要 · Abstract (English)
Agentic workflows carry out complex tasks by orchestrating multiple large language models (LLMs) and tools. Serving such workflows at a target throughput with low latency is challenging because they can be defined using arbitrary agentic frameworks and exhibit unpredictable execution times: execution may branch, fan-out, or recur in data-dependent ways. Since LLMs in workflows often outnumber available GPUs, their execution also leads to GPU oversubscription. We describe Scepsy, a new agentic serving system that efficiently schedules arbitrary multi-LLM agentic workflows onto a GPU cluster. Scepsy exploits the insight that, while agentic workflows have unpredictable end-to-end latencies, the shares of each LLM's total execution times are comparatively stable across executions. Scepsy decides on GPU allocations based on these aggregate shares: first, it profiles the LLMs under different parallelism degrees. It then uses these statistics to construct an Aggregate LLM Pipeline, which is a lightweight latency/throughput predictor for allocations. To find a GPU allocation that minimizes latency while achieving a target throughput, Scepsy uses the Aggregate LLM Pipeline to explore a search space over fractional GPU shares, tensor parallelism degrees, and replica counts. It uses a hierarchical heuristic to place the best allocation onto the GPU cluster, minimizing fragmentation, while respecting network topology constraints. Our evaluation on realistic agentic workflows shows that Scepsy achieves up to 2.4x higher throughput and 27x lower latency compared to systems that optimize LLMs independently or rely on user-specified allocations.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。