FlowMaker:从任务到高性价比生成式AI工作流部署
FlowMaker: From Tasks to Cost-Efficient Generative AI Workflow Deployments
AI总结:
FlowMaker是一款为用户选择工作流变体的工具,通过约束引导的负载感知剪枝算法,相比现有基线最高提升10.14倍吞吐量、降低2.77倍成本。
摘要:
生成式AI工作流通过组合一系列大语言模型(LLM)调用执行用户任务,每次调用完成一个子任务(如摘要生成或翻译),从而形成工作流。执行此类工作流需要对工作流结构、模型分配和部署配置做出决策,这些决策共同决定了动态工作负载和资源约束下的延迟、成本与准确率。现有系统要么孤立优化这些决策,要么过早固定决策,导致成本和吞吐量(goodput)未达最优。我们得出两个关键观察结果:第一,高效服务需要在动态集群状态下联合探索工作流、模型选择和部署配置的所有组合;第二,复用已部署的LLM是降低成本的关键,但必须实时进行,因为复用取决于当前负载和资源可用性。综上,选择工作流变体(工作流、模型和部署配置的组合)是一个时间敏感问题。我们提出FlowMaker,它提供任务级接口并代表用户选择工作流变体。为实现这一点,我们设计了一种约束引导的负载感知剪枝算法,用于快速实时决策。与包括Murakkab在内的最先进基线相比,FlowMaker的吞吐量最高提升10.14倍,成本最高降低2.77倍。
英文摘要:
Generative AI workflows execute user tasks by composing sequences of LLM calls, where each call performs a sub-task (e.g., summarization or translation), forming a workflow. Executing such workflows requires decisions over workflow structure, model assignments, and deployment configurations, which jointly determine latency, cost, and accuracy under dynamic workloads and resource constraints. Existing systems optimize these decisions in isolation or fix them early, leading to suboptimal cost and goodput. We make two key observations. First, efficient serving requires jointly exploring all combinations of workflows, model choices, and deployment configurations under dynamic cluster state. Second, reuse of deployed LLMs is critical for reducing cost, but must be performed on-the-fly, as reuse depends on current load and resource availability. Together, these make selecting a workflow-variant-a combination of workflow, models, and deployment configuration-a time-critical problem. We present FlowMaker, which exposes a task-level interface and selects workflow-variants on behalf of users. To realize this, we design a constraint-guided load-aware pruning algorithm for fast, on-the-fly decisions. FlowMaker improves goodput by up to 10.14$\times$ and reduces cost by up to 2.77$\times$ compared to state-of-the-art baselines, including Murakkab.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。