Papers › QUIK: Towards End-to-End 4-Bit Inference on Generative Large Language Models

QUIK: Towards End-to-End 4-Bit Inference on Generative Large Language Models

13 Oct 2023arXiv:2310.09259archive 2025-07-28

Saleh Ashkboos, Ilia Markov, Elias Frantar, Tingxuan Zhong, Xincheng Wang, Jie Ren, Torsten Hoefler, Dan Alistarh

Large Language Models (LLMs) from the GPT family have become extremely popular, leading to a race towards reducing their inference costs to allow for efficient local computation. Yet, the vast majority of existing work focuses on weight-only quantization, which can reduce runtime costs in the memory-bound one-token-at-a-time generative setting, but does not address them in compute-bound scenarios, such as batched inference or prompt processing. In this paper, we address the general quantization problem, where both weights and activations should be quantized. We show, for the first time, that the majority of inference computations for large generative models such as LLaMA, OPT, and Falcon can be performed with both weights and activations being cast to 4 bits, in a way that leads to practical speedups, while at the same time maintaining good accuracy. We achieve this via a hybrid quantization strategy called QUIK, which compresses most of the weights and activations to 4-bit, while keeping some outlier weights and activations in higher-precision. The key feature of our scheme is that it is designed with computational efficiency in mind: we provide GPU kernels matching the QUIK format with highly-efficient layer-wise runtimes, which lead to practical end-to-end throughput improvements of up to 3.4x relative to FP16 execution. We provide detailed studies for models from the OPT, LLaMA-2 and Falcon families, as well as a first instance of accurate inference using quantization plus 2:4 sparsity. Code is available at: https://github.com/IST-DASLab/QUIK.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.09259")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ist-daslab/quik officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ist-daslab/quik. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

asymmetric_quantize ist-daslab/quik/experiments/quant_sim.py official repository ran Apache-2.0 (permissive) · aa2f6205ec9bf13c · report
get_c4 ist-daslab/quik/experiments/datautils.py official repository ran Apache-2.0 (permissive) · 980b7a8e42ae4a52 · report
get_fp_features_num ist-daslab/quik/experiments/modelutils.py official repository ran Apache-2.0 (permissive) · 6a7807d7d7ad0fb4 · report
get_fp_features_num ist-daslab/quik/experiments/llama.py official repository ran Apache-2.0 (permissive) · f0ae4c8287c19664 · report
get_opt ist-daslab/quik/experiments/modelutils.py official repository ran Apache-2.0 (permissive) · afa2292fc283853b · report
get_ptb ist-daslab/quik/experiments/datautils.py official repository ran Apache-2.0 (permissive) · 614c29352fee019e · report
pack_to_i4 ist-daslab/quik/experiments/qlinear.py official repository ran fingerprinted Apache-2.0 (permissive) · 715c101a77c1534c · report
symmetric_quantize ist-daslab/quik/experiments/quant_sim.py official repository ran Apache-2.0 (permissive) · 417a0b6e6d05ce3b · report
two_compl ist-daslab/quik/experiments/qlinear.py official repository ran fingerprinted Apache-2.0 (permissive) · 77a12785d85226d6 · report
get_falcon ist-daslab/quik/experiments/fake_quant/modelutils.py official repository unverified Apache-2.0 (permissive) · 586dfe618a4fadd4 · report
get_opt ist-daslab/quik/experiments/fake_quant/modelutils.py official repository unverified Apache-2.0 (permissive) · afe299403d03afcb · report
get_wikitext2 ist-daslab/quik/experiments/datautils.py official repository unverified Apache-2.0 (permissive) · 79092c10d8a25941 · report
llama_eval ist-daslab/quik/experiments/llama.py official repository unverified Apache-2.0 (permissive) · 340f10d2f7201ee7 · report

Tasks

Computational EfficiencyQuantization

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPTLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionOPTResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections