Language model quantization choices for CPU inference
Precision, workflow, calibration, runtime fit and practical trade-offs
Actualizado
Por qué comparar estos
A smaller bit count is not the whole decision. Quantization choices differ in whether they need calibration, whether they are created ahead of time or while loading, and which CPU runtime can actually execute the result.
-
1
G
GGUF K-quants
Post-training GGUF quantization offers multiple size and quality points and is directly consumed by CPU-oriented GGML runtimes.
Portable 2-bit to 8-bit weights for llama.cpp
-
2
G
GGUF importance-matrix quants
IQ formats use an importance matrix to preserve selected weights while pushing storage below common 4-bit choices.
Very low-bit GGUF with calibration importance data
-
3
G
GPTQ
GPTQ quantizes a model against a calibration dataset and is commonly distributed as a pre-quantized checkpoint.
Calibration-based weight-only quantization
-
4
A
AWQ
AWQ protects salient weights using activation statistics and is loaded from pre-quantized checkpoints on supported CPU backends.
Activation-aware 4-bit weight quantization
-
5
b
bitsandbytes 4-bit / 8-bit
bitsandbytes applies 8-bit or 4-bit weight quantization at load time and supports CPU among its documented hardware targets.
Quantize while loading in Transformers
-
6
O
OpenVINO INT4 / NF4
The OpenVINO export path uses NNCF weight compression to produce INT4 or NF4 models for its CPU and edge runtime.
Weight compression for OpenVINO GenAI
Compara lado a lado
| GGUF K-quants | GGUF importance-matrix quants | GPTQ | AWQ | bitsandbytes 4-bit / 8-bit | OpenVINO INT4 / NF4 | |
|---|---|---|---|---|---|---|
| Precision | ||||||
| Typical precision | 2 to 8 bits per weight family | About 1 to 4 bits per weight family | Commonly 4-bit weight-only | 4-bit weight-only | 8-bit or 4-bit, including NF4 | INT4 or NF4 weights |
| Workflow | ||||||
| When applied | Post-training conversion to GGUF | Post-training conversion to GGUF | Pre-quantized or during model loading | Load a pre-quantized checkpoint | While loading | During OpenVINO export |
| Calibration | Optional importance matrix | Importance matrix expected for best results | Dataset required | Activation samples used when creating checkpoint | No dataset required | Optional data-aware compression settings |
| Runtime | ||||||
| CPU deployment | llama.cpp and compatible GGUF runtimes | llama.cpp builds supporting the selected IQ type | Transformers/GPTQModel CPU support | Transformers CPU support except ExLlama backends | Transformers with bitsandbytes CPU backend | OpenVINO GenAI CPU pipeline |
| Choice | ||||||
| Practical trade-off | Broad portability and many size/quality points | Smallest files with a steeper quality/support trade-off | Accuracy-oriented 4-bit path with calibration cost | Compact 4-bit weights; runtime compatibility matters | Low-friction experimentation; backend-dependent speed | Tight Intel/OpenVINO integration; converted artifact |
Referencias
- Official CPU quantization documentation, the runtime and framework maintainers (facts). Checked 2026-11-25 07:23 UTC.
- llama.cpp quantize tool, ggml-org, checked 2026-11-25.
- GGUF tensor encoding schemes, ggml-org, checked 2026-11-25.
- GPTQ quantization, Hugging Face, checked 2026-11-25.
- AWQ quantization, Hugging Face, checked 2026-11-25.
- bitsandbytes quantization, Hugging Face, checked 2026-11-25.
- Inference with OpenVINO GenAI, Intel, checked 2026-11-25.
