Best LLM Quantization Formats for Local AI

There is no universally best LLM quantization format. GGUF is usually the best starting point for local experimentation, especially with llama.cpp-compatible tools, because it is convenient, widely supported, and available at several bit levels. GPTQ and AWQ are generally better choices for GPU inference, while EXL2 is attractive when you want more control over the model-size and quality trade-off. The right choice depends on your hardware, runtime, model, and tolerance for quality loss rather than on a single benchmark or marketing claim.

Also worth reading: What are the most effective local LLM quantization techniques for running large language models on consumer hardware in 2026? · What do local LLM quantization performance benchmarks actually show in 2026 — is 4-bit worth it compared to 8-bit? · What are the best quantization techniques for LLMs to reduce memory usage and inference costs in production?

For a typical 8-billion-parameter model, FP16 weights require roughly 16 GB before accounting for metadata and runtime overhead. An 8-bit version needs about 8 GB, a 6-bit version about 6 GB, and a 4-bit version about 4 GB. These are approximate storage sizes calculated from parameter count and bit width; actual files can be larger because quantization scales, metadata, tokenizer data, and implementation padding are included.

What LLM Quantization Actually Changes

Quantization stores model weights using fewer bits than their full-precision representation. Inference normally computes those weights in a higher-precision format after reading them, so quantization should be described as compressed weight storage rather than a promise that every internal operation runs at 4 bits. Reducing weight precision cuts disk use and memory-bandwidth requirements, which can produce faster generation on systems constrained by memory rather than compute.

The common starting points are 16-bit floating point, 8-bit integer or floating-point weights, and 4-bit weight formats. Higher bit widths preserve numerical detail more faithfully but offer smaller savings. Four-bit models commonly occupy about half the raw weight storage of FP16 models, while 8-bit models occupy about half, but their runtime performance differs because kernels, activation precision, attention, and hardware acceleration determine throughput.

Quantization can affect accuracy through rounding error, but the largest degradation often comes from inappropriate scale selection, group handling, or calibration. A carefully produced 4-bit model may outperform a poorly produced 6-bit model. Benchmarking is therefore necessary for the specific model and task, particularly for code generation, structured output, mathematics, retrieval, and tool calling.

GGUF: The Most Practical Choice for Local Experimentation

GGUF, developed for the llama.cpp ecosystem, organizes quantized model weights, tensors, metadata, and tokenizer information in a single file-based format. It is widely supported by llama.cpp, Ollama, LM Studio, KoboldCpp, and several other local inference tools. Popular filenames such as Q4_K_M, Q5_K_M, Q6_K, and Q8_0 identify quantization variants, but the letters are implementation-specific labels rather than a universal grading standard.

Q4_K_M is a frequent default because it offers a practical balance between download size and output quality. Q5_K_M usually produces a larger file and can be preferable when the system has enough memory. Q6_K approaches 8-bit storage efficiency more closely while retaining more of the original weights, and Q8_0 is a useful reference when memory is plentiful. Lower-bit options such as Q2_K and Q3_K_S can make very large models run on modest hardware, but they are substantially more likely to reduce quality.

GGUF is not inherently the fastest format on every GPU, and a compatible CPU backend does not mean CUDA, Metal, or Vulkan acceleration is active. Its main strength is accessibility: one artifact can be used across multiple local applications, and many hardware backends are available. For a first local AI tutorial, GGUF makes the process easy to inspect, repeat, and move between Windows, macOS, Linux, and sometimes constrained compute environments.

GPTQ, AWQ, EXL2, and Other GPU-Oriented Alternatives

GPTQ is a post-training quantization method that produces 4-bit model weights designed mainly for GPU inference. Files usually require a particular runtime and sometimes a specific trust of the quantizer’s settings. A typical GPTQ model may report approximately 4.25 bits per weight when group scales and zeros are included, rather than exactly 4.00 bits. GPTQ can deliver excellent results at 4 bits, but speed and compatibility depend on the kernel implementation and the shape of the model.

AWQ protects selected model weights identified as important during quantization. Its goal is to preserve task quality while using low-bit weights, and it is commonly available in 4-bit versions supported by tools such as vLLM, TensorRT-LLM, and compatible llama.cpp builds. AWQ is not simply “GPTQ with a different extension”; the quantization process and activation-aware protection differ. On a supported NVIDIA GPU, AWQ can be a strong default for production serving, while GGUF may remain simpler for a personal machine.

