QDA-Qwen3-Coder-30B-A3B-W4A16

4-bit weight quantization of Qwen/Qwen3-Coder-30B-A3B-Instruct. 3.4× smaller than BF16 (17.8 GB vs. 61.1 GB), keeps 99.5% of BF16 accuracy.

Evaluation

Benchmark BF16
61.1 GB
QDA W4A16
17.8 GB
cyankiwi AWQ-4bit
18.1 GB
AIME 202525.827.125.1
HMMT Feb 202619.818.217.5
GPQA-Diamond52.553.351.9
IFBench34.634.332.3
MMLU-Pro70.970.269.6
LiveCodeBench38.437.837.6
Average40.340.139.0

Pass@1 averaged over 1–32 seeds (non-thinking model), same settings for all models.

Evaluation setting AIME 2025 HMMT Feb 2026 GPQA-Diamond IFBench MMLU-Pro LiveCodeBench
Max new tokens per item81,92081,92081,92081,92032,76881,920
Repeats (seed 17 + j for repeat j = 0, 1, …)32 (seeds 17–48)32 (seeds 17–48)16 (seeds 17–32)16 (seeds 17–32)1 (seed 17)4 (seeds 17–20)
Samplingtemperature 0.7, top-p 0.8, top-k 20, min-p 0, presence penalty 0, repetition penalty 1.05
Thinkingoff (no thinking marker)
chat_template_kwargsnone
MTP / speculative decodingoff

Usage

Runs on NVIDIA H100, A100, RTX Pro 6000 and B200 GPUs.

vLLM:

VLLM_DISABLED_KERNELS=MacheteLinearKernel vllm serve qda-lab/QDA-Qwen3-Coder-30B-A3B-W4A16

On H100 and H200, without a CUDA 13 toolkit on the machine, the kernel's compile at start fails (failed to open libnvrtc-builtins.so.13.0). Put the venv's NVIDIA libraries on the loader path first:

lib="$(python -c 'import glob, sysconfig as s; p = s.get_paths(); print(":".join(sorted({d for k in ("purelib", "platlib") for d in glob.glob(p[k] + "/nvidia/*/lib")})))')" &&
  export LD_LIBRARY_PATH="$lib:$LD_LIBRARY_PATH"

How it was made

Weights are 4-bit integers in groups of 64, quantized with GPTQ; the attention projections are 8-bit, and the group scales were then fine-tuned by distillation. The recipe was chosen by QDA's automated search.

Reproduce

Install QDA 0.1.0 (Linux, an NVIDIA GPU and uv):

git clone https://github.com/humanfia/qda.git && cd qda
uv venv -p 3.12 --managed-python && . .venv/bin/activate
uv pip install -c constraints.txt "./packages/qda-quant[hf,gguf]" "./packages/qda-kl[vllm]" ./packages/qda-agent

Then:

hf download qda-lab/qda-recipe-inputs --repo-type dataset --include "QDA-Qwen3-Coder-30B-A3B-W4A16/*" --local-dir inputs
cd inputs/QDA-Qwen3-Coder-30B-A3B-W4A16
qda build qwen3-coder-30b-a3b-w4a16.yaml --set out=QDA-Qwen3-Coder-30B-A3B-W4A16-rebuild --set "devices=[0,1]"

Needs QDA 0.1.0. Original model: Qwen/Qwen3-Coder-30B-A3B-Instruct@b2cff646eb4bb1d68355c01b18ae02e7cf42d120, the revision the recipe builds from. Recipe: qwen3-coder-30b-a3b-w4a16.yaml; inputs (calibration sample and distillation data): QDA-Qwen3-Coder-30B-A3B-W4A16/ in qda-lab/qda-recipe-inputs. Built on 2× H100 (80 GB); the scale_kd step (300 rounds) takes 53 min. Rebuilt weights are not bit-identical to this checkpoint: scored on the same prompts, a rebuild reads KL 0.00701 against the original and this checkpoint 0.00704 (−0.4 %).

License

Apache-2.0, the same as the base model.

Citation

QDA: Closed-Loop LLM Quantization Design with Agents

@article{li2026qda,
  title   = {QDA: Closed-Loop LLM Quantization Design with Agents},
  author  = {Li, Xingyang and Zhao, Tianlang and Han, Song and Zhu, Ligeng},
  journal = {arXiv preprint arXiv:2611.23388},
  year    = {2026}
}
Downloads last month
1,076
Safetensors
Model size
31B params
Tensor type
I32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for qda-lab/QDA-Qwen3-Coder-30B-A3B-W4A16

Quantized
(189)
this model

Paper for qda-lab/QDA-Qwen3-Coder-30B-A3B-W4A16