What is GPTQ?

GPTQ is a post-training quantisation method that reduces a trained large language model's weights to low bit widths such as 4 or 3 bits, layer by layer, using a small calibration set.

Its name combines Generative Pre-trained Transformer and quantisation. Unlike Activation-aware Weight Quantisation, which protects important weights by scaling them by activation, GPTQ quantises weights in sequence and offsets each step's error on weights not yet quantised. Both are weight-only forms of post-training quantisation.

Topic
Machine learning, models and training
Also known as
GPTQ quantisation, GPTQ quantization
Origin
2022, Frantar, Ashkboos, Hoefler and Alistarh

How GPTQ works

  1. A small sample set is passed through the model as calibration data and each layer's inputs are recorded.
  2. These give a second-order estimate of how sensitive the layer output is to its weights.
  3. Weights are quantised column by column, with each step's error pushed onto remaining weights so the output changes least.
  4. The result is low-bit weights plus scale values, run at inference with suitable kernels.

In more detail

Inference speed: memory-bound and compute-bound regimes

Weight-only 4-bit GPTQ (W4A16) accelerates single-user or low-batch decoding, which is memory-bandwidth-bound, by loading 4x fewer bytes from VRAM. However, at high batch sizes or during long-prompt prefill (compute-bound regimes), weights still have to be dequantised back to FP16 on the fly for Tensor Core multiplication, so specialised fused kernels like Marlin are required and unoptimised GPTQ kernels can be slower than FP16 or native FP8.

Key settings: group size and activation order

GPTQ's accuracy and speed depend heavily on hyperparameters such as group size (typically 128 or 64), symmetric versus asymmetric quantisation and activation-order sorting (desc_act). Enabling desc_act quantises the most impactful weight columns first for better accuracy, but scatters column indices and makes fast fused GPU kernels harder to schedule.

Calibration bias and its place on newer hardware

Because GPTQ uses a small calibration set (typically 128 to 512 samples) to estimate the inverse Hessian, calibrating exclusively on English web text degrades non-English languages, domain jargon, code or tool-calling reliability. On newer data centre GPUs (Hopper and Blackwell), teams frequently prefer native FP8 (W8A8) or FP4 formats for throughput, reserving GPTQ and AWQ mainly for older Ampere GPUs or tight single-card memory budgets.

Commonly confused terms

TermHow it differs
GGUFGPTQ is a weight-only (typically W4A16) GPU-oriented quantisation format relying on CUDA kernels such as Marlin or ExLlamaV2; GGUF is a container and quantisation family primarily designed for llama.cpp across CPUs, Apple Silicon and hybrid CPU-GPU execution with different k-quant schemes.
Quantisation-aware trainingPTQ (such as GPTQ) compresses an already trained model using a small calibration dataset in minutes to hours; QAT (Quantisation-Aware Training) simulates quantisation noise during training or fine-tuning, requiring significantly more compute and training data.

Why GPTQ matters for on-premises AI

Quantisation directly changes on-premise hardware plans: a 70 billion parameter model's weights take 70 billion × 2 bytes = 140 GB at 16 bits but 70 billion × 0.5 bytes = 35 GB at 4 bits, before group scales and unquantised layers. The calibration set is small, so it can be built from internal text without data leaving. Turkish and domain performance is then measured on the organisation's own test set, as losses grow at lower bit widths.

ON-PREMISES EXAMPLE

A defence organisation quantises the language model on its air-gapped network to 4 bits with GPTQ, calibrating on its own Turkish documents; the model fits its existing GPU server.

Common questions

What is the difference between GPTQ and AWQ?

Both are post-training weight quantisation. GPTQ compensates error by spreading it over remaining weights; AWQ protects important weights by scaling them according to activations.

Does GPTQ require retraining?

No. It is applied after training with only a small calibration set and needs far less compute than full training.

Sources

In the glossary: Glossary, E to L

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.