Qwen3-30B-A3B-Instruct-2507 NVFP4A16 (GPTQ, weights only)

NVFP4 quantization of Qwen/Qwen3-30B-A3B-Instruct-2507, made by PureTensor from the official BF16 weights. Weights are 4-bit; activations stay 16-bit (W4A16). The file is 18.09 GB against 61.08 GB for BF16.

This is a test release. It is not affiliated with or endorsed by the model's authors.

Read this first: on GSM8K served through vLLM this checkpoint is within noise of BF16 (89.46 against 88.70). On MMLU it is 0.46 points lower, a small but statistically significant difference. It serves 1.4 to 2.3 times faster than BF16 on vLLM. Use vLLM to run it: loading it the plain way in Transformers gives wrong outputs without any error (see Usage).

Also available: Qwen3-30B-A3B-Instruct-2507-NVFP4A16-ExpertsOnly keeps attention at 16 bits. Its KL divergence from BF16 is a third lower, for 1.3 GB more and 4 to 11% less throughput. On benchmark scores the two builds are not reliably different.

What was done

Source Qwen/Qwen3-30B-A3B-Instruct-2507, BF16. A mixture-of-experts model: 48 blocks, 128 experts per block, 8 active per token
Format compressed-tensors nvfp4-pack-quantized, scheme NVFP4A16: 4-bit E2M1 values, one FP8 E4M3 scale per group of 16, one FP32 scale per tensor
Quantized the attention projections and all 18,432 expert layers
Kept in BF16 the expert routers, token embeddings and output head, all norms, all activations
Method GPTQ (block_size 128, dampening_frac 0.01, actorder static)
Expert calibration every calibration token is passed through every expert, and tokens the router did not send to an expert count with weight 0.1 in that expert's statistics (see "How experts were calibrated")
Calibration data 512 chat-formatted samples from mlabonne/open-perfectblend, up to 2,048 tokens each
Tools llm-compressor 0.15.0, compressed-tensors 0.20.1, transformers 5.21.0, torch 2.14.1

Measured quality

One harness, BF16 as reference. The saved checkpoint reloaded from disk to logits identical to the in-memory quantized model.

BF16 This checkpoint Change Paired test
MMLU, accuracy (14,042 questions) 80.12 79.66 -0.46 263 lost, 199 gained, p = 0.003
GSM8K through vLLM's completions API (1,319 problems, flexible-extract) 88.70 89.46 +0.76 not tested; within noise
WikiText-2 perplexity (130,944 tokens) 7.67 7.81 +0.14
Text Tokens Mean KL divergence 99th percentile KL Same top token as BF16
WikiText-2 test 130,944 0.028 0.29 93.1%
Chat (HuggingFaceH4/ultrachat_200k, test_sft, 256 conversations) 224,043 0.023 0.28 94.6%
  • MMLU: default mmlu configuration of lm-evaluation-harness 0.4.13, no chat template, run offline in Transformers. The paired test is an exact McNemar test on per-question correctness.
  • KL divergence: full next-token distribution, teacher-forced, windows of 1,024 tokens. The chat set comes from the same dataset family as part of the calibration data (different rows), so that row is flattering.
  • Routing: for each token we compared the 8 experts the quantized model's router picks with BF16's choice. On average 95.3% are the same: 99.1% in the first block, falling to 96.1% in the last; the lowest block is 93.4%.
  • A caution from our other experiments: benchmark scores move by a point or two between calibration draws of the same recipe. This is one draw.

On a real serving engine

Served with vLLM 0.34.0 on one NVIDIA Blackwell workstation GPU (compute capability 12.0), using vLLM's weight-only FP4 kernel (MarlinNvFp4LinearKernel).

BF16 This checkpoint
GSM8K through the completions API 88.70 89.46
Throughput, single stream 1.00x 1.42x
Throughput, 8 concurrent 1.00x 2.27x
Throughput, 32 concurrent 1.00x 1.86x

Throughput is fixed 256-token greedy generations and will differ on other hardware.

We also served a public full 4-bit build (weights and activations, round-to-nearest) of the earlier Qwen3-30B-A3B release, which has the same architecture, on the same GPU. It ran at the same speed as this checkpoint (0.93x to 0.97x), so on this architecture quantizing activations as well bought no extra speed.

Correction, 21 November 2026: an earlier version of this card also compared that build's GSM8K score with ours. That comparison was not valid, because it is a quant of a different checkpoint (the original release, not Instruct-2507), and it has been removed.

How experts were calibrated

GPTQ chooses 4-bit values that preserve each layer's output on calibration inputs. For an expert there is a choice about which inputs to use. We built the same quant three ways, changing only that:

