AWQ — Activation-aware Weight Quantization — compresses a model’s weights to 4 bits by first finding the small share of weight channels that matter most, scaling them up before rounding so they survive the compression. You do not quantize the model yourself for this guide: you download a checkpoint someone already quantized, such as Qwen2.5-7B-Instruct-AWQ, and serve it with an engine that understands the AWQ packing.
Related guide: How to Run a vLLM Local Server with an OpenAI-Compatible API
Serve it with vLLM
vLLM is the usual engine for AWQ. Its documentation shows both forms:
pip install vllm
vllm serve Qwen/Qwen2.5-7B-Instruct-AWQ --quantization awq
Or from Python:
from vllm import LLM, SamplingParams
llm = LLM(model="Qwen/Qwen2.5-7B-Instruct-AWQ", quantization="awq")
The --quantization awq flag is the part that matters: without it vLLM may not recognise the packed weights. The server starts on port 8000 by default and speaks the OpenAI-compatible API, so any OpenAI client can talk to it by changing the base URL.
Check before you download
Confirm the model name actually ends in AWQ and that its config says the quantization method is AWQ — a safetensors checkpoint with a similar name but no AWQ packing will fail to load with an error about the format. AWQ models need an NVIDIA GPU; they do not run in llama.cpp or Ollama, which speak GGUF instead. If your hardware is a Mac or a CPU-only machine, pick a GGUF quantization instead.
Expected result. We checked the Qwen vLLM deployment docs for the AWQ serving commands and the GPTQ/AWQ guide for how AWQ 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
AWQ is a 4-bit method: it saves memory, not quality — expect some loss against the full-precision model, and measure it on your own task. vLLM needs a Linux machine with an NVIDIA GPU and the right driver; the install is UNTESTED on this machine. We did not run vLLM or any AWQ model.
Sources
- Qwen vLLM deployment docs — vLLM supports AWQ, GPTQ and SqueezeLLM quantized models; run an AWQ model with LLM(model=…, quantization=”awq”) or vllm serve … –quantization awq
- GPTQ and AWQ — AWQ finds the weight channels that matter most by looking at activations, then scales them before rounding; it does not update any weights; you quantize once offline and load the packed checkpoint in a serving engine such as vLLM
Checked 2026-11-28.