EXL2 stores measured bits per weight, allowing values such as 4.0, 4.5, 5.0, or 6.0 bits rather than enforcing one fixed bit width. It is designed to balance quality and size within the ExLlamaV2 ecosystem, although support has evolved and alternative runtimes now exist. Bitsandbytes NF4 and FP4 are also relevant for transformer workloads, while formats produced by NVIDIA TensorRT-LLM can be highly efficient when paired with that runtime. These formats are choices within an inference stack, not interchangeable labels for the same model file.

Format and Runtime Comparison

The comparison below is a practical guide rather than a universal ranking. “Best use” refers to common deployment conditions in 2026, and the ranges should be verified against the current runtime release and the model being served.

FeatureGGUFGPTQAWQEXL2FP16/BF16
Typical precision2–8 bits, often 4–6About 4 bits plus metadataCommonly 4 bits plus metadataAdjustable, often 4–616 or 16–32 bits
Main ecosystemllama.cpp, Ollama, LM StudiovLLM and GPU runtimesvLLM, TensorRT-LLM, other GPU toolsExLlamaV2-family toolsBroad runtime support
Best useFlexible local inferenceEfficient 4-bit GPU servingQuality-focused 4-bit servingFine control of size/qualityAccuracy baselines and large hardware
Main advantageBroad hardware choiceMature 4-bit GPU pathActivation-aware protectionUser-selectable bit rateMinimal weight-loss risk
Main limitationNot always fastest on supported GPUsCalibration and kernel dependentBackend support variesSmaller ecosystem than GGUF/GPU formatsHigh memory and storage use
Approximate 8B weight storage4–8 GB depending on variantAbout 4–5 GBAbout 4–5 GBAbout 4–7 GBAbout 16 GB
There are also more specialized alternatives. GPTQ variants may use different group sizes, ordering methods, and calibration data, which can make two files with the same nominal bit width behave differently. AWQ can be combined with other compression methods, but each additional transformation adds compatibility and debugging concerns. BF16 is not a compression format, yet it is commonly used as a low-precision baseline because its exponent range is wider than FP16 while retaining similar storage width.

How to Choose a Quantized Model in Practice

Begin with the original model’s license, architecture, and parameter count. Confirm that your selected runtime supports that architecture, including any custom tokenizer or multimodal components. Then identify the actual memory limit, not just the advertised GPU capacity: a 12 GB card may have less usable memory after the operating system, display, and runtime allocate buffers.

For CPU or mixed local use, compare GGUF Q4_K_M, Q5_K_M, and Q8_0. Test the same prompt set with the same context length, temperature, sampler settings, and seed where possible. For NVIDIA GPU serving, compare an FP16 or BF16 reference, a GPTQ 4-bit model, and an AWQ 4-bit model using a benchmark that reports both tokens per second and time to first token. For memory-constrained hardware, try one 4-bit format and one 6-bit option before accepting a 2-bit or 3-bit model.

Use a fixed evaluation set with at least 20 representative prompts and measure factual accuracy, formatting success, refusal behavior, and generation speed. Record first-token latency, sustained generation speed, peak memory, and process-to-process variability. Run each configuration three times, because background load, thermal limits, and memory placement can shift results. A model that is slightly slower in one test may still be the better choice if it completes jobs without exceeding memory or repeatedly produces malformed output.

Quantization-aware training is another path when the model publisher provides official quantized or QAT checkpoints. These models are trained or prepared with quantization effects in view, which can improve low-bit behavior compared with an uncalibrated conversion. They do not guarantee universal superiority, however; the published evaluation may use a different prompt, context length, or hardware setup. Treat official QAT releases as strong candidates, not automatic winners.

Common Mistakes That Produce Misleading Results

A frequent error is comparing formats while changing the model, prompt, context size, and sampler together. That makes it impossible to attribute the difference to quantization. Another mistake is selecting a file solely by its bit label: Q4 variants from different quantizers can use different group sizes, calibration procedures, and important-weight handling. Compare equivalent model revisions and record the exact filename, runtime version, and model checksum when possible.

