# What is LLM quantization, and how much quality do you lose?

> Quantization stores LLM weights in 8 or 4 bits instead of 16. The memory math, what published evals show about quality loss, and when to use each format.

Source: https://www.nodus-compute.ai/blog/llm-quantization-explained/
Build revision: 372abb208b67222854e6381603edb9a5a46e196a

LLM quantization stores a model’s weights in fewer bits, usually 8 or 4 instead of 16, so the model needs roughly half or a quarter of the memory. On Nodus, that cut moves Qwen3-32B from a 96 GB GPU listed at $1.350/hr to a 48 GB RTX A6000 listed at $0.333/hr on the [Nodus pricing page](https://www.nodus-compute.ai/pricing/). Published evaluations put the quality loss at close to zero for 8-bit FP8 and at a point or two on most benchmarks for good 4-bit methods, with real damage only below 4 bits.

This guide explains how quantization works, shows the memory math on real checkpoint files, collects what the papers actually measured, and ends with a rule for which format to pick.

## How does quantization work?

A quantized model keeps the same architecture and the same number of parameters. Only the storage changes: each weight is rounded to one of a small set of values, plus a scale factor that maps those values back to real numbers.

Most models ship in BF16 or FP16, which is 2 bytes per weight. FP8 and INT8 use 1 byte. 4-bit formats use half a byte, and they store one scale for every small group of weights (often 128) so that rounding error stays local.

The methods differ in how they choose the rounded values:

* [GPTQ](https://arxiv.org/abs/2210.17323) rounds weights one layer at a time and uses second-order information to correct the error each rounding step introduces.
* [AWQ](https://arxiv.org/abs/2306.00978) (Activation-aware Weight Quantization) finds the weight channels that matter most by looking at activations and scales them up before rounding. Its paper says that “protecting only 1% salient weights can greatly reduce quantization error”.
* bitsandbytes NF4, introduced with [QLoRA](https://arxiv.org/abs/2305.14314), is a 4-bit data type designed for normally distributed weights. It quantizes when the model loads, with no calibration step, which is why it is the default for fine-tuning.
* FP8 uses an 8-bit floating-point format that NVIDIA Ada, Hopper and newer GPUs run natively, and it can quantize activations as well as weights.
* GGUF is the llama.cpp file format, with its own family of “k-quants” such as Q4_K_M. We cover those in detail in [GGUF quantization types explained](https://www.nodus-compute.ai/blog/gguf-quantization-types/).

You will also see names like W8A8 and W4A16. The first number is the bit width of the weights and the second is the activations. W4A16 means 4-bit weights with 16-bit math, which saves memory but not compute.

## How much memory does a quantized model save?

The weights take parameters times bytes per parameter. That gives a quick table for the two most common model sizes:

|Model size|16-bit (2 bytes)|8-bit (1 byte)|4-bit (0.5 bytes)|
|-|-|-|-|
|8B|8 x 2 = 16 GB|8 x 1 = 8 GB|8 x 0.5 = 4 GB|
|70B|70 x 2 = 140 GB|70 x 1 = 70 GB|70 x 0.5 = 35 GB|

Real files are bigger than this at low bit widths, and the gap matters when you pick a GPU. We summed the safetensors files of the official Qwen3-32B checkpoints on Hugging Face. The model card lists 32.8B parameters, so the simple math predicts 65.6 GB, 32.8 GB and 16.4 GB.

|Qwen3-32B checkpoint|Formula|Real files|Difference|
|-|-|-|-|
|[BF16](https://huggingface.co/Qwen/Qwen3-32B)|65.6 GB|65.52 GB|about 0%|
|[FP8](https://huggingface.co/Qwen/Qwen3-32B-FP8)|32.8 GB|34.32 GB|+4.6%|
|[AWQ INT4](https://huggingface.co/Qwen/Qwen3-32B-AWQ)|16.4 GB|19.33 GB|+17.9%|

![Qwen3-32B weights by format: the formula predicts 65.6, 32.8 and 16.4 GB for BF16, FP8 and AWQ INT4, while the real Hugging Face files are 65.52, 34.32 and 19.33 GB.](https://www.nodus-compute.ai/blog-charts/llm-quantization-explained/theory-vs-files.svg) *The 4-bit file is about 18% larger than the formula, because not every weight gets quantized.*

The AWQ gap is easy to explain. The model card counts 31.2B non-embedding parameters; at half a byte each those are 15.6 GB. The input embedding and the separate output layer (about 1.6B parameters) stay in 16-bit, which adds roughly 3.1 GB, and the per-group scales make up the rest.

Weights are only part of the bill, too. The KV cache and runtime overhead come on top, and [how to calculate LLM VRAM](https://www.nodus-compute.ai/blog/how-to-calculate-llm-vram/) walks through both.

## How much quality do you lose at 8 bits and at 4 bits?

At 8 bits, the published answer is very little. [LLM.int8()](https://arxiv.org/abs/2208.07339) reported 175B-parameter inference “without any performance degradation”. The largest study we found, “[Give Me BF16 or Give Me Death](https://arxiv.org/abs/2411.02355)”, ran over 500,000 evaluations on the Llama 3.1 family. It found that FP8 W8A8 “is effectively lossless across all model scales” and that well-tuned INT8 W8A8 “achieves surprisingly low (1-3%) accuracy degradation”.

At 4 bits, the loss is small but real. The same study found INT4 weight-only “is more competitive than expected, rivaling 8-bit quantization”. GPTQ reported “negligible accuracy degradation” at 3 or 4 bits on 175B models. QLoRA showed that fine-tuning through a frozen 4-bit model can preserve “full 16-bit finetuning task performance”.

The most useful numbers for a specific model come from its publisher. Qwen’s own model card for [Qwen3-32B-AWQ](https://huggingface.co/Qwen/Qwen3-32B-AWQ) compares it with BF16 in thinking mode:

|Benchmark (thinking mode)|BF16|AWQ INT4|
|-|-|-|
|LiveBench 2024-11-25|74.9|73.1|
|GPQA|68.4|69.0|
|MMLU-Redux|90.9|90.8|
|AIME24|81.4|79.4|

![Qwen3-32B in thinking mode, BF16 versus AWQ INT4: LiveBench 74.9 vs 73.1, GPQA 68.4 vs 69.0, MMLU-Redux 90.9 vs 90.8, AIME24 81.4 vs 79.4.](https://www.nodus-compute.ai/blog-charts/llm-quantization-explained/qwen3-quality.svg) *The 4-bit model loses 2 points on competition math and 1.8 on LiveBench, and is level on knowledge.*

Two patterns show up across these sources. Knowledge benchmarks such as MMLU barely move, while long reasoning chains such as AIME math lose the most. Below 4 bits, quality drops off: a study of [low-bit Llama 3](https://arxiv.org/abs/2404.14047) found the model “still suffers from non-negligible degradation”, “particularly under ultra-low bit widths”. Benchmarks are averages, so check your own task before you trust any of them.

## When should you quantize a model?

Quantize when the 16-bit model does not fit the GPU you want to pay for, or leaves too little room for the KV cache your traffic needs. Do not quantize when the BF16 model already fits comfortably and your latency is fine, because you take on an evaluation job for no saving. This is the rule we use:

|Situation|Format|Why|
|-|-|-|
|Serving with vLLM on Ada, Hopper or newer|FP8 first|Effectively lossless in the study above; native on these GPUs|
|Model still does not fit, or you want a cheaper GPU|4-bit AWQ or GPTQ (W4A16)|Smallest files vLLM serves well; run your own eval first|
|Serving on Ampere (A100, RTX A6000)|4-bit AWQ or GPTQ, or INT8 W8A8|vLLM runs FP8 here as weight-only, so memory is saved but not compute|
|Laptop, Mac or Ollama|GGUF Q4_K_M or higher|The format llama.cpp and Ollama load|
|Fine-tuning on one GPU|QLoRA with bitsandbytes NF4|Quantizes at load time; the adapter trains in 16-bit|

The hardware rows come from the [vLLM quantization docs](https://docs.vllm.ai/en/latest/features/quantization/), which list FP8 W8A8 for Ada and Hopper and AWQ and GPTQ for Turing through Hopper. The docs also say that when a GPU lacks the kernels for 8-bit activations, vLLM falls back to a weight-only kernel, which “costs no accuracy” but is not the scheme the checkpoint was benchmarked with.

Throughput adds a second dimension. The BF16 study found W4A16 “the most cost-efficient for synchronous setups”, while “W8A8 dominates in asynchronous continuous batching”. If you serve one user at a time, 4-bit helps most. If you batch many requests, FP8 often wins.

For fine-tuning, [LoRA vs QLoRA](https://www.nodus-compute.ai/blog/lora-vs-qlora/) covers when the 4-bit route is worth its slower steps.

## What does quantization save when you serve Qwen3-32B?

The saving is a cheaper GPU, not a faster one. We took the real file sizes above and found the smallest GPU on the Nodus pricing page that holds each version with room for the KV cache. vLLM claims 90% of GPU memory by default, so the room left is 0.9 x GPU memory minus the weights. Qwen3-32B’s config (64 layers, 8 KV heads, head size 128) needs 2 x 64 x 8 x 128 x 2 = 262,144 bytes of KV cache per token at 16-bit.

|Qwen3-32B format|GPU|KV cache room|About this many tokens|Listed $/hr|Per 24 h|
|-|-|-|-|-|-|
|BF16 (65.52 GB)|RTX PRO 6000, 96 GB|86.4 - 65.52 = 20.88 GB|79,650|$1.350|$32.40|
|FP8 (34.32 GB)|RTX 6000 Ada, 48 GB|43.2 - 34.32 = 8.88 GB|33,874|$0.743|$17.83|
|AWQ INT4 (19.33 GB)|RTX A6000, 48 GB|43.2 - 19.33 = 23.87 GB|91,056|$0.333|$7.99|

Prices checked November 29, 2026.

![Cost per day to serve Qwen3-32B at Nodus list prices: BF16 on an RTX PRO 6000 $32.40, FP8 on an RTX 6000 Ada $17.83, AWQ INT4 on an RTX A6000 $7.99.](https://www.nodus-compute.ai/blog-charts/llm-quantization-explained/cost-per-day.svg) *The 4-bit version costs a quarter of the BF16 version per day and still has more KV cache room.*

The token counts are upper bounds, since activations and CUDA graphs take some of that memory. BF16 skips the cheaper 80 GB A100 because it would leave only 6.48 GB, less than one 32K-token sequence needs (8.59 GB). FP8 would also fit the RTX A6000, but only as weight-only, so we priced the RTX 6000 Ada, the cheapest 48 GB Ada card with native FP8.

The AWQ row holds more context than the BF16 row at a quarter of the daily cost, in exchange for the 2-point math drop shown earlier. The FP8 row fits one full 32K-token sequence and little more, so for heavy batching take a larger GPU.

## How do you run a quantized model on Nodus?

Nodus runs any public container image as a Job, so the official vLLM image serves a pre-quantized checkpoint with no extra setup. Install the CLI, sign in and start the server:

Terminal window

```bash
pip install nodus-compute
nodus login

nodus run --name qwen3-32b-awq --gpu A6000 --image vllm/vllm-openai:v0.34.0 \
  --no-source --interruptible never \
  --disk 100Gi --timeout 8h --max-cost 5 -d \
  -- vllm serve Qwen/Qwen3-32B-AWQ --max-model-len 32768

nodus logs -f job/qwen3-32b-awq
nodus port-forward job/qwen3-32b-awq 8000
```

vLLM reads the quantization method from the checkpoint’s config, so `vllm serve` needs no quantization flag. Every Nodus flag is on the [nodus run reference page](https://www.nodus-compute.ai/docs/reference/cli/nodus_run/). `--interruptible never` keeps a server off capacity that can be reclaimed, and `--timeout 8h` caps the test at 8 x $0.333 = $2.66, with `--max-cost 5` as a hard spend cap. Qwen3-32B-AWQ is not gated, so no Hugging Face token is needed; for gated models, add one as a [Secret](https://www.nodus-compute.ai/docs/guides/secrets/).

We built this command from the documented flags and have not timed a cold start for this post. The OpenAI-compatible API then answers on `localhost:8000`, and [running vLLM in Docker](https://www.nodus-compute.ai/blog/run-vllm-in-docker/) has test requests and fixes for a container that exits early.

## FAQ

### Does quantization make inference faster?

Sometimes. 4-bit weight-only formats mainly speed up decoding with small batches, where reading weights from memory is the bottleneck, and GPTQ reported speedups of around 3.25x on an NVIDIA A100 over FP16. With large batches the math dominates, which is why FP8 W8A8 tends to win there.

### Can you quantize a model yourself?

Yes. vLLM’s docs point to LLM Compressor for FP8, INT8 and INT4 checkpoints. GPTQ and AWQ also need a small calibration dataset and a GPU that can hold the model while it is quantized. For popular models, check Hugging Face for an official quantized release first, since publishers usually report its evals.

### Should you quantize the KV cache too?

It is a separate setting from weight quantization, and vLLM lists quantized KV cache as its own feature. It saves memory on long contexts, but test it on your workload, because it changes attention math that weight-only evaluations never touched.

### Can you fine-tune a quantized model and serve it on Nodus?

Yes. A common path is QLoRA training on a 4-bit base, merging the adapter into the 16-bit model, then quantizing the merged model again for serving. Nodus runs both steps, the training as a capped Job or a TrainingJob (Beta) and the serving with the command above.
