InferLine:ML预测管道供应和管理,以实现严格的延迟目标
InferLine: ML Prediction Pipeline Provisioning and Management for Tight Latency Objectives
摘要:
为跨越多个模型和硬件加速器的ML预测管道提供服务是生产机器学习中的一个关键挑战。通过优化配置这些管道以满足严格的端到端延迟目标,由于模型批量大小、硬件加速器的选择以及查询到达过程中的变化之间的相互作用而变得复杂。在本文中,我们介绍了InferLine,这是一个系统,它提供和管理预测管道的各个阶段,以满足端到端的尾部延迟约束,同时最大限度地降低成本。InferLine由低频组合规划器和高频自动缩放调谐器组成。低频规划器利用逐阶段分析、离散事件模拟和约束组合搜索来自动选择流水线中每个阶段的硬件类型、复制和重复参数。高频调谐器使用网络演算来自动缩放每个阶段,以满足尾部延迟目标,以响应查询到达过程中的变化。我们证明,InferLine在成本上优于现有方法高达7.6倍,同时在实际工作负载上实现高达34.5倍的低延迟SLO未命中率,并在最先进的模型服务框架中推广。
英文摘要:
Serving ML prediction pipelines spanning multiple models and hardware accelerators is a key challenge in production machine learning. Optimally configuring these pipelines to meet tight end-to-end latency goals is complicated by the interaction between model batch size, the choice of hardware accelerator, and variation in the query arrival process. In this paper we introduce InferLine, a system which provisions and manages the individual stages of prediction pipelines to meet end-to-end tail latency constraints while minimizing cost. InferLine consists of a low-frequency combinatorial planner and a high-frequency auto-scaling tuner. The low-frequency planner leverages stage-wise profiling, discrete event simulation, and constrained combinatorial search to automatically select hardware type, replication, and batching parameters for each stage in the pipeline. The high-frequency tuner uses network calculus to auto-scale each stage to meet tail latency goals in response to changes in the query arrival process. We demonstrate that InferLine outperforms existing approaches by up to 7.6x in cost while achieving up to 34.5x lower latency SLO miss rate on realistic workloads and generalizes across state-of-the-art model serving frameworks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。