Many users also confuse model-file size with total memory use. The KV cache, runtime buffers, embeddings, tokenizer, and CUDA or Metal workspaces can add several gigabytes, particularly with long context windows. A 4 GB quantized 8B model can still fail to load comfortably on a system with only 6 GB available. Likewise, disk space is not the same as usable VRAM; a model can be downloaded successfully and then fail when the inference engine allocates its cache.

Finally, do not assume a smaller file will be faster. Speed is often limited by memory bandwidth, kernel efficiency, prompt processing, or synchronization. A 5-bit model may be slower than a 4-bit model if its runtime lacks an optimized kernel. CPU quantization is generally more forgiving of the hardware, but slower absolute throughput than a modern GPU remains common. Avoid judging quality from a single creative-writing sample; use structured tasks and domain-specific checks wherever the model will actually be deployed.

When to Quantize and When to Keep Full Precision

Quantization is sensible when download size, RAM use, and the number of models you want to keep matter. It is especially useful for local assistants on laptops, Raspberry Pi-class devices, consumer desktops, and single GPUs with limited memory. In these situations, a well-produced 4-bit model can make an otherwise impractical model usable. Quantization is also useful for private experimentation because a smaller artifact is easier to store, move, and run without repeatedly transferring multi-gigabyte files.

Keep FP16 or BF16 when you are establishing a quality baseline, debugging a quantization issue, or serving workloads where errors have a high cost. Full precision can also be preferable for training, calibration experiments, research reproducibility, and tasks involving unusual architectures that lack reliable low-bit kernels. If the model already fits comfortably in memory, the speed benefit of 4-bit inference may be modest or even negative, so a benchmark is still required.

Hardware is a practical threshold rather than a guarantee. A 7B model at Q4_K_M has a weight file near 4–5 GB, leaving room for the KV cache and runtime overhead on some 8 GB systems. A 13B model at the same class may need roughly 6–8 GB just for its file, making it less comfortable on an 8 GB card. For an 8B model, moving from FP16 to 4-bit can reduce raw weight storage by approximately 75 percent, but usable total memory may fall by less because caches and allocations do not shrink in the same way.

Costs, Tooling, and Operational Trade-Offs

Most quantization tools are free and open source, so software licensing is not always the largest cost. The main expenses are hardware, electricity, storage, and time. Consumer GPUs can make local testing affordable, but buying a new accelerator for one model may cost more than using a hosted API for occasional inference. A hosted endpoint may also provide faster hardware and easier concurrency, while a local model offers offline operation and a fixed machine cost once the hardware is available.

Storage deserves a simple budget. For 10 quantized copies averaging 5 GB each, plan for about 50 GB before temporary download files, logs, and application caches. An NVMe drive reduces model-loading delays, while a slower external drive can make repeated startup and model switching frustrating. RAM matters during loading, and VRAM matters during generation, so neither should be selected from the same number.

A low-cost learning path is to start with an existing CPU or laptop using GGUF, then use the same prompts to compare a 4-bit and a higher-bit file. That experiment teaches the core trade-offs without requiring a new purchase. If the workload later moves to production, evaluate AWQ or GPTQ on the target GPU and test with realistic concurrency. The expensive mistake is usually not choosing the wrong format once; it is deploying an unbenchmarked format under real traffic and discovering that memory, latency, or output reliability fails at scale.

A Decision Rule for 2026

As of September 24, 2026, the practical decision rule is straightforward. Choose GGUF for broad local compatibility, easy experimentation, and the largest collection of quantized model choices. Choose GPTQ when a mature 4-bit GPU path and broad serving-tool support are priorities. Choose AWQ when activation-aware quality preservation matters and your runtime has good kernel support. Choose EXL2 when adjustable bit rates and a size-quality control are worth accepting a more specialized stack.

The safest workflow is comparative. Download an official higher-precision reference where possible, run a 4-bit candidate, and measure both quality and performance on your own prompts. If the 4-bit result misses a required threshold, test 5-bit or 6-bit before moving to full precision. A useful first target is fewer than 2% degradation on your accepted-answer set, but the threshold must reflect the application: casual chat tolerates more variation than code execution or structured extraction.

In short, “best” means the format that fits your hardware, works with your chosen runtime, and preserves the behavior your application needs. GGUF is the easiest general answer for a tutorial audience, GPU formats often provide better production throughput, and a measured comparison beats any universal ranking. The format is only one part of local AI performance; model architecture, quantization method, hardware backend, context settings, and evaluation quality all matter.