PacQ:一种用于超不对称GEMM高效数据流的SIMT微架构
PacQ: A SIMT Microarchitecture for Efficient Dataflow in Hyper-asymmetric GEMMs
AI总结:
本文提出PacQ微架构,通过协同优化INT权重的块级打包与数据流,并设计专用FP-INT乘法器,加速超不对称GEMM,实现最高1.99倍加速和81.4%的EDP降低。
摘要:
权重量化已被广泛探索用于大型语言模型(LLMs)中,以减少内存存储和数据加载开销。在单指令多线程(SIMT)架构上部署时,权重以低精度整数(INT)格式存储,而激活值保持全精度浮点(FP)格式以保持推理精度。尽管权重矩阵的内存占用和数据加载需求有所减少,但由于在GEMM操作前需要通过解包和反量化将权重转换回FP格式,计算性能提升仍然有限。在这项工作中,我们研究了加速涉及打包低精度INT权重和高精度FP激活的GEMM操作的方法,将此定义为超不对称GEMM问题。我们的方法协同优化了INT权重矩阵的块级打包和数据流策略。我们进一步设计了一个专门针对我们的打包和数据流策略的FP-INT乘法器单元,能够并行处理多个INT权重。最后,我们将打包、数据流和乘法器单元集成到PacQ中,这是一种用于高效加速超不对称GEMM的SIMT微架构。我们表明,与在传统SIMT基线上运行的仅权重量化LLM工作负载相比,PacQ可以实现高达1.99倍的加速和81.4%的EDP降低。
英文摘要:
Weight-only quantization has been widely explored in large language models (LLMs) to reduce memory storage and data loading overhead. During deployment on single-instruction-multiple-threads (SIMT) architectures, weights are stored in low-precision integer (INT) format, while activations remain in full-precision floating-point (FP) format to preserve inference accuracy. Although memory footprint and data loading requirements for weight matrices are reduced, computation performance gains remain limited due to the need to convert weights back to FP format through unpacking and dequantization before GEMM operations. In this work, we investigate methods to accelerate GEMM operations involving packed low-precision INT weights and high-precision FP activations, defining this as the hyper-asymmetric GEMM problem. Our approach co-optimizes tile-level packing and dataflow strategies for INT weight matrices. We further design a specialized FP-INT multiplier unit tailored to our packing and dataflow strategies, enabling parallel processing of multiple INT weights. Finally, we integrate the packing, dataflow, and multiplier unit into PacQ, a SIMT microarchitecture designed to efficiently accelerate hyper-asymmetric GEMMs. We show that PacQ can achieve up to 1.99x speedup and 81.4% reduction in EDP compared to weight-only quantized LLM workloads running on conventional SIMT baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。