Skip to main content
AI · LANGUAGE MODELS

What Is LLM Quantization?

LLM quantization stores a language model’s weights in fewer bits than the 16-bit format it is released in, usually 8 or 4 bits. An 8-billion-parameter model shrinks from about 16 GB to 8 GB or 4 to 5 GB, and generates text faster, with a small accuracy loss that good methods such as GPTQ, AWQ and GGUF K-quants keep low.

01

What LLM quantization is

LLM quantization is the process of storing a large language model’s numbers in fewer bits than the 16-bit format it is usually released in, most often 8 or 4 bits. The main target is the weights, the billions of learned parameters that make up nearly all of the model file. Some methods also quantize the activations passed between layers, or the cache of past tokens the model keeps while it writes.

Two things improve. The model needs less memory, so it fits on smaller hardware or leaves room for longer conversations. And it usually answers faster, because generating each token means reading the model’s weights from memory, and fewer bytes take less time to read. The cost is some loss of accuracy, which good methods keep small down to about 4 bits.

02

16-bit, 8-bit and 4-bit compared

The memory arithmetic is simple: weights = parameters × bits ÷ 8. An 8-billion-parameter model at 16 bits needs 8 × 16 ÷ 8 = 16 GB, at 8 bits 8 GB and at 4 bits 4 GB, before the small overhead of the scale factors that every quantized format stores.

Precision Bytes per parameter 8B model 70B model Common formats
16-bit 2 About 16 GB About 140 GB BF16 and FP16, as released
8-bit 1 About 8 GB About 70 GB FP8, INT8, GGUF Q8_0
About 5-bit About 0.7 About 5.7 GB About 50 GB GGUF Q5_K_M
4-bit About 0.5 to 0.6 About 4 to 5 GB About 35 to 43 GB INT4 (AWQ, GPTQ), NVFP4, GGUF Q4_K_M

These are our figures for the weights alone, in decimal gigabytes. The runtime and the cache of past tokens come on top, and that cache can take several gigabytes of its own in long conversations.

03

Weight-only and full quantization

Most 4-bit formats are weight-only. The weights are stored at 4 bits and expanded inside the GPU as they are used, so the arithmetic still runs at 16-bit precision; NVIDIA calls this W4A16, for 4-bit weights and 16-bit activations. It suits token generation, which is limited by memory bandwidth more than by arithmetic.

Full quantization converts the activations too, so the arithmetic itself runs in the low-precision format. That needs hardware support: FP8 runs on recent NVIDIA GPUs, and NVFP4 was introduced with the Blackwell architecture. NVIDIA describes Jetson Thor’s Blackwell GPU as having native FP4 quantization, with a Transformer Engine that switches between FP4 and FP8, and says this speeds up prompt processing as well as generation.

04

Post-training quantization methods

Nearly all LLM quantization is post-training: a finished model is converted, often with a small sample of text for calibration, and is not retrained. The methods differ mainly in how they choose the rounding.

  • //
    Round-to-nearest. Each block of weights gets a scale, and every weight is rounded to the nearest level. It is simple and fast, works well at 8 bits and is the base the other methods improve on.
  • //
    GPTQ. Published at ICLR 2023, it quantizes weights in turn and adjusts the ones not yet quantized to cancel the error, using approximate second-order information. Its authors report quantizing a 175-billion-parameter model to 3 or 4 bits in about four GPU hours with negligible accuracy loss.
  • //
    AWQ. Activation-aware weight quantization, winner of the MLSys 2024 best paper award, protects the small share of weights that matter most, around 1%, chosen by the size of the activations they meet. It needs no backpropagation, and NVIDIA uses INT4 AWQ models in its Jetson benchmarks.
  • //
    GGUF K-quants and I-quants. llama.cpp’s own formats store weights in blocks with two levels of scales, and the I-quants add an importance matrix measured on sample text. They are behind most models run in llama.cpp, Ollama and LM Studio.
  • //
    FP8 and NVFP4. Floating-point formats with hardware support on newer NVIDIA GPUs. NVFP4 stores 4-bit values in blocks of 16 that share an FP8 scale, plus one scale per tensor. NVIDIA puts it at about 3.5 times smaller than FP16 and reports 1% or less accuracy loss on key language tasks for DeepSeek-R1-0528 when moving from FP8.
05

How much accuracy quantization costs

8-bit versions of current models are usually hard to tell apart from the originals. At 4 bits, a well-made quantization with GPTQ, AWQ, NVFP4 or a GGUF K-quant keeps most of the model’s quality, which is why 4-bit is the usual choice for running models locally. Below 4 bits the loss grows quickly, and small models tend to suffer more than large ones.

4-bit is generally fine for chat, summaries, questions over manuals and drafting. Test more carefully where exactness matters: code, arithmetic, structured output that software must parse, and languages other than English. The only reliable check is to run your own prompts through both versions and compare the answers.

Vision models are a different case. Detection and classification networks are usually quantized to INT8 throughout, weights and activations alike, using a calibration set of images, and quantization-aware training is the fallback when accuracy drops too far.

FAQ · 01
What is INT8 quantization?
INT8 quantization converts a model’s weights and calculations from 32-bit floating point to 8-bit integers. The model becomes about a quarter of the size and runs faster on NPUs, GPUs and AI accelerators, usually with only a small loss of accuracy. A small calibration set sets each layer’s range.
Read the full FAQ —
06

Quantization on edge AI hardware

On edge hardware, quantization often decides whether a model fits at all. Jetson Orin modules, with Ampere GPUs, run 8-bit models and 4-bit weight-only formats, and NVIDIA’s Super mode benchmarks of the Orin Nano and Orin NX used INT4 models. Jetson Thor adds hardware FP8 and FP4. NVIDIA’s TensorRT Edge-LLM benchmarks show the two 4-bit routes at similar speed for one user on Thor: 46.4 tokens per second for Qwen3-8B in INT4 AWQ and 44.6 in NVFP4.

Our Performance Finder sizes memory and AI performance for a described application. Jetson memory runs from 8 GB on the Orin NX 8GB, one of our Jetson Orin NX computers, to 128 GB on the T5000 in our Jetson Thor computers. For larger models at higher precision, workstation GPUs add dedicated GPU memory to an industrial computer, and runtimes such as TensorRT-LLM, built on NVIDIA’s TensorRT, apply these formats on NVIDIA hardware.

07

Quick answers on LLM quantization

LLM quantization: common questions

What is quantization in an LLM?

Storing the model in fewer bits. Weights released at 16 bits are converted to 8 or 4 bits, cutting memory by a half or by three quarters for a small loss of accuracy.

How much does quantization affect LLM performance?

Less than most expect, down to 4 bits. 8-bit models usually match the original closely and good 4-bit ones lose a little; below 4 bits quality falls faster. Speed usually improves, because fewer bytes are read for each token.

Is 4-bit quantization good enough?

For most assistant tasks, yes. Check code, maths and structured output on your own prompts, and move to 5, 6 or 8 bits if answers degrade and memory allows.

GPTQ vs AWQ: which is better?

Neither in every case. Both are 4-bit weight-only methods with similar results. AWQ needs no backpropagation and is the INT4 format in NVIDIA’s Jetson benchmarks; GPTQ is mature and widely supported. Use the one your runtime supports best.

Can you quantize a model yourself?

Yes. llama.cpp’s quantize tool and NVIDIA’s TensorRT Model Optimizer both convert a 16-bit checkpoint, and many models are already published in quantized form.

We supply Jetson, GPU and edge AI systems for quantized models integrated as standard, with the GPU or module fitted and the operating system and drivers installed.