WindVE:CPU-NPU协同向量嵌入
WindVE: Collaborative CPU-NPU Vector Embedding
AI总结:
针对大语言模型推理服务中向量嵌入环节资源利用率待提升的问题,提出WindVE系统,通过CPU-NPU异构架构和带最优队列深度调控的队列管理器卸载峰值查询,并发水平较无卸载方案最高提升22.3%。
摘要:
检索增强生成是一种通过整合信息检索来增强大语言模型的技术。在行业中,基于大语言模型(LLM)的推理服务对性价比高度敏感,这推动了提升推理服务中硬件资源利用率的需求。具体而言,向量嵌入和检索过程占总延迟的比例高达20%。因此,优化向量嵌入中的计算资源利用率,对于提升推理过程的性价比、进而增强其产品竞争力至关重要。\n本文分析了推理服务中向量嵌入技术的部署成本,提出了一个理论公式,并通过该数学表达式确定,提升并发查询处理能力是降低向量嵌入部署成本的关键。因此,本文聚焦于提升产品的并发查询处理能力。为了在不牺牲性能的前提下优化并发能力,我们设计了一个队列管理器,可灵活卸载CPU的峰值查询。该管理器利用线性回归模型确定最优队列深度——这是对系统效能有显著影响的关键参数。我们进一步开发了名为WindVE的系统,采用CPU-NPU异构架构来卸载峰值并发查询,利用两种处理器之间的性能差异有效应对流量突增。通过实验,我们将WindVE与当前最先进的向量嵌入框架FlagEmbedding进行了对比,其并发水平比无卸载方案最高高出22.3%。
英文摘要:
Retrieval-Augmented Generation is a technology that enhances large language models by integrating information retrieval. In the industry, inference services based on LLMs are highly sensitive to cost-performance ratio, prompting the need for improving hardware resource utilization in the inference service. Specifically, vector embedding and retrieval processes take up to 20% of the total latency. Therefore, optimizing the utilization of computational resources in vector embeddings is crucial for enhancing the cost-performance ratio of inference processes, which in turn boosts their product competitiveness.In this paper, we analyze the deployment costs of vector embedding technology in inference services, propose a theoretical formula, and determine through the mathematical expression that increasing the capacity to process concurrent queries is the key to reducing the deployment costs of vector embeddings. Therefore, in this paper, we focus on improving the product's capability to process concurrent queries. To optimize concurrency without sacrificing performance, we have designed a queue manager that adeptly offloads CPU peak queries. This manager utilizes a linear regression model to ascertain the optimal queue depths, a critical parameter that significantly influences the efficacy of the system. We further develop a system named WindVE that uses a CPU-NPU heterogeneous architecture to offload peak concurrent queries, which leverages the performance differences between the two processors to effectively manage traffic surges. Through experiments, we compare WindVE to the state-of-the-art vector embedding framework FlagEmbedding, and achieve a concurrency level up to 22.3% higher than the scheme without offloading.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。