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

密集大语言模型部署的并行策略:在应用特定的权衡和瓶颈中导航

Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottlenecks

The Pennsylvania State University(宾夕法尼亚州立大学)

Burak Topcu, Musa Oguzhan Cim, Poovaiah Palangappa, Meena Arunachalam, Mahmut Taylan Kandemir

AI总结:

本文研究了密集LLM部署中并行策略对延迟和吞吐量的权衡影响,提出通过混合TP和PP优化性能。

摘要:

生成式AI领域的突破推动了大量由大语言模型(LLM)驱动的应用激增,其工作负载本质上由通过Transformer架构进行的推理序列组成。在这一迅速扩展的生态系统中,密集LLM——即每个token生成都激活所有模型参数的模型——构成了高级专家型变体的基础。密集模型持续主导,是因为其强大的泛化能力、可扩展性、易于微调以及在多样化任务中的多功能性。在LLM推理系统中,性能主要由延迟、响应时间和吞吐量(即单位时间生成的token数)来表征。延迟和吞吐量是内在相关的:优化其中一个往往以牺牲另一个为代价。此外,当密集模型参数超过设备内存容量时,批处理策略和并行配置等关键因素会显著影响延迟和整体系统吞吐量。本文(i)研究了两种代表性密集LLM——Llama-3.1-70B和Llama-3.1-405B的工作负载,特别关注节点内并行化方案;(ii)分析输入特征、批处理和并行策略如何影响延迟灵活性和延迟吞吐量权衡;(iii)识别关键性能瓶颈,以指导设计选择以满足服务等级协议(SLAs)并维持推理质量。我们的实证评估表明,张量并行(TP)提高了延迟目标,而流水线并行(PP)更适合吞吐量导向的应用。我们强调,通过控制TP和PP的程度进行混合使用,可以控制延迟吞吐量的相互作用。

英文摘要:

Breakthroughs in the generative AI domain have fueled an explosion of large language model (LLM)-powered applications, whose workloads fundamentally consist of sequences of inferences through transformer architectures. Within this rapidly expanding ecosystem, dense LLMs--those that activate all model parameters for each token generation--form the foundation for advanced expert-based variants. Dense models continue to dominate because of their strong generalization ability, scalability, ease of fine-tuning, and versatility across diverse tasks. In LLM inference systems, performance is mainly characterized by latency, response time, and throughput (i.e., tokens generated per unit of time). Latency and throughput are inherently coupled: optimizing for one often comes at the expense of the other. Moreover, batching strategies and parallelism configurations, which are essential when dense model parameters exceed device memory capacity, can significantly affect both latency and overall system throughput. This paper (i) investigates the workloads of two representative dense LLMs--Llama-3.1-70B and Llama-3.1-405B, focusing in particular on intra-node parallelization schemes, (ii) analyzes how input characteristics, batching, and parallelism strategies influence latency flexibility and the latency-throughput tradeoff, and (iii) identifies key performance bottlenecks that inform design choices for meeting service-level agreements (SLAs) and sustaining inference quality. Our empirical evaluations reveal that Tensor Parallelism (TP) improves the latency objectives while Pipeline Parallelism (PP) is better-suited for throughput-oriented applications. We highlight that their hybrid usage by controlling the TP and PP degrees provides control over the latency-throughput interplay.

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

↑