已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

Large Language Model Partitioning for Low-Latency Inference at the Edge

计算机科学 推论 GSM演进的增强数据速率 延迟(音频) 并行计算 人工智能 电信
作者
Dimitrios Kafetzis,Ramin Khalili,Iordanis Koutsopoulos
出处
期刊: 卷期号:: 1-8 被引量:12
标识
DOI:10.23919/wiopt66569.2025.11123401
摘要

Large Language Models (LLMs) based on autoregressive, decoder-only Transformers generate text one token at a time, where a token represents a discrete unit of text. As each newly produced token is appended to the partial output sequence, the length grows and so does the memory and compute load, due to the expanding key-value (K/V) caches-which store intermediate representations of all previously generated tokens-in the multi-head attention (MHA) layer. As this iterative process steadily increases memory and compute demands, layer-based partitioning in resource-constrained edge environments often results in memory overload or high inference latency. To address this, aiming to reduce inference latency, we propose a resource-aware Transformer architecture partitioning algorithm, where the partitioning decision is updated at regular intervals during token generation. The approach is a myopic algorithm in the sense that it is based on instantaneously available information about device resources availability and network link bandwidths. When the algorithm is first executed, it generates a placement of blocks on devices, and in each consecutive time it is executed, it migrates these blocks among devices so that the sum of migration delay and inference delay remains low. Our approach partitions the decoder at the attention head-level, co-locating each attention head with its K/V cache and allowing dynamic migrations whenever resources become tight. By allocating different attention heads to different devices, we exploit parallel execution of attention heads and thus allow for substantial reductions in inference delays. Our experiments show that in small-scale settings (3-5 devices), the proposed method achieves within 15-20% of an exact optimal solver's latency, while in larger-scale tests it achieves notable improvements in inference speed and memory usage compared to state-of-the-art layer-based partitioning approaches.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
可靠的靖巧完成签到,获得积分10
1秒前
nicer发布了新的文献求助10
2秒前
2秒前
Owen的应助被Kaiwei采纳,获得10
4秒前
4秒前
酷波er的应助被CLW采纳,获得10
4秒前
地球发布了新的文献求助10
5秒前
CANLAN发布了新的文献求助10
6秒前
谨慎玫瑰完成签到,获得积分10
7秒前
hyx完成签到 ,获得积分10
8秒前
9秒前
automan完成签到,获得积分10
10秒前
10秒前
彭于晏的应助被ksperate采纳,获得10
10秒前
12秒前
14秒前
地球发布了新的文献求助10
14秒前
15秒前
15秒前
乐乐乐乐乐乐完成签到 ,获得积分10
16秒前
顾矜的应助被夏末采纳,获得10
16秒前
CLW发布了新的文献求助10
17秒前
NexusExplorer的应助被善良芮采纳,获得10
17秒前
CarryLJR发布了新的文献求助30
17秒前
可爱的函函的应助被苗苗苗采纳,获得10
18秒前
18秒前
18秒前
小马甲的应助被广发牛勿采纳,获得10
18秒前
奶瓶完成签到 ,获得积分10
19秒前
tjnksy完成签到,获得积分0
19秒前
Lily完成签到 ,获得积分10
19秒前
希望天下0贩的0的应助被cizzz采纳,获得10
20秒前
22秒前
CipherSage的应助被霸气蛮王骑士采纳,获得10
22秒前
22秒前
23秒前
地球发布了新的文献求助10
24秒前
24秒前
didididm完成签到,获得积分10
24秒前
豆奶发布了新的文献求助10
26秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Ultra Clean Processing of Semiconductor Surfaces XVII 600
Current status of early diagnosis of pancreatic cancer 600
Data Driven Casing Collar Feature Detection and Identification for Automated Depth Estimation for Wireline 500
Bonding in Metal(IV) Hexafluorides Examined Using Fluorine K-edge X-ray Absorption Spectroscopy 500
病理集団の構造 : 親分乾分集団研究 400
Tutorials in Operations Research: Operations Research and Artificial Intelligence: Better Together 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8253549
求助须知:如何正确求助?哪些是违规求助? 9627996
关于积分的说明 22151463
捐赠科研通 7874690
什么是DOI,文献DOI怎么找? 3458327
关于科研通互助平台的介绍 2576866
邀请新用户注册赠送积分活动 2509816