Tender:通过张量分解与运行时重新量化加速大语言模型
Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization
AI总结:
针对大语言模型推理部署的高计算内存需求与整数流水线运行难题,提出算法-硬件协同设计的Tender方案,通过2的幂次缩放因子的分解量化技术,以极小硬件扩展实现更高精度与推理性能。
摘要:
大语言模型(LLMs)在机器学习的各类任务中展现出卓越性能,已成为当今计算领域最重要的工作负载之一。然而,由于模型规模庞大带来的高计算与内存需求,以及难以在整数流水线中运行的问题,部署LLM推理面临诸多挑战。本文提出Tender,一种算法-硬件协同设计方案,可实现低精度下LLM推理的高效部署。基于对LLMs中离群值的分析,我们提出一种分解量化技术,其中分解后矩阵的缩放因子彼此相差2的幂次。该方案仅需对商用张量计算硬件进行最小程度扩展,即可在累加分解矩阵的部分和时避免显式重新量化(即反量化/量化)。我们的评估表明,与现有最优方法相比,Tender实现了更高的精度与推理性能,同时对现有加速器的侵入性显著更低。
英文摘要:
Large language models (LLMs) demonstrate outstanding performance in various tasks in machine learning and have thus become one of the most important workloads in today's computing landscape. However, deploying LLM inference poses challenges due to the high compute and memory requirements stemming from the enormous model size and the difficulty of running it in the integer pipelines. In this paper, we present Tender, an algorithm-hardware co-design solution that enables efficient deployment of LLM inference at low precision. Based on our analysis of outlier values in LLMs, we propose a decomposed quantization technique in which the scale factors of decomposed matrices are powers of two apart. The proposed scheme allows us to avoid explicit requantization (i.e., dequantization/quantization) when accumulating the partial sums from the decomposed matrices, with a minimal extension to the commodity tensor compute hardware. Our evaluation shows that Tender achieves higher accuracy and inference performance compared to the state-of-the-art methods while also being significantly less intrusive to the existing accelerators.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。