Quantisation stores a model's weights, and sometimes activations and KV cache, in fewer bits: FP8 or INT8 instead of 16-bit, or about 4 bits with AWQ, GPTQ or GGUF. Llama 3.3 70B shrinks from about 140 GB to 70 GB in FP8 or 40 GB at 4-bit, losing little quality at 8 bits.
- Bytes per parameter
- BF16 2, FP8/INT8 1, 4-bit about 0.5–0.6
- Llama 3.3 70B weights
- ~141 GB BF16, ~71 GB FP8, ~40–43 GB at 4-bit
- GGUF Q4_K_M
- About 4.8–4.9 bits per weight (Ollama's 70B build is ~43 GB)
- Native FP8 hardware
- Ada (RTX 4090, L40S), Hopper (H100, H200), Blackwell
- Native FP4 hardware
- Blackwell (RTX PRO 6000, B200, B300)
- A100
- INT8 tensor cores, no FP8; runs FP8 and 4-bit checkpoints with weight-only kernels
- Speed effect
- Halving bytes per weight roughly doubles single-stream decode speed (estimate)
Quantisation is the reason a 70-billion-parameter model can run on one rented GPU instead of two or four. It trades a small, measurable amount of accuracy for large savings in memory and bandwidth, and on most inference workloads that trade is worth making. This guide explains how it works and compares the formats you will meet: FP8, INT8, AWQ, GPTQ, GGUF and the new 4-bit floating-point types. It then works out what each one means for VRAM, speed and cost.
Speed and cost figures are estimates from published bandwidth and our list prices, with the method shown. For the underlying mechanics of inference, see the complete guide to LLM inference.
What is quantisation?
Quantisation is representing a model's numbers in fewer bits than it was trained with, plus scale factors that map them back to approximately their original values. Models are usually released in BF16, 16 bits per weight. Quantised versions use 8 bits, around 4 bits, or fewer.
The core idea is a mapping. For each group of weights (a tensor, a channel, or a block of 32–128 values) the quantiser finds a scale so that the largest value fits the range of the smaller format, then rounds every weight to the nearest representable value:
q = round(w ÷ scale) stored in 8 or 4 bits
w' = q × scale used at runtime (close to w, not equal)
scale = max(|w| in group) ÷ largest representable valueSmaller groups track the weights more closely but store more scales, which is why "4-bit" formats really use about 4.5–5 bits per weight once scales are counted.
Why does quantisation make models faster as well as smaller?
Decode is limited by memory bandwidth: each generated token needs every active weight read from VRAM. Fewer bytes per weight means less to read per token, so single-stream speed rises roughly in proportion.
weights (GB) = parameters (billions) × bytes per parameter
single-stream tokens/s ≈ 0.6–0.75 × bandwidth ÷ weights (GB)For Llama 3.3 70B on an H100 PCIe (2.0 TB/s), BF16 does not fit one card, FP8 (70 GB) gives an estimated 17–21 tokens/s, and 4-bit (40 GB) about 30–38 tokens/s. Formats that also quantise activations, such as FP8 and INT8 W8A8, speed up prefill too, because the matrix multiplications themselves run on lower-precision tensor cores. Weight-only formats such as AWQ and GPTQ dequantise to 16-bit inside the kernel, so they help decode most. The tokens per second guide explains the bandwidth rule in detail.
What are the main quantisation formats?
There are three families: 8-bit formats that quantise weights and activations, 4-bit weight-only formats for GPU serving, and GGUF for llama.cpp and Ollama. Blackwell adds native 4-bit floating point.
| Format | Bits per weight | What is quantised | Used by | Notes |
|---|---|---|---|---|
| BF16 / FP16 | 16 | Nothing (baseline) | Everything | Release precision for most models |
| FP8 (E4M3) | 8 | Weights + activations | vLLM, SGLang, TensorRT-LLM | Near-lossless for most models; native on Ada, Hopper, Blackwell |
| INT8 W8A8 (e.g. SmoothQuant) | 8 | Weights + activations | vLLM, TensorRT-LLM | Option on A100, which has INT8 but no FP8 |
| AWQ | ~4.25–4.5 | Weights only | vLLM, SGLang, TGI | Activation-aware: protects the most salient weight channels |
| GPTQ | ~4.25–4.5 (also 3, 8) | Weights only | vLLM, SGLang, TGI | Uses second-order information to minimise layer error |
| GGUF Q8_0 / Q6_K / Q5_K_M / Q4_K_M | ~8.5 / 6.6 / 5.7 / 4.85 | Weights only | llama.cpp, Ollama, LM Studio | k-quants mix precisions by layer; Q4_K_M is the common default |
| bitsandbytes NF4 | ~4.1–4.5 | Weights only | Transformers, QLoRA | Mainly for fine-tuning on small GPUs, slower for serving |
| MXFP4 / NVFP4 | ~4.25–4.5 | Weights (and activations on Blackwell) | vLLM, TensorRT-LLM | gpt-oss ships MoE weights in MXFP4; native FP4 on Blackwell |
AWQ is described in the AWQ paper and GPTQ in the GPTQ paper. GGUF and its k-quants are documented in the llama.cpp repository.
How much quality do you lose?
Less than most people expect at 8 bits, a little at 4 bits, and clearly more below that. Exact losses depend on the model, the method and the task, so treat this as a guide and test on your own prompts.
| Precision | Typical effect | Where you may notice it |
|---|---|---|
| FP8 / INT8 | Generally within noise of BF16 on standard benchmarks | Rarely; occasionally very long-context retrieval |
| 6-bit, 5-bit (Q6_K, Q5_K_M) | Very small loss | Hard to detect in normal use |
| 4-bit (AWQ, GPTQ, Q4_K_M) | Small loss; larger models tolerate it better | Multi-step maths, exact code, non-English text, long context |
| 3-bit | Noticeable loss | Reasoning, factual recall, instruction following |
| 2-bit and below | Large loss for most models | Most tasks; mainly useful for experiments with huge models |
Two patterns hold across most published comparisons. Larger models lose less to the same bit width than small ones, so a 4-bit 70B model usually beats a 16-bit 8B model. And calibrated methods (AWQ, GPTQ, k-quants) beat naive round-to-nearest at 4 bits.
To check for yourself, run the same evaluation on the original and quantised model with EleutherAI's lm-evaluation-harness:
pip install "lm_eval[vllm]"
lm_eval --model vllm \
--model_args pretrained=Qwen/Qwen3-8B,gpu_memory_utilization=0.85,max_model_len=4096 \
--tasks gsm8k --batch_size auto
lm_eval --model vllm \
--model_args pretrained=Qwen/Qwen3-8B-FP8,gpu_memory_utilization=0.85,max_model_len=4096 \
--tasks gsm8k --batch_size autoThen run 50–200 of your own real prompts through both and compare the outputs side by side. That tells you more than any public benchmark.
Which GPUs support which formats?
Any GPU can store a quantised model, but only some run the low-precision maths natively. Without native support, an engine dequantises weights on the fly, which still saves memory and bandwidth but not compute.
| GPU | Architecture | FP8 tensor cores | FP4 tensor cores | Best formats |
|---|---|---|---|---|
| RTX 4090 | Ada | Yes | No | FP8, AWQ/GPTQ, GGUF |
| L40S | Ada | Yes | No | FP8, AWQ |
| A100 80GB | Ampere | No (INT8 yes) | No | INT8 W8A8, AWQ/GPTQ, BF16 |
| H100 / H200 | Hopper | Yes | No | FP8, AWQ |
| RTX PRO 6000 Blackwell | Blackwell | Yes | Yes | FP8, NVFP4 |
| B200 / B300 | Blackwell | Yes | Yes | FP8, NVFP4, MXFP4 |
A practical consequence: on an A100, an FP8 checkpoint runs through weight-only kernels, so it saves memory and helps decode but does not speed up prefill the way it does on an H100. If you are choosing between those two cards, H100 vs A100 covers the trade-off.
What does quantisation do to cost? Llama 3.3 70B worked through
Quantisation changes which GPU you need, which changes the hourly price, and it changes speed, which changes tokens per hour. Here is single-stream cost for Llama 3.3 70B on each sensible setup, using our list prices.
| Precision | Weights | GPU setup | Our price | Single-stream tok/s (est.) | $ per M tokens, one stream |
|---|---|---|---|---|---|
| BF16 | ~141 GB | 2× H100, tensor parallel | 2 × $4.99/hr ≈ $9.98 | ~15–19 | ~$163.07 |
| FP8 | ~71 GB | 1× H100 | $4.99/hr | 17–21 | $72.95 |
| FP8 | ~71 GB | 1× RTX PRO 6000 | $4.89/hr | 15–19 | $79.90 |
| 4-bit AWQ | ~40 GB | 1× H100 | $4.99/hr | 30–38 | $40.77 |
| 4-bit AWQ | ~40 GB | 1× A100 80GB | $3.79/hr | 29–36 | $32.39 |
| 4-bit Q4_K_M | ~43 GB | 1× L40S (short context) | $1.89/hr | 12–15 | $38.89 |
Method: tokens/s ≈ 0.6–0.75 × bandwidth ÷ weights, and cost per million = hourly price ÷ (midpoint tokens/s × 3,600 ÷ 1,000,000). The BF16 row is discounted from the theoretical 17–21 tokens/s for PCIe tensor-parallel overhead. Dollar figures are calculated from the live prices in the price column; two H100s cost 2 × $4.99/hr ≈ $9.98 an hour.
Going from BF16 to FP8 halves the GPUs and cost. Going from FP8 to 4-bit roughly halves single-stream cost again, at a small quality cost. Under heavy batching the picture shifts. Weight-only 4-bit kernels spend extra compute dequantising, while FP8 runs natively, so at high concurrency FP8 on Hopper often matches or beats 4-bit throughput. The extra KV room that a smaller model leaves still counts in 4-bit's favour. For memory sums across more models, see how much GPU memory LLMs need.
How do you quantise a model yourself?
Usually you shouldn't need to: model makers and established quantisers publish FP8, AWQ and GGUF builds of popular models, such as Qwen's Qwen/Qwen3-32B-AWQ and Qwen/Qwen3-32B-FP8. When you need your own, for example for a fine-tuned model, there are three routes.
1. FP8 on load in vLLM. No preparation: vLLM quantises BF16 weights as it loads them, on GPUs with FP8 support.
vllm serve Qwen/Qwen3-14B --quantization fp8 --kv-cache-dtype fp8 \
--max-model-len 32768 --gpu-memory-utilization 0.902. A saved FP8 checkpoint with llm-compressor. This makes a checkpoint any vLLM server can load directly. The example below follows the project's FP8-dynamic recipe (written against llm-compressor 0.5+; older releases import oneshot from llmcompressor.transformers):
from transformers import AutoModelForCausalLM, AutoTokenizer
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
MODEL_ID = "Qwen/Qwen3-8B" # or the path to your fine-tuned model
SAVE_DIR = "Qwen3-8B-FP8-Dynamic"
model = AutoModelForCausalLM.from_pretrained(MODEL_ID, torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
recipe = QuantizationModifier(targets="Linear", scheme="FP8_DYNAMIC", ignore=["lm_head"])
oneshot(model=model, recipe=recipe) # FP8 dynamic needs no calibration data
model.save_pretrained(SAVE_DIR)
tokenizer.save_pretrained(SAVE_DIR)vllm serve ./Qwen3-8B-FP8-Dynamic --max-model-len 32768llm-compressor has matching examples for INT8 W8A8 and 4-bit GPTQ-style weights, which need a few hundred calibration samples.
3. GGUF for Ollama and llama.cpp.
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
pip install -r requirements.txt
cmake -B build -DGGML_CUDA=ON && cmake --build build --config Release -j
python convert_hf_to_gguf.py /path/to/hf-model --outfile model-f16.gguf --outtype f16
./build/bin/llama-quantize model-f16.gguf model-Q4_K_M.gguf Q4_K_MTo use the result in Ollama, write a Modelfile containing FROM ./model-Q4_K_M.gguf and run ollama create mymodel -f Modelfile.
What about quantising the KV cache?
The KV cache can be quantised independently of the weights, and for serving many users it often matters as much. FP8 KV halves the per-token cache: Llama 3.3 70B drops from about 0.33 MB to 0.16 MB per token, so the same leftover VRAM holds twice the context or twice the users.
In vLLM, add --kv-cache-dtype fp8. Quality impact is usually small; check long-context retrieval tasks if they matter to you. On an 80 GB H100 running 70B FP8, this is the difference between a few concurrent conversations and roughly twice as many.
Quantisation also underpins cheap fine-tuning: QLoRA trains adapters on top of a 4-bit base model. See LoRA and QLoRA.
Which precision should you choose?
Start from the highest precision that fits with room for your KV cache, and step down only when you must.
- It fits in BF16 with room to spare: use FP8 anyway on Ada, Hopper or Blackwell. You get near-identical quality and double the KV room and decode speed.
- FP8 does not fit: use AWQ or GPTQ 4-bit in vLLM for multi-user serving, or GGUF Q4_K_M or Q5_K_M in Ollama for one user.
- On an A100: use BF16 if it fits, INT8 W8A8 or AWQ if not.
- On Blackwell: try NVFP4 checkpoints where the model maker publishes them, and validate quality.
- Quality-critical tasks such as maths, code or regulated content: keep 8 bits or more, or evaluate 4-bit carefully.
The Qwen tutorial shows AWQ and FP8 checkpoints being served on real cards.
When renting from Wandering Giants Compute fits
Quantisation decides which card you need, and Wandering Giants Compute lets you rent exactly that card by the minute. Several of our one-click models are already quantised: Qwen3 32B AWQ on a 48 GB L40S at $1.89/hr, Llama 3.3 70B FP8 on an 80 GB card such as the H100 at $4.99/hr, and Qwen3 235B-A22B FP8 on a B300. With Root you can quantise your own fine-tunes with llm-compressor or llama.cpp and serve them on the same machine. Compare the original and quantised versions side by side for an hour and pay only for the minutes used.
Frequently asked questions
What is quantisation in LLMs?
Quantisation is storing a model's numbers in a lower-precision format, such as 8-bit or 4-bit instead of 16-bit floating point, with scale factors that map them back to roughly the original values. It cuts memory and the bytes read per token, so the model fits smaller GPUs and decodes faster.
Does quantisation reduce model quality?
A little, depending on bits and method. FP8 and INT8 are generally close to the original on standard benchmarks. Good 4-bit methods lose a small amount that is often acceptable for chat and coding. Below 4 bits, quality drops noticeably. Always test on your own tasks.
Should I use FP8 or AWQ?
Use FP8 when it fits your GPU and the GPU supports it natively (Ada, Hopper, Blackwell): near-lossless, and fast at high batch sizes. Use AWQ 4-bit when FP8 does not fit, or for single-user speed on a smaller card.
What is the difference between GGUF, AWQ and GPTQ?
They are different formats and algorithms. GGUF is llama.cpp's file format with k-quant schemes such as Q4_K_M, used by Ollama and good for single-user and CPU/GPU mixes. AWQ and GPTQ are 4-bit weight-only methods for GPU serving engines such as vLLM, calibrated on sample data to protect the most important weights.
Can I quantise a model myself?
Yes. vLLM can quantise to FP8 on load with --quantization fp8. llm-compressor produces FP8, INT8, AWQ-style and GPTQ checkpoints, and llama.cpp's convert and quantize tools make GGUF files. Pre-quantised checkpoints from model makers are usually the safest starting point.
Does quantising the KV cache help?
Yes. Storing keys and values in FP8 halves the KV cache, letting you serve longer contexts or more concurrent users on the same GPU, usually with little quality impact. In vLLM, set --kv-cache-dtype fp8.
Rent the GPU for this, by the minute.
Run 70B in FP8 on one H100 or RTX PRO 6000, or 4-bit 32B models on a 48 GB L40S, billed by the minute with root access.
Prepaid credit, billed by the minute, stops itself when credit runs out. Prices in £, $, €, ¥, CA$, A$, CHF and S$; UK prices include VAT.
Keep reading
- Complete guideWhat Is LLM Inference? A Complete Technical Guide
- GuideHow Much GPU Memory Do You Need to Run LLMs?
- GuideWhat Is Tokens Per Second? Understanding LLM Inference Performance
- GuideWhat Is LoRA and QLoRA? A Practical Guide
- TutorialHow to Run Qwen Models on a Cloud GPU
- Head to headH100 vs A100: Which GPU Should You Rent?
About this article. Written by the Wandering Giants Compute team, the people who run Wandering Giants Compute. Hardware figures are the manufacturers’ published specifications. Speeds and costs marked as estimates are worked out from those specifications and our current prices, with the method shown; they are not measured benchmarks. Wandering Giants prices are taken live from our price list each time this page is built.
Last reviewed 25 November 2026.