arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.15153cs.CLcs.AIcs.PF
收藏

面向可扩展大语言模型推理的Expert Router性能表征

Performance Characterization of Expert Router for Scalable LLM Inference

BMW Group(宝马集团);Ludwig Maximilians Universität(路德维希-马克西米利安大学)

Josef Pichlmeier, Philipp Ross, Andre Luckow

AI总结:

针对大语言模型大规模部署的高算力内存需求挑战,本文提出可扩展路由架构Expert Router,通过将提示导向专用专家模型构建模块化推理系统,实验验证其延迟开销低,小专家模型在宽并发范围下性能优于张量并行基线,助力高效可扩展LLM部署。

摘要:

大语言模型(LLM)凭借其多功能性和对各类任务的实用性,已在科学和工业领域得到广泛应用。然而,以最优吞吐量和延迟大规模部署与服务这些模型仍是一项重大挑战,主要原因在于大语言模型的计算和内存需求极高。针对特定任务优化的专用模型可通过路由机制结合起来以应对这些挑战,从而构建模块化推理系统。本文提出了Expert Router(专家路由器)——一种可扩展的路由架构,可将提示词导向专用专家模型。我们对多种Expert Router配置进行了性能表征,包括不同的Llama 3模型(含量化权重和非量化权重版本)在最高1000名并发用户下的表现。研究结果表明,Expert Router引入的延迟开销极小,专家模型的配置是决定性能结果的主导因素。高参数专家模型在中等并发水平下可提供稳定的吞吐量和延迟。相比之下,与张量并行基线模型相比,更小的专家模型能在更广泛的并发用户范围内保持具有竞争力的性能。这凸显了Expert Router在高效、可扩展的大语言模型部署方面的潜力。

英文摘要:

Large Language Models (LLMs) have experienced widespread adoption across scientific and industrial domains due to their versatility and utility for diverse tasks. Nevertheless, deploying and serving these models at scale with optimal throughput and latency remains a significant challenge, primarily because of LLMs' high computational and memory demands. Specialized models optimized for specific tasks can be combined through a routing mechanism to address these challenges, creating a modular inference system. This paper introduces Expert Router, a scalable routing architecture that directs prompts to specialized expert models. We characterize multiple Expert Router configurations, including different LLama 3 models with quantized and non-quantized weights under up to 1,000 concurrent users. Our findings reveal that Expert Router introduces minimal latency overhead, with the configuration of expert models being a dominating factor in performance outcomes. High-parameter expert models deliver stable throughput and latency under moderate concurrency levels. In contrast, smaller expert models maintain competitive performance across a wider range of concurrent users compared to tensor-parallelized baseline models. This highlights the potential of Expert Router for efficient and scalable LLM deployment.

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

↑