LLM Quantization Methods Compared: INT8, FP8, INT4 and What to Choose

LLM Quantization Methods Compared: INT8, FP8, INT4 and What to Choose

LLM quantization methods compared side by side show a simple trade: lower precision means smaller models, faster inference and cheaper serving, at the cost of some accuracy. LLM quantization methods compared in this guide cover the formats teams actually deploy, from 8-bit floating point to 4-bit integer weights, with the hardware and accuracy trade-offs that decide between them. The central question is which method fits a given model and GPU, and the short answer is that FP8 suits modern datacentre GPUs at larger batches, INT4 suits memory-bound single-user serving, and INT8 suits older hardware that lacks FP8 support.

Quantization replaces the 16-bit floating point numbers a model was trained with by lower-precision numbers, typically 8-bit or 4-bit, for weights, activations, or both. A 70-billion-parameter model at 16-bit precision needs around 140 gigabytes of memory for weights alone, which is more than a single high-end GPU holds; at 8-bit it needs roughly half, and at 4-bit roughly a quarter. That saving decides whether a model fits on one GPU, how many requests can run at once, and how fast each token arrives.

Key takeaways

  • LLM quantization methods compared: FP8, INT8, INT4 weight-only, GPTQ and AWQ each suit different hardware and batch sizes.
  • Weight-only quantization helps most at small batch sizes, where decoding is limited by memory bandwidth.
  • Weight and activation quantization helps most at large batch sizes, where compute density matters too.
  • Accuracy loss is usually small for 8-bit formats and grows at 4-bit, so always measure on your own evaluation set.
  • Match the format to the GPU: FP8 needs Hopper or newer, INT8 runs on Ampere and older cards.

What quantization actually changes

Every number in a model is stored with a fixed number of bits, and fewer bits means less information per number. Quantization maps the original values onto a smaller set of representable values, usually with a scaling factor that keeps the range sensible. The rounding this introduces is called quantization error, and the whole craft of the field is keeping that error small where it matters.

Two choices define any method. The first is what gets quantized: weights only, or weights and activations together.

Weight-only methods store the weights at low precision and dequantize them on the fly, while activations stay at 16-bit. The second choice is the granularity of the scaling factors: one factor per tensor, per token, per channel, or per block of values. Finer granularity tracks the data more closely and loses less accuracy, at the cost of more bookkeeping.

FP8: the datacentre default on modern GPUs

FP8 is an 8-bit floating point format with two common variants, E4M3 and E5M2, that trade range against precision. It is the natural step down from 16-bit floating point, and NVIDIA’s Hopper GPUs, including the H100, have dedicated FP8 tensor cores that accelerate it directly. TensorRT-LLM supports FP8 for weights, activations and the KV cache, and vLLM supports FP8 weight and activation quantization on Hopper hardware.

Measured accuracy loss for FP8 is small. In NVIDIA’s published TensorRT-LLM benchmarks, LLaMA-v2-70B scored 69.1 on MMLU at FP16 and 68.5 at FP8, and Falcon-180B lost only 0.14 points.

Speedups are modest at small batches: FP8 ran about 1.5 times faster than FP16 on LLaMA-v2-7B at batch size one on an H100, and up to 2.3 times faster when first-token latency is constrained and the batch is larger. Best for: datacentre serving on H100 or newer GPUs, especially at larger batch sizes where both memory and compute matter.

FP8 also has a KV cache variant, which stores the attention cache at 8-bit precision and roughly halves the memory each long conversation needs. That matters for long-context serving, where the cache, not the weights, becomes the limit. For more on that limit, see our guide to KV cache optimisation, which explains how cache size shapes concurrency.

INT8: the wide-compatibility workhorse

INT8 stores weights and activations as 8-bit integers with a scaling factor, and it runs on a much wider range of hardware than FP8, including Ampere-generation GPUs such as the A100 and many CPUs. The best-known INT8 method for language models is SmoothQuant, published in 2022, which shifts quantization difficulty from activations to weights by smoothing out outlier values before quantizing. TensorRT-LLM implements INT8 SmoothQuant as a weight-and-activation method.

The accuracy cost of INT8 is larger than FP8: in the same benchmarks, LLaMA-v2-70B fell from 69.1 to 67.2 on MMLU with INT8 SmoothQuant, and Falcon-180B lost 2.56 points. Speed is comparable to FP8 at small batches, around 1.4 to 1.5 times faster than FP16, but the accuracy gap is why teams with Hopper hardware usually choose FP8 instead. INT8 remains the right choice where FP8 hardware is absent, and our guide to FP8 inference explains the hardware boundary in more detail.

INT4 weight-only: GPTQ and AWQ

INT4 weight-only methods quantize the weights to 4 bits while activations stay at 16-bit, which roughly quarters the model’s memory footprint. They are the way a 70-billion-parameter model fits on a single consumer or workstation GPU, and the way a 7-billion-parameter model runs comfortably on a laptop. Two algorithms dominate: GPTQ, published in 2022, which quantizes weights layer by layer while compensating for the error it introduces, and AWQ, published in 2023, which protects the small number of salient weights that matter most for accuracy.

Because only the weights shrink, INT4 weight-only methods help most when decoding is limited by memory bandwidth, which is the case at small batch sizes: reading fewer weight bytes per token directly speeds up each token. At large batch sizes, where activations and compute dominate, the benefit shrinks, and a weight-and-activation method such as FP8 usually wins.

Accuracy loss at 4-bit is larger than at 8-bit but often acceptable: in NVIDIA’s benchmarks, INT4 AWQ on LLaMA-v2-70B scored 68.4 on MMLU against 69.1 at FP16, a loss of about one point. Best for: single-user and edge serving where the model must fit on limited memory and batches stay small.

Five processor chips of decreasing size arranged on a workbench
Lower precision means a smaller footprint: the same model at 4-bit weights takes roughly a quarter of the memory it needs at 16-bit.

Other formats worth knowing

FP4 is the next step down, with NVIDIA’s Blackwell GPUs offering dedicated support through the NVFP4 format. Accuracy loss grows and the hardware base is still small, so it is an early-adopter choice rather than a default. FP16 and BF16 remain the reference precisions: BF16 is the usual training and baseline serving format, and every quantized result should be compared against it on the same evaluation set.

Calibration data deserves more attention than it usually gets. Post-training methods measure activation statistics on a sample of text, and a calibration set that does not resemble production traffic produces scaling factors that fail there. Use prompts from the real workload and re-check accuracy after any change to the calibration set.

Comparing quantization methods

Method Precision Memory vs FP16 Accuracy loss (MMLU, LLaMA-v2-70B) Hardware Best for
FP8 Weights and activations About half 0.87 points Hopper and newer Datacentre serving, larger batches
INT8 SmoothQuant Weights and activations About half 2.75 points Ampere and newer Older GPUs without FP8
INT4 AWQ Weights only About a quarter 1.01 points Most GPUs and CPUs Small batches, limited memory
INT4 GPTQ Weights only About a quarter Similar to AWQ Most GPUs and CPUs Small batches, limited memory
FP4 NVFP4 Weights and activations About an eighth Larger, workload dependent Blackwell only Early adopters on new hardware
BF16 baseline Full precision Full size None All Accuracy reference point

The accuracy figures come from NVIDIA’s published TensorRT-LLM benchmarks on LLaMA-v2-70B, where the FP16 baseline scored 69.1 on MMLU. Your own model and workload will differ, which is why the table is a starting point for measurement, not a substitute for it. For a closer comparison of the two 4-bit formats, see our guide to INT4 vs INT8 quantization.

How to choose

Start from the hardware. If the fleet is Hopper or newer, FP8 is the default for serving, with FP8 KV cache added for long contexts.

If the fleet is Ampere or mixed, INT8 is the compatible choice, and the accuracy cost should be checked against the product’s quality bar. If the model must fit on one GPU or run at the edge, INT4 weight-only with GPTQ or AWQ is the practical route.

Then consider batch size. Small batches, typical of chat and single-user serving, are memory-bound, so weight-only quantization gives most of the benefit.

Large batches, typical of offline processing and busy APIs, are compute-bound as well, so a method that quantizes activations too, such as FP8 or INT8, earns its keep. Our guide to GPU memory optimisation explains how to tell which bound applies to a given workload.

Finally, measure accuracy on the team’s own evaluation set, not on published benchmarks alone. A model that loses a point on MMLU can lose far more on a specialised task, so run the quantized model through the same evaluations as the full-precision model before committing.

LLM quantization checklist

  • The target GPU is identified and the formats it accelerates are listed before any method is chosen.
  • BF16 accuracy is recorded on the team’s own evaluation set as the reference point.
  • Calibration data comes from real production prompts, covering the languages and formats served.
  • Each candidate method is benchmarked for latency and throughput at the product’s real batch sizes.
  • Accuracy is re-measured after quantization, including on the hardest prompts in the product.
  • KV cache quantization is considered separately for long-context workloads.
  • The quantized model is load-tested for memory use under peak concurrency.
  • A rollback to the full-precision model is possible if quality monitoring shows a regression.
  • Quantization settings are versioned with the model so a rebuild reproduces the same artefact.
  • Quality is monitored after deployment, not only in the one-off evaluation.

Frequently asked questions

Does quantization change the model’s answers?

Yes, slightly. Rounding weights and activations to fewer bits changes the arithmetic, so outputs can differ from the full-precision model. The differences are usually small for 8-bit formats and larger at 4-bit, which is why accuracy should be measured on the team’s own evaluation set.

Is FP8 always better than INT8?

On hardware that supports it, usually yes: published benchmarks show smaller accuracy loss for FP8 than for INT8 SmoothQuant at similar speed. On older GPUs without FP8 tensor cores, INT8 is the better choice because FP8 would run without acceleration.

What is the difference between GPTQ and AWQ?

Both are 4-bit weight-only methods. GPTQ quantizes weights layer by layer and compensates for the error as it goes, while AWQ identifies the small set of salient weights that matter most and protects them with per-channel scaling. In published results their accuracy is close, and the choice often comes down to tooling support.

Can quantization and speculative decoding be combined?

Yes. A quantized target model can still verify draft tokens, and a quantized draft model can propose them. The combination is common in local serving, where both memory and latency matter, though each technique should be measured separately first.

Do I need to retrain my model to quantize it?

No, for post-training quantization, which is the usual route and needs only a small calibration dataset. Quantization-aware training can recover more accuracy but requires a training run, so it is reserved for cases where post-training results fall short.

How much memory does quantization actually save?

Roughly half at 8-bit and roughly a quarter at 4-bit weight-only, relative to 16-bit weights. The KV cache is a separate saving: quantizing it to FP8 roughly halves the memory each concurrent request needs, which matters most for long conversations.

Latest articles

Scroll to Top