arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.17593cs.LGcs.DCcs.PF
收藏

大语言模型推理服务系统的比较分析:vLLM和HuggingFace TGI的性能研究

Comparative Analysis of Large Language Model Inference Serving Systems: A Performance Study of vLLM and HuggingFace TGI

Baltimore, MD, USA(美国马里兰州巴尔的摩)

Saicharan Kolluru

AI总结:

本文比较了vLLM和HuggingFace TGI在大语言模型推理服务中的性能,发现vLLM在高并发场景下吞吐量更高,而TGI在交互式应用中延迟更低。

摘要:

大语言模型(LLMs)在生产环境中的部署需要高效且能平衡吞吐量、延迟和资源利用率的推理服务系统。本文对两个主流的开源LLM服务框架vLLM和HuggingFace Text Generation Inference(TGI)进行了全面的实证评估。我们通过使用从7B到70B参数的LLaMA-2模型,在多个维度上对这些系统进行了基准测试,包括吞吐量性能、端到端延迟、GPU内存利用率和可扩展性特性。我们的实验发现,在高并发工作负载下,vLLM通过其新颖的PagedAttention机制实现了比TGI高24倍的吞吐量,而TGI在交互式单用户场景中表现出更低的尾部延迟。我们为不同的部署场景提供了详细的性能分析,并根据工作负载特性提供了实际的系统选择建议。我们的发现表明,这两个框架的选择应根据特定的使用案例需求进行指导:vLLM在高吞吐量的批量处理场景中表现优异,而TGI更适合对延迟敏感的交互式应用,具有中等并发性。

英文摘要:

The deployment of Large Language Models (LLMs) in production environments requires efficient inference serving systems that balance throughput, latency, and resource utilization. This paper presents a comprehensive empirical evaluation of two prominent open-source LLM serving frameworks: vLLM and HuggingFace Text Generation Inference (TGI). We benchmark these systems across multiple dimensions including throughput performance, end-to-end latency, GPU memory utilization, and scalability characteristics using LLaMA-2 models ranging from 7B to 70B parameters. Our experiments reveal that vLLM achieves up to 24x higher throughput than TGI under high-concurrency workloads through its novel PagedAttention mechanism, while TGI demonstrates lower tail latencies for interactive single-user scenarios. We provide detailed performance profiles for different deployment scenarios and offer practical recommendations for system selection based on workload characteristics. Our findings indicate that the choice between these frameworks should be guided by specific use-case requirements: vLLM excels in high-throughput batch processing scenarios, while TGI is better suited for latency-sensitive interactive applications with moderate concurrency.

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

↑