arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.25655cs.DC
收藏

异构众核超级计算机上的带宽感知LLM推理

Bandwidth-Aware LLM Inference on Heterogeneous Many-Core Supercomputers

Sino-German Joint Software Institute, Beihang University(北京航空航天大学中德软件工程学院)

Yao Lu, Zhongzhi Luan, Gen Li, Jiaxing Qi, Shiqing Ma, Bin Han, Shizhe Shang, Hailong Yang, Depei Qian

AI总结:

针对异构众核处理器带宽瓶颈,提出硬件感知推理框架THInfer,通过软硬件协同设计和并行策略优化,在MT-3000处理器上实现高效LLM推理。

摘要:

大型语言模型(LLM)推理受限于高计算成本和内存带宽需求,使其在异构众核处理器上的部署具有挑战性。以天河超级计算机中使用的MT-3000处理器为例,其有限的主存带宽和分布式内存层次结构体现了这些瓶颈,使得直接迁移现有的基于GPU的推理框架变得困难。为解决此问题,我们提出了THInfer,一个硬件感知的推理框架,通过软硬件协同设计和并行策略优化,在带宽受限条件下最大化数据局部性。THInfer包含三项关键技术:(1)针对VLIW SIMD架构的高性能算子库,提供手工优化的FP16内核,每个集群达到峰值性能的70%;(2)密度驱动的计算图融合和统一内核调度机制,结合分阶段流水线注意力融合方法;(3)预填充-缓冲-解码(P-B-D)流水线和有界缓冲区管理策略,支持混合并行,并通过基于MPI和hthreads的两级通信实现高效的多集群协作。在Llama模型系列上的实验表明,THInfer在7B模型上的吞吐量比两个V100S GPU上的DeepSpeed提高62%至73%,比A800 GPU提高67%至84%。13B和30B模型也表现出相当或更好的性能。此外,THInfer在70B模型上保持稳定性能,而典型的基于GPU的框架在相同设置下无法运行。总体而言,THInfer显著提高了吞吐量,降低了延迟,并改善了可扩展性,为异构众核架构上高效可扩展的LLM推理提供了可行的系统解决方案。

英文摘要:

Large language model (LLM) inference is limited by high computational cost and memory bandwidth demands, making deployment on heterogeneous many-core processors challenging. Taking the MT-3000 processor used in the Tianhe supercomputer as an example, its limited main-memory bandwidth and distributed memory hierarchy exemplify these bottlenecks, making it difficult to directly migrate existing GPU-based inference frameworks. To address this problem, we propose THInfer, a hardware-aware inference framework that maximizes data locality under bandwidth-constrained conditions through hardware-software co-design and parallel strategy optimization. THInfer incorporates three key techniques: (1) a high-performance operator library for the VLIW SIMD architecture, providing hand-optimized FP16 kernels that achieve up to 70 percent of the peak performance per cluster; (2) a density-driven computation graph fusion and unified kernel scheduling mechanism, combined with a staged pipelined attention fusion method; and (3) a Prefill-Buffer-Decode (P-B-D) pipeline and bounded buffer management strategy, which supports hybrid parallelism and enables efficient multi-cluster collaboration through two-level communication based on MPI and hthreads. Experiments on the Llama model series show that THInfer improves throughput on the 7B model by 62 percent to 73 percent over DeepSpeed on two V100S GPUs and by 67 percent to 84 percent over the A800 GPU. The 13B and 30B models also demonstrate comparable or better performance. Moreover, THInfer maintains stable performance on the 70B model, whereas typical GPU-based frameworks fail to run under the same setting. Overall, THInfer significantly enhances throughput, reduces latency, and improves scalability, providing a feasible system solution for efficient and scalable LLM inference on heterogeneous many-core architectures.

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

↑