Each expert's statistics come from MMLU KL, WikiText KL, chat GSM8K served Routing agreement
BF16 reference 80.12 0 0 88.70 100%
All tokens (llm-compressor's default) 79.60 0.0289 0.0246 89.69 95.2%
All tokens, unrouted ones at weight 0.1 (this checkpoint) 79.66 0.0283 0.0232 89.46 95.3%
Only the tokens routed to that expert 79.71 0.0296 0.0233 89.84 95.2%

With 512 calibration samples the three are indistinguishable on tasks (paired tests between them: p = 0.47 to 0.76). The blend has the lowest KL on both text sets by a few percent, which is why we publish it, but the honest summary is that the choice did not matter here. With 512 samples the least-used expert in a typical block still received about 400 tokens.

It does matter when calibration is thin. We repeated the three builds with 32 and 128 samples and added round-to-nearest with no calibration at all (KL here is on a smaller token set than the table above, so compare within this table only):

Calibration samples Statistics MMLU KL, WikiText KL, chat
none round-to-nearest 79.70 0.0380 0.0427
32 all tokens 79.19 0.0370 0.0293
32 blend 79.43 0.0369 0.0286
32 routed only 79.30 0.0475 0.0341
128 all tokens 79.19 0.0327 0.0266
128 blend 79.30 0.0321 0.0251
128 routed only 79.00 0.0364 0.0276
512 all tokens 79.60 0.0296 0.0248
512 blend (this checkpoint) 79.66 0.0292 0.0238
512 routed only 79.71 0.0300 0.0237
  • Routed-only statistics fall behind as calibration shrinks: 29% higher WikiText KL than the blend at 32 samples, 13% at 128, 3% at 512. At 32 samples the least-used expert in a typical block saw 6 tokens.
  • The blend had the lowest KL in every case but one (512 samples on chat, where routed-only was 0.0001 lower).
  • Round-to-nearest is a strong baseline on this model: its MMLU equals the 512-sample GPTQ builds (paired p = 0.87), although its KL is 30% to 80% higher.
  • GPTQ with too little data can be worse than no calibration on MMLU: the 32- and 128-sample builds score 0.3 to 0.7 points below round-to-nearest even though their KL is lower. The gap is significant for the all-token builds (p = 0.004 at both sizes) and not for the 32-sample blend (p = 0.11). Use a few hundred samples or more.
  • With llm-compressor 0.15.0, routed-only calibration saves experts that received no tokens with all-zero weights (63 experts at 32 samples, 5 at 512). Giving unrouted tokens a tiny weight (0.0001) removes the zeros and barely changes the scores, so the zeros are not what makes routed-only worse; too few tokens per expert is.

None of these options is ours. Routed-only statistics are the usual choice in the literature (QMoE, MoEQuant); all-token calibration is llm-compressor's default; a floor weight for unrouted tokens was proposed in ExLlamaV3 pull request 529. Measuring how often the router changes its choice follows EAC-MoE and VSRAQ. What this card adds is the three-way comparison on one model with benchmarks.

Usage

vLLM (recommended):

vllm serve PureTensorAI/Qwen3-30B-A3B-Instruct-2507-NVFP4A16

Transformers. Do not use plain from_pretrained for this checkpoint. With transformers 5.21 a plain load reports the per-tensor scale of every expert layer as unexpected (18,432 keys), drops them, and raises no error. The model then produces garbage: we measured a perplexity in the hundreds of millions on a simple English sentence. Load it through llm-compressor (pip install llmcompressor):

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from llmcompressor.modeling.moe.linearize import load_quantizable_moe

repo = "PureTensorAI/Qwen3-30B-A3B-Instruct-2507-NVFP4A16"
tok = AutoTokenizer.from_pretrained(repo)
with load_quantizable_moe():
    model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16)
model.to("cuda")

msgs = [{"role": "user", "content": "Summarise the water cycle in two sentences."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True).to("cuda")
out = model.generate(**ids, max_new_tokens=256)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))

This path expands the weights back to 16-bit and runs each expert as a separate layer, so it needs as much memory as BF16 and is slow. It is for checking, not for serving.

Limitations

  • MMLU is 0.46 points below BF16, as measured above. GSM8K was measured only through vLLM, and MMLU only offline.
  • One calibration draw, no repeated seeds. English-language benchmarks only. No safety, multilingual, tool-use or long-context evaluation was run on the quantized model.
  • Four of the 6,144 experts received no routed calibration tokens. In this checkpoint they are still calibrated, on unrouted tokens.
  • Throughput ratios are from one GPU and one workload and will differ elsewhere.

License

Apache-2.0, as the base model. Changes from the base release: the attention and expert Linear weights are quantized to NVFP4 and stored packed, and config.json gains a quantization_config block.

Downloads last month
61
Safetensors
Model size
31B params
Tensor type
BF16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for PureTensorAI/Qwen3-30B-A3B-Instruct-2507-NVFP4A16

Quantized
(152)
this model

Collection including PureTensorAI/Qwen3-30B-A3B-Instruct-2507-NVFP4A16

Papers for PureTensorAI/Qwen3-30B-A3B-Instruct-2507-NVFP4A16