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

F-BFQ:面向大语言模型的灵活块浮点量化加速器

F-BFQ: Flexible Block Floating-Point Quantization Accelerator for LLMs

School of Computing Science, University of Glasgow(计算科学学院,格拉斯哥大学)

Jude Haris, José Cano

AI总结:

针对BFP量化LLM层间变体需重配置的问题,提出F-BFQ加速器,动态切换两种BFP变体执行MatMul,在AMD Kria板上平均提速1.4倍,达5.2 tokens/s。

摘要:

大语言模型(LLMs)在日常任务中日益突出,从改进语音到文本的翻译,到为最新视频游戏生成额外帧。借助支持KV缓存和量化等优化的LLM推理框架(如llama.cpp),在边缘设备上部署LLM比以往任何时候都更容易。量化是在资源受限的边缘设备上实现LLM的基础,llama.cpp利用块浮点(BFP)量化来大幅降低权重和输入张量的位宽、内存占用以及运行LLM所需的计算能力。LLM通常跨模型层使用混合BFP量化,以减少量化导致的模型精度损失。因此,为了高效加速BFP量化LLM的各层,专用加速器需要在不重新配置的情况下支持不同的BFP变体。为解决此问题,我们提出了一种灵活块浮点量化(F-BFQ)加速器,它可以在两种BFP量化变体之间动态切换并执行矩阵乘法(MatMul)运算。我们初步的F-BFQ加速器设计部署在AMD Kria板上,在三个BFP量化LLM上,与基于Arm NEON的CPU执行相比,平均推理时间减少了1.4倍,同时实现了每秒5.2个令牌(约每秒3.9个单词)的吞吐量。

英文摘要:

Large Language Models (LLMs) have become increasingly prominent for daily tasks, from improving sound-totext translation to generating additional frames for the latest video games. With the help of LLM inference frameworks, such as llama.cpp, which support optimizations such as KV-caching and quantization, it is now easier than ever to deploy LLMs on edge devices. Quantization is fundamental to enable LLMs on resource-constrained edge devices, and llama.cpp utilizes block floating point (BFP) quantization to drastically reduce the bit width of weights and input tensors, the memory footprint, and the computational power required to run LLMs. LLMs are typically quantized with mixed BFP quantization across the model layers to reduce the loss of model accuracy due to quantization. Therefore, to efficiently accelerate across the layers of BFP-quantized LLMs, specialized accelerators need to support different BFP variants without reconfiguration. To address this issue, we propose a Flexible Block FloatingPoint Quantization (F-BFQ) accelerator, which can dynamically switch between two BFP quantization variants and perform matrix multiplication (MatMul) operations. Our initial F-BFQ accelerator design, deployed on the AMD Kria board, reduces inference time by 1.4x on average over the Arm NEON-based CPU execution across three BFP quantized LLMs while achieving 5.2 tokens per second (~3.9 words per second).

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

↑