New Tool Radar

Local AI

How to Run a GPTQ Quantized Model Locally

Serve a pre-quantized GPTQ model with vLLM using --quantization gptq, and confirm the checkpoint is a GPTQ build before you start.

Schematic diagram with three steps: find a pre-quantized GPTQ model, serve it with vLLM and --quantization gptq, and test a chat reply.

GPTQ is the older of the two common 4-bit weight methods: it works through the model one layer at a time, rounding weights and using second-order error information to correct the weights that have not been rounded yet, guided by a small calibration set. Like AWQ, the result is a packed checkpoint that needs an engine that understands it — and like AWQ, the practical path is to download a pre-quantized model rather than quantizing one yourself.

Related guide: How to Run a vLLM Local Server with an OpenAI-Compatible API

Serve it with vLLM

The commands mirror the AWQ ones, with the quantization name changed:

pip install vllm
vllm serve Qwen/Qwen2.5-7B-Instruct-GPTQ-Int4 --quantization gptq

Or from Python:

from vllm import LLM, SamplingParams
llm = LLM(model="Qwen/Qwen2.5-7B-Instruct-GPTQ-Int4", quantization="gptq")

GPTQ model names usually carry the bit width — GPTQ-Int4 means 4-bit — and the config file in the checkpoint names the method. vLLM also supports combining a GPTQ model with FP8 KV cache quantization (kv_cache_dtype="fp8_e5m2") to save more memory, but that is an extra step: get the plain GPTQ serve working first.

GPTQ or AWQ?

Both are 4-bit, both run in vLLM with one flag, and for most models the quality difference is small. The practical decider is availability: download whichever pre-quantized build exists for the model you want, from a publisher you trust, and check its config rather than its name. Do not try to load a GPTQ checkpoint in llama.cpp or Ollama — those tools speak GGUF, and a GPTQ file will not load there.

Expected result. We checked the Qwen vLLM deployment docs for the GPTQ serving commands and the GPTQ/AWQ guide for how GPTQ works. We did not run this software ourselves for this guide, so no output here is a recorded result; steps marked UNTESTED were checked against the sources below, not run.

Limits

GPTQ needs an NVIDIA GPU under vLLM; it does not run on Apple Silicon or CPU-only setups. A 4-bit model loses some quality against the full-precision original — measure it on your own task before relying on it. We did not run vLLM or any GPTQ model, so the install and serve steps are UNTESTED on this machine.

Sources

Checked 2026-11-28.

See all