首页|低资源集群中的大语言模型分布式推理技术

低资源集群中的大语言模型分布式推理技术

扫码查看
探索了一种并行能力更强、具有更好兼容性的大语言模型(LLM)分布式推理范式.该范式专为弱算力、小显存环境设计.同时面向主机内外差异带宽,设计了基于通信树的高效All-Reduce组通信技术;针对小显存集群,设计了细粒度的显存管理与调度技术.最后,基于这些关键技术,构建了一套针对资源受限场景的LLM推理软件系统,旨在用数量有限的低资源设备,最大化能推理的LLM,同时通过优化通信策略与计算调度加速分布式推理.实验证明,在应用上述技术后,本方案的首词元生成延迟降低34%~61%,每秒生成词元吞吐量提升52%~150%,显存占用降低61%.
Accelerating Distributed Inference of Large Language Models in Low-Resource Clusters
A distributed inference paradigm for large language model(LLM)with stronger parallelism and better compatibility is explored,which is designed for weak computing power and small memory environments.Meanwhile,an efficient All-Reduce group communication technique based on communication tree is designed for the different bandwidths inside and outside the host,and a fine-grained memory management and scheduling technique is designed for small memory clusters.Finally,based on these key techniques,a set of LLM infer-ence software system for resource-constrained scenarios is constructed,aiming to maximize the LLMs that can be inferenced with a lim-ited number of low-resource devices,and at the same time accelerating the distributed inference by optimizing the communication strategy and computation scheduling.Experiments demonstrate that after applying the above techniques,the first lexical element generation latency is reduced by 34%~61%,the lexical element generation throughput per second is increased by 52%~150%,and the memory occupation is re-duced by 61%.

LLM distributed inference paradigmresource-constrained scenarioscommunication and computation scheduling optimization

冯文佼、李宗航、虞红芳

展开 >

电子科技大学,中国 成都 611731

LLM分布式推理范式 资源受限场景 优化通信策略与计算调度

2024

中兴通讯技术
中兴通讯股份有限公司,安徽科学技术情报研究所

中兴通讯技术

CSTPCD北大核心
影响因子:1.272
ISSN:1009-6868
年,卷(期):2024.30(2)
  • 16