ISO: Overlap of Computation and Communication within Seqenence For LLM Inference

Bin Xiao, Lei Su
{"title":"ISO: Overlap of Computation and Communication within Seqenence For LLM Inference","authors":"Bin Xiao, Lei Su","doi":"arxiv-2409.11155","DOIUrl":null,"url":null,"abstract":"In the realm of Large Language Model (LLM) inference, the inherent structure\nof transformer models coupled with the multi-GPU tensor parallelism strategy\nleads to a sequential execution of computation and communication. This results\nin substantial underutilization of computing resources during the communication\nphase. To mitigate this inefficiency, various techniques have been developed to\noptimize the use of computational power throughout the communication process.\nThese strategies primarily involve overlapping matrix computations and\ncommunications, as well as interleaving micro-batches across different\nrequests. Nonetheless, these approaches either fall short of achieving ideal\noverlap or impose certain limitations on their application. To overcome these\nchallenges, this paper introduces a novel strategy for\ncomputation-communication overlap that operates at the sequence level. This\nmethod not only enhances the degree of overlap but also minimizes the\nconstraints on its applicability. Experimental evaluations conducted using\n30b/70b models have demonstrated significant improvements in efficiency.\nSpecifically, the proposed technique has been shown to reduce time consumption\nby approximately 35% on 4090 GPU and by roughly 15% on A800 GPU during the\nprefill stage of LLM inference.","PeriodicalId":501291,"journal":{"name":"arXiv - CS - Performance","volume":"1 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Performance","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.11155","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In the realm of Large Language Model (LLM) inference, the inherent structure of transformer models coupled with the multi-GPU tensor parallelism strategy leads to a sequential execution of computation and communication. This results in substantial underutilization of computing resources during the communication phase. To mitigate this inefficiency, various techniques have been developed to optimize the use of computational power throughout the communication process. These strategies primarily involve overlapping matrix computations and communications, as well as interleaving micro-batches across different requests. Nonetheless, these approaches either fall short of achieving ideal overlap or impose certain limitations on their application. To overcome these challenges, this paper introduces a novel strategy for computation-communication overlap that operates at the sequence level. This method not only enhances the degree of overlap but also minimizes the constraints on its applicability. Experimental evaluations conducted using 30b/70b models have demonstrated significant improvements in efficiency. Specifically, the proposed technique has been shown to reduce time consumption by approximately 35% on 4090 GPU and by roughly 15% on A800 GPU during the prefill stage of LLM inference.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
ISO:用于 LLM 推断的序列内计算与通信的重叠
在大型语言模型(LLM)推理领域,变压器模型的固有结构与多 GPU 张量并行策略导致计算和通信的顺序执行。这导致在通信阶段计算资源利用率严重不足。这些策略主要涉及矩阵计算和通信的重叠,以及不同请求之间微批处理的交错。然而,这些方法要么无法实现理想的重叠,要么在应用上存在一定的局限性。为了克服这些挑战,本文介绍了一种在序列级运行的新型计算-通信重叠策略。这种方法不仅提高了重叠度,而且最大限度地减少了对其应用的限制。使用 30b/70b 模型进行的实验评估表明,该方法显著提高了效率。具体来说,在 LLM 推理的填充阶段,所提出的技术在 4090 GPU 上减少了约 35% 的时间消耗,在 A800 GPU 上减少了约 15%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
HRA: A Multi-Criteria Framework for Ranking Metaheuristic Optimization Algorithms Temporal Load Imbalance on Ondes3D Seismic Simulator for Different Multicore Architectures Can Graph Reordering Speed Up Graph Neural Network Training? An Experimental Study The Landscape of GPU-Centric Communication A Global Perspective on the Past, Present, and Future of Video Streaming over Starlink
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1