Fast Matrix Multiplications for Lookup Table-Quantized LLMs
Massachusetts Institute of Technology(麻省理工学院);High School of Mathematics Plovdiv(普罗夫迪夫数学中学);Carnegie Mellon University(卡内基梅隆大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Petuum Inc.(派图公司)
Han Guo, William Brandon, Radostin Cholakov, Jonathan Ragan-Kelley, Eric P. Xing, Yoon Kim
The deployment of large language models (LLMs) is often constrained by memory bandwidth, where the primary bottleneck is the cost of transferring model parameters from the GPU's global memory to its registers. When coupled with custom kernels that fuse the dequantization and matmul operations, weight-only quantization can thus enable faster inference by reducing the amount of memory movement. However, developing high-performance kernels for weight-quantized LLMs presents substantial challenges, especially when the weights are compressed to non-evenly-divisible bit widths (e.g., 3 bits) with non-uniform, lookup table (LUT) quantization. This paper describes FLUTE, a flexible lookup table engine for LUT-quantized LLMs, which uses offline restructuring of the quantized weight matrix to minimize bit manipulations associated with unpacking, and vectorization and duplication of the lookup table to mitigate shared memory bandwidth constraints. At batch sizes < 32 and quantization group size of 128 (typical in LLM inference), the FLUTE kernel can be 2-4x faster than existing GEMM kernels. As an application of FLUTE, we explore a simple extension to lookup table-based NormalFloat quantization and apply it to quantize LLaMA3 to various configurations, obtaining competitive quantization performance against strong baselines while obtaining an end-to-end throughput increase of 1.5 to 2 times.
A Simple but Effective Pluggable Entity Lookup Table for Pre-trained Language Models
Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);WeChat AI(微信人工智能);Institute for AI Industry Research (AIR), Tsinghua University(清华大学智能产业研究院(AIR));International Innovation Center of Tsinghua University(清华大学国际创新中心);Jiangsu Collaborative Innovation Center for Language Ability(江苏语言能力协同创新中心);Institute Guo Qiang, Tsinghua University(清华大学国强研究院)
Data-driven framework for input/output lookup tables reduction: Application to hypersonic flows in chemical non-equilibrium
Institut Jean le Rond d’Alembert, Sorbonne University(索邦大学让·勒朗·达朗贝尔研究所);Imperial College London(帝国理工学院);Onera(法国国家航空航天研究院);KAUST(阿卜杜拉国王科技大学);Aachen University(亚琛大学)
Bringing Chemistry to Scale: Loss Weight Adjustment for Multivariate Regression in Deep Learning of Thermochemical Processes
Know-Center GmbH – Research Center for Data-Driven Business & Big Data Analytics(知识中心有限公司——数据驱动业务与大数据分析研究中心);LEC GmbH – Large Engines Competence Center(大型发动机竞争力中心有限公司);Universitat Politècnica de València(瓦伦西亚理工大学)