GPTQ
A post-training quantization method proposed in 2022 that uses layer-wise second-order optimization to compress large models to INT4 precision, representing a significant milestone in large language model quantization.
Core Facts
GPTQ uses second-order gradient information to minimize quantization error, AWQ identifies and protects the weights with the greatest influence on activation values, and GGUF was introduced by the llama.cpp project and is specifically optimized for CPU inference.
Common model quantization methods include formats such as GPTQ, AWQ, and GGUF.
4-bit quantization techniques (such as GPTQ, AWQ, and the GGUF format) can reduce model VRAM requirements to 1/4 of the original, but come with a certain degree of accuracy loss
Timeline (last 90 days)
Common quantization schemes include bitsandbytes' LLM.int8/NF4, GPTQ, AWQ, and others, and Diffusers provides interface support such as PipelineQuantizationConfig for some of them.
Modern quantization formats such as GGUF and GPTQ adopt an approach similar to per-row scaling.
The GGUF format mainly targets the llama.cpp ecosystem, GPTQ and AWQ are common in GPU inference stacks, and bitsandbytes provides an online quantization solution integrated with Hugging Face Transformers.
The compression ratios of post-training quantization methods such as GPTQ and AWQ are typically between 2x and 4x.
Calibration is a key step in post-training quantization (PTQ), using a small batch of representative samples to compute the dynamic range or distribution of activations at each layer in order to determine quantization parameters.
Formats such as GGUF and GPTQ support quantization levels ranging from 2 bits to 8 bits.
Common quantization schemes in the community include GPTQ, AWQ, GGUF (llama.cpp ecosystem), and bitsandbytes' NF4, among others, with different schemes making different trade-offs between accuracy loss and throughput.
Common quantization schemes include GPTQ, AWQ, the GGUF series (such as Q4_K_M) and others.
Quantization reduces storage and computation overhead by lowering numerical precision (e.g., mapping 16-bit floats to 4-bit integers), with common schemes including GPTQ, AWQ, and the GGUF format.
Decoding every WikiText-2 token through the INT4 weight path raises perplexity from 6.24 to 7.23 (round-to-nearest weights) or 6.99 (GPTQ in the same format).
40 more timeline events
All Facts (20)
GPTQ uses second-order gradient information to minimize quantization error, AWQ identifies and protects the weights with the greatest influence on activation values, and GGUF was introduced by the llama.cpp project and is specifically optimized for CPU inference.
90%VerifiedCommon model quantization methods include formats such as GPTQ, AWQ, and GGUF.
90%Verified4-bit quantization techniques (such as GPTQ, AWQ, and the GGUF format) can reduce model VRAM requirements to 1/4 of the original, but come with a certain degree of accuracy loss
90%VerifiedAWQ (2023) found that approximately 1% of salient channels in the weights have the greatest impact on model output, and protects these channels through equivalent scaling.
85%VerifiedCommon quantization schemes include GPTQ (requires GPU), AWQ, and GGUF format quantization within the llama.cpp ecosystem.
80%VerifiedIn GGUF quantization naming, Q4_K_M denotes a 4-bit quantization, Medium-precision variant using the K-Quant grouped quantization method
80%Verified4-bit quantization reduces model size to 1/8 of the original at the cost of approximately 1–3% accuracy loss.
80%VerifiedGGUF is a model format standard introduced by the llama.cpp project, supporting multiple quantization levels ranging from Q2_K to Q8_0.
80%VerifiedGGUF is a format widely used in the llama.cpp ecosystem, supports flexible quantization granularity from 2-bit to 8-bit, and is friendly to CPU inference.
80%VerifiedQuantization technology can compress model size by 50%–75%, reducing VRAM usage with minimal loss of accuracy.
80%Verified4-bit quantization compresses each parameter to 0.5 bytes, theoretically compressing 140GB down to approximately 35–40GB.
80%VerifiedThe mainstream quantization formats in the community include GGUF, AWQ, and GPTQ, among which GGUF was popularized by the llama.cpp project and supports CPU inference.
80%VerifiedAWQ identifies and protects the weights with the greatest influence on activation values, and typically achieves better accuracy than GPTQ at the same compression ratio.
80%VerifiedModels with 32B parameters can typically be compressed to approximately 16–20 GB of VRAM usage after quantization, and can be run on a single NVIDIA RTX 4090 (24 GB VRAM).
80%VerifiedBoth GPTQ and AWQ belong to Post-Training Quantization, requiring no retraining of the model and only a small amount of calibration data.
75%VerifiedThe core insight of AWQ is that only approximately 1% of salient weights have a major impact on model output, and protecting them enables model quality to be maintained at extremely low bit widths
75%VerifiedINT4 quantization can theoretically compress a model's VRAM footprint to one-quarter of FP16, with commonly used tools including GPTQ, AWQ, and GGUF.
75%VerifiedOllama uses the GGUF format by default; other common quantization formats include GPTQ.
70%VerifiedModern quantization schemes such as GPTQ, AWQ, and the grouped quantization of the GGUF format can reduce model size by more than 75% while retaining the vast majority of reasoning capability through layer-by-layer calibration and outlier protection.
70%VerifiedGPTQ is a post-training quantization scheme based on layer-wise error compensation, with minimal precision loss.
70%