You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] AWQ + fallback=None on MoE with uncovered experts: quantize aborts with "reached packing without quantized zero points" (pruned experts never leave the AWQ layer state; #4349 fixed only GPTQ) #4456
Severity: medium. Kind: new bug; the same crash happens at def6e61. The #4349 fix (846d078) covered only the GPTQ/NF12 save path. Confirmed at 489aed6 on an RTX 4090.
# Qwen/Qwen3-30B-A3B truncated to 1 decoder layer (as in tests/test_moe_config)m=GPTQModel.load(path, QuantizeConfig(method="awq", bits=4, group_size=128, fallback=None))
m.quantize(<4C4rowsof8tokens>, batch_size=4, calibration_data_min_length=1)
# RuntimeError: AWQProcessor: module model.layers.0.mlp.experts.0.gate_proj reached packing without quantized zero points
In this run 41 of 128 experts got no tokens. With 16×256-token rows, 4 experts still got no tokens and the run failed on self_attn.k_proj, so one uncovered expert takes down the whole layer.
Cause
AWQ preprocess (gptqmodel/looper/awq_processor.py:4329-4340) adds every linear in the layer to _AWQLayerState.modules and pending_modules.
The coverage prune path (looper/stage_subset.py:1445-1476) pops uncovered experts from subset and from processor.tasks, but never from the AWQ layer state.
So pending_in_scope (gate at awq_processor.py:4416-4432) never empties and _quantize_layer is never called. Every module in the layer reaches pack_module without q_zeros (raise at :4456).
Debug prints showed the pending set stuck at mlp.experts.1.* (an expert that was never invoked) through the last subset.
Expected
The same behaviour as GPTQ: uncovered experts are restored to dense and recorded in dynamic, and the rest of the layer is quantized.
Controls
AWQ with the default fallback on the same input works (all 128 experts quantized).
GPTQ with fallback=None works (123 dynamic exclusions, dense weights bit-identical).
AWQ with fallback=None on dense Qwen2.5-0.5B works.
Found during an AI-assisted review (Claude Code, round 13) of 489aed6; repros were run at that commit (A/B against def6e61 where noted) on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Activity
fix(moe): GPTAQ/FOEM flattened-row native split, share-cache release,…