Post-Training Quantization for LLMs: 8-Bit vs 4-Bit Methods Guide
Aug, 20 2026
Running a 70-billion parameter model on a single GPU used to be a pipe dream. Today, it's a standard Tuesday afternoon task for many ML engineers. The secret weapon? Post-Training Quantization. It’s the process of shrinking your model’s numerical precision after training is done, without needing to retrain or even touch the original dataset. If you’re looking to cut inference costs by 50% or fit massive models into consumer hardware, this is where you start.
The difference between 8-bit and 4-bit methods isn't just about file size; it’s about how much accuracy you’re willing to trade for speed. Get it wrong, and your chatbot starts hallucinating. Get it right, and you get 2x faster token generation with negligible quality loss. Let’s break down exactly how these techniques work, which ones to use, and how to avoid the common pitfalls that trip up most developers in 2026.
Why Post-Training Quantization Matters Now
Large Language Models (LLMs) are hungry. A 7B parameter model in FP16 format eats about 14GB of memory. A 70B model needs roughly 140GB. That means you need high-end server GPUs like the A100 or H100, which are expensive and hard to source. But here’s the thing: most of those bits aren’t doing heavy lifting. They’re just adding noise.
Post-Training Quantization (PTQ) is a model compression technique that reduces the bit-width of pre-trained weights and activations from 16-bit floating point to lower integers like 8-bit or 4-bit without retraining. According to recent industry data, PTQ adoption has surged to 63% among enterprises deploying LLMs, up from 29% in 2024. Why? Because it delivers 40-60% reductions in inference costs almost immediately. You don’t need a PhD in math to apply it, but you do need to understand the trade-offs between different methods.
The main benefit is twofold: memory efficiency and computational speed. By reducing precision, you reduce the amount of data moving across the bus and the complexity of arithmetic operations. For 4-bit quantization, you’re looking at a 4x reduction in memory footprint compared to FP16. That turns a multi-GPU setup into a single-node deployment.
Understanding the Core Methods: SmoothQuant, AWQ, and GPTQ
Not all quantization is created equal. Naive quantization-just chopping numbers-often breaks models because of "outliers." These are specific neurons with unusually high activation values that mess up the scaling. To fix this, researchers developed three primary methodologies that dominate the landscape today.
- SmoothQuant is a technique developed by MIT-IBM Watson AI Lab that migrates quantization difficulty from activations to weights using mathematical smoothing. It’s the go-to for 8-bit weight and 8-bit activation (W8A8) quantization. It handles outliers by scaling them down before quantization, preserving accuracy across models like LLaMA and OPT.
- Activation-aware Weight Quantization (AWQ) is a method that identifies and preserves 'salient weights' aligned with high-magnitude activations while aggressively quantizing less important ones. AWQ shines in 4-bit scenarios. Instead of treating all weights equally, it keeps the critical few at higher precision. This results in only a 1.0-1.5% accuracy drop on large models, compared to 5-10% for naive methods.
- GPTQ is an efficient second-order quantization algorithm that minimizes error accumulation during layer-wise quantization. Created by Tim Dettmers, GPTQ is widely used for 4-bit quantization via libraries like auto-gptq. It requires calibration data but offers excellent balance between speed and quality.
In practice, you often see combinations. For instance, using SmoothQuant to handle activations and AWQ to handle weights can yield 4-bit weights with 8-bit activations, maintaining over 99% of baseline accuracy on benchmarks like MMLU.
8-Bit vs. 4-Bit: Which Should You Choose?
This is the big decision. Here’s the straightforward comparison to help you decide based on your hardware and accuracy requirements.
| Feature | 8-Bit (INT8) | 4-Bit (INT4) |
|---|---|---|
| Memory Reduction | 2x vs FP16 | 4x vs FP16 |
| Accuracy Loss | < 0.5% (negligible) | 1.0 - 3.0% (noticeable in edge cases) |
| Best For | Production APIs, high-accuracy needs | Edge devices, cost-sensitive deployments |
| Hardware Support | Most modern GPUs (Ampere+) | Requires specific kernels (TensorRT, vLLM) |
| Calibration Time | Moderate (hours) | Longer (due to sensitivity) |
If you’re serving an API where every percentage point of accuracy counts, stick with 8-bit. It’s virtually lossless. But if you’re running local inference on a laptop or trying to serve multiple users on a single budget GPU, 4-bit is your friend. Just be aware that 4-bit is more sensitive to context length. As noted by Dr. Tim Dettmers, error accumulation can become noticeable beyond 4K tokens in long-context generation.
Implementation Steps and Best Practices
Getting started doesn’t require reinventing the wheel. Most teams use existing libraries like Hugging Face Optimum, vLLM, or NVIDIA TensorRT Model Optimizer. Here’s a practical workflow:
- Select Your Method: Choose SmoothQuant for W8A8 or AWQ/GPTQ for 4-bit weights. Check compatibility with your target hardware (e.g., NVIDIA Tensor cores).
- Prepare Calibration Data: You don’t need the full training set. Use 128-512 representative samples from your domain. For 7B-13B models, 128 samples usually suffice. For 70B+, aim for 512+. Bad calibration data leads to 3-5% accuracy drops.
- Run the Quantization Script: Use tools like
optimum-cliorauto-gptq. Monitor memory usage during this step; you’ll need 1-2x the model's memory footprint for calibration. - Benchmark Thoroughly: Don’t just look at perplexity. Test on zero-shot tasks relevant to your use case (e.g., MMLU for general knowledge, HumanEval for coding). Compare against your FP16 baseline.
- Deploy with Optimized Inference: Load the quantized model using a runtime that supports the specific format (e.g., vLLM for AWQ, TensorRT for INT8).
A pro tip: Always keep a copy of your FP16 model for A/B testing. Users might not notice a 1% drop in benchmarks, but they will notice if the tone shifts or if specific niche queries fail.
Common Pitfalls and How to Avoid Them
Even with advanced tools, things can go wrong. Here are the top issues reported by developers in 2026:
- Rotary Position Embeddings (RoPE): 4-bit quantization of RoPE layers can cause 5-7% accuracy drops in long-context tasks. Solution: Keep RoPE layers in FP16 or use specialized handling in libraries like llama.cpp.
- Insufficient Calibration Data: Using fewer than 64 samples risks significant degradation. Ensure your calibration set reflects the actual distribution of your production data.
- Hardware Mismatch: Not all GPUs support fast 4-bit integer operations. If you’re on older Pascal or Volta cards, 8-bit might actually be faster due to better kernel optimization.
- Over-Optimizing for Benchmarks: MMLU is great, but it’s static. If your app involves creative writing or complex reasoning, test those specifically. Benchmark scores don’t always correlate with user satisfaction.
Future Trends: Hybrid and Adaptive Quantization
The field is moving fast. We’re seeing the rise of hybrid approaches where different layers use different bit-widths. For example, attention heads might stay at 8-bit while feed-forward networks drop to 4-bit. NVIDIA announced "Adaptive Quantization" in TensorRT 9.0 (GTC 2026), which dynamically adjusts bit-width during inference, claiming a 15% additional speedup over static methods.
Also, watch out for microscaling (MX) formats. These allow for 4-bit weights with 8-bit activations using new hardware instructions, achieving less than 1% accuracy degradation. As enterprise adoption hits 75% by late 2026, expect standard tooling to handle these complexities automatically. For now, mastering the core PTQ methods gives you a solid foundation to adapt as the tech evolves.
Does post-training quantization require retraining?
No. That’s the whole point of PTQ. You apply it to a pre-trained checkpoint. However, you do need a small calibration dataset to determine optimal scaling factors, but no gradient updates or backpropagation are involved.
Which is better: AWQ or GPTQ for 4-bit quantization?
It depends on your workflow. AWQ is generally faster to calibrate and integrates well with vLLM. GPTQ often produces slightly better accuracy on some benchmarks but can be slower to run. Many teams find AWQ sufficient for production, while GPTQ is preferred for research-grade accuracy comparisons.
Can I quantize a model to 3-bit or lower?
Technically yes, but practically risky. Below 4-bit, accuracy degradation becomes significant (often >5%) and error accumulation in long contexts becomes problematic. Unless you have extreme memory constraints, 4-bit is the current sweet spot for balance.
How much memory does 4-bit quantization save?
It reduces the model weight size by approximately 4x compared to FP16. For a 7B model, this means going from ~14GB to ~3.5-4GB. Note that you still need space for KV cache and activations, so total VRAM usage will be higher than just the weight size.
Is 8-bit quantization worth it if I have enough VRAM for FP16?
Yes, primarily for speed. INT8 operations are often faster than FP16 on modern hardware due to dedicated tensor cores. Even if memory isn’t an issue, you can achieve 1.5x-2x throughput improvements with negligible accuracy loss, making it ideal for high-concurrency API services.