tutorial 7 min read

AWQ vs GPTQ: Which 4-Bit LLM Quantization Wins on GPUs?

Ludovico Bessi

By Ludovico Bessi

Senior Machine Learning Engineer at Google · Zurich

Head-to-head comparison of AWQ vs GPTQ for 4-bit GPU LLM serving in vLLM and SGLang: accuracy preservation, Marlin kernel speed, calibration risk, and when to use each.

AWQ GPTQ quantization vLLM LLM inference
AWQ vs GPTQ Comparison for 4-bit Production GPU LLM Serving
AWQ vs GPTQ head-to-head for production 4-bit GPU inference: activation-aware scaling vs. Hessian error compensation.

TL;DR

  • For new 4-bit production GPU deployments on vLLM or SGLang, pick AWQ: faster calibration, lower overfitting risk, and strong Marlin kernel throughput.
  • Both AWQ and GPTQ cut FP16 weight VRAM by ~4× (~140 GB down to ~38–40 GB on a 70B model).
  • On H100/L40S GPUs with enough VRAM, benchmark native FP8 first before dropping to 4-bit AWQ or GPTQ.

Direct answer: For new 4-bit GPU deployments on vLLM or SGLang, pick AWQ over GPTQ. Both shrink FP16 model weights by 4× (140 GB → ~38 GB on a 70B model), but AWQ protects the ~1% salient weight channels via per-channel scaling instead of iteratively modifying weights with Hessian updates — making it faster to calibrate, less prone to overfitting your calibration dataset, slightly stronger on instruction-tuned chat models, and natively accelerated by ultra-fast Marlin kernels. Pick GPTQ mainly when a pre-quantized Hugging Face checkpoint already exists for your model or you deploy on ExLlamaV2.

Size your exact GPU count and $/1M token savings with our free LLM VRAM & Quantization Calculator, and subscribe free to Machine Learning at Scale on Substack for weekly LLM serving teardowns.

AWQ vs GPTQ: Side-by-Side Comparison

Dimension AWQ (Activation-Aware Weight Quantization) GPTQ (Second-Order Hessian Quantization)
Core Mechanism Identifies ~1% salient weights via activation magnitudes and scales channels before INT4 rounding Quantizes weights column-by-column using approximate inverse Hessian to compensate rounding error
70B Model VRAM ~38–40 GB (group size 128) ~38–40 GB (group size 128)
Calibration Risk Low — preserves out-of-distribution generalization Higher — can overfit if calibration set mismatches production prompts
Calibration Speed Fast (~15–30 min for 70B) Slower (inverse Hessian updates per layer)
vLLM / SGLang Throughput Excellent (fused Marlin INT4 kernels) Excellent (Marlin kernel supported for symmetric INT4)
Chat / Instruction Quality Consistently matches or edges out GPTQ at 4-bit Strong at 4-bit; supports 3-bit and 2-bit experiments
Best Serving Stack vLLM, SGLang, TensorRT-LLM vLLM, ExLlamaV2, GPTQModel

How the Two Algorithms Actually Differ

How GPTQ Works

GPTQ treats quantization as a layer-wise reconstruction problem (min ||WX - W_q X||_2^2). As it rounds weights column by column into 4-bit integers, it computes an approximate second-order Hessian from a small calibration set and adjusts the remaining unquantized weights to cancel out the rounding error. That works well mathematically, but because weights are actively rewritten to fit the calibration activations, a poorly matched calibration dataset can degrade performance on domain-specific code or chat prompts.

How AWQ Works

AWQ observed a simpler property of transformer weights: roughly 1% of weight channels carry disproportionate impact — and you can identify them by looking at activation magnitudes, not weight magnitudes. Rather than keeping mixed-precision weights (which hurts GPU kernel speed), AWQ multiplies those salient channels by a per-channel scaling factor s > 1 before uniform INT4 quantization and folds 1/s into the preceding LayerNorm/linear layer. Because AWQ never back-solves weights to fit calibration outputs, it generalizes better across unseen domains and multimodal inputs.

Production Rule of Thumb (Hopper vs. Ampere GPUs)

  • On H100 / H200 / L40S (Hopper & Ada): Benchmark FP8 before 4-bit AWQ/GPTQ. Native FP8 tensor cores deliver ~2× memory savings, near-zero quality loss, and higher large-batch throughput than INT4 dequantization kernels.
  • On A100 / A10G / L4 or memory-bound 70B single-GPU serving: Use INT4 AWQ with Marlin kernels in vLLM or SGLang — cutting 70B from 2×80 GB GPUs down to 1×80 GB GPU with plenty of headroom for FP8 KV cache.
  • On local Apple Silicon or CPU: Neither AWQ nor GPTQ is ideal — use GGUF Q4_K_M vs Q5_K_M vs Q8_0 with llama.cpp / Ollama.

Go deeper: LLM Quantization: GPTQ vs AWQ vs GGUF · LLM Inference Cost Optimization · DSpark Speculative Decoding · LLM VRAM Calculator.

Frequently Asked Questions

Is AWQ better than GPTQ for vLLM?

For most new production deployments on vLLM or SGLang, yes. AWQ calibrates faster, is less sensitive to calibration dataset mismatch, and matches or slightly outperforms GPTQ on instruction-tuned chat models while running on fast Marlin INT4 kernels.

How much VRAM do AWQ and GPTQ save compared to FP16?

Both INT4 AWQ and GPTQ reduce model weight VRAM by roughly 3.5–4× compared to FP16 (about 0.5–0.56 bytes per parameter including group scales), shrinking a 70B model from ~140 GB to ~38–40 GB.

When should I still choose GPTQ over AWQ?

Choose GPTQ when a verified pre-quantized Hugging Face checkpoint already exists for your exact model, when deploying on ExLlamaV2, or when experimenting with sub-4-bit (3-bit/2-bit) compression.

Get the Machine Learning at Scale newsletter

Join 13k+ ML engineers reading weekly deep dives on production ML systems and growing your ML career to Senior and beyond. Free on Substack.

Subscribe Free on Substack
Ludovico Bessi, Senior ML Engineer at Google

Ludovico Bessi

Senior Machine Learning Engineer at Google in Zurich. Previously worked on large-scale abuse ML systems, end-to-end YouTube Ads, YouTube Shopping recommendations, CERN, and Volvo. Writes the weekly Machine Learning at Scale newsletter.

Related Articles