paper-with-me

Papers

SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression

2023-06-05 · Tim Dettmers, Ruslan Svirschevski, Vage Egiazarian, Denis Kuznedelev, Elias Frantar, Saleh Ashkboos, Alexander Borzunov, Torsten Hoefler, Dan Alistarh

Recent advances in large language model (LLM) pretraining have led to high-quality LLMs with impressive abilities. By compressing such LLMs via quantization to 3-4 bits per parameter, they can fit into memory-limited devices such as laptops and mobile phones, enabling personalized use. However, quantization down to 3-4 bits per parameter usually leads to moderate-to-high accuracy losses, especially for smaller models in the 1-10B parameter range, which are well-suited for edge deployments. To address this accuracy issue, we introduce the Sparse-Quantized Representation (SpQR), a new compressed format and quantization technique which enables for the first time near-lossless compression of LLMs across model scales, while reaching similar compression levels to previous methods. SpQR works by identifying and isolating outlier weights, which cause particularly-large quantization errors, and storing them in higher precision, while compressing all other weights to 3-4 bits, and achieves relative accuracy losses of less than 1% in perplexity for highly-accurate LLaMA and Falcon LLMs. This makes it possible to run 33B parameter LLM on a single 24 GB consumer GPU without any performance degradation at 15% speedup thus making powerful LLMs available to consumer without any downsides. SpQR comes with efficient algorithms for both encoding weights into its format, as well as decoding them efficiently at runtime. Specifically, we provide an efficient GPU inference algorithm for SpQR which yields faster inference than 16-bit baselines at similar accuracy, while enabling memory compression gains of more than 4x.

📄 PDF Abstract BibTeX arXiv:2306.03078

Code (1)

vahe1994/spqr 공식 구현 pytorch

Tasks

GPULanguage ModellingLarge Language ModelQuantization

Similar Papers 제목 키워드 기반

SPQR: An R Package for Semi-Parametric Density and Quantile Regression

2022-10-26 · Steven G. Xu, Reetam Majumder, Brian J. Reich

We develop an R package SPQR that implements the semi-parametric quantile regression (SPQR) method in Xu and Reich (2021). The method begins by fitting a flexible density regression model using monotonic splines whose we…

quantile regressionregression

Learning Scalable lY=-Constrained Near-Lossless Image Compression via Joint Lossy Image and Residual Compression

2021-06-19 · CVPR 2021 1 · Yuanchao Bai, Xianming Liu, WangMeng Zuo, YaoWei Wang 외

We propose a novel joint lossy image and residual compression framework for learning l_infinity-constrained near-lossless image compression. Specifically, we obtain a lossy reconstruction of the raw image through los…

Image Compression

Learning Scalable $\ell_\infty$-constrained Near-lossless Image Compression via Joint Lossy Image and Residual Compression

2021-03-31 · Yuanchao Bai, Xianming Liu, WangMeng Zuo, YaoWei Wang 외

We propose a novel joint lossy image and residual compression framework for learning $\ell_\infty$-constrained near-lossless image compression. Specifically, we obtain a lossy reconstruction of the raw image through loss…

Image Compression

LoTA-QAF: Lossless Ternary Adaptation for Quantization-Aware Fine-Tuning

2025-05-24 · Junyu Chen, Junzhuo Li, Zhen Peng, Wenjie Wang 외

Quantization and fine-tuning are crucial for deploying large language models (LLMs) on resource-constrained edge devices. However, fine-tuning quantized models presents significant challenges, primarily stemming from: Fi…

Computational EfficiencyMMLUQuantization

Machine Learning for RealisticBall Detection in RoboCup SPL

2017-07-12 · Domenico Bloisi, Francesco Del Duchetto, Tiziano Manoni, Vincenzo Suriani

In this technical report, we describe the use of a machine learning approach for detecting the realistic black and white ball currently in use in the RoboCup Standard Platform League. Our aim is to provide a ready-to-use…

BIG-bench Machine Learning