arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.09561cs.AR
收藏

LoopLynx:一种用于高效LLM推理的可扩展数据流架构

LoopLynx: A Scalable Dataflow Architecture for Efficient LLM Inference

Jianing Zheng, Gang Chen

AI总结:

LoopLynx提出混合时空数据流架构与多FPGA分布式设计,通过隐藏数据传输提升LLM推理效率,在GPT-2上以双FPGA实现较A100达2.52倍加速且能耗仅48.1%。

摘要:

本文提出LoopLynx,一种用于高效LLM推理的可扩展数据流架构,通过混合时空设计优化FPGA利用率。LoopLynx的设计融合了混合时空架构,其中计算密集型算子被实现为大型数据流内核。这实现了与空间架构类似的高吞吐量,并以时间方式组织和复用这些内核,共同提升FPGA峰值性能。此外,为克服单设备资源限制,我们提供了一种多FPGA分布式架构,该架构重叠并隐藏所有数据传输,使分布式加速器得到充分利用。通过这种方式,LoopLynx可有效扩展到多个设备,进一步探索大规模LLM推理的模型并行性。对GPT-2模型的评估表明,LoopLynx能够实现与最先进的单FPGA加速方案相当的性能。此外,与Nvidia A100相比,采用双FPGA配置的加速器在推理延迟上实现了2.52倍的加速,同时仅消耗48.1%的能量。

英文摘要:

In this paper, we propose LoopLynx, a scalable dataflow architecture for efficient LLM inference that optimizes FPGA usage through a hybrid spatial-temporal design. The design of LoopLynx incorporates a hybrid temporal-spatial architecture, where computationally intensive operators are implemented as large dataflow kernels. This achieves high throughput similar to spatial architecture, and organizing and reusing these kernels in a temporal way together enhances FPGA peak performance. Furthermore, to overcome the resource limitations of a single device, we provide a multi-FPGA distributed architecture that overlaps and hides all data transfers so that the distributed accelerators are fully utilized. By doing so, LoopLynx can be effectively scaled to multiple devices to further explore model parallelism for large-scale LLM inference. Evaluation of GPT-2 model demonstrates that LoopLynx can achieve comparable performance to state-of-the-art single FPGA-based accelerations. In addition, compared to Nvidia A100, our accelerator with a dual-FPGA configuration delivers a 2.52x speed-up in inference latency while consuming only 48.1% of the energy.

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

↑