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
AWQ Qwen3.5 MoE, error with the dimension alignment of apply_rotary_pos_emb #2621
I use this script to quant Qwen3.5 35BA3B MoE, there is a another error:
INFO AWQProcessor: layer 0 tracking 774 modules before quantization (subsets processed=7/7); first modules=['linear_attn.in_proj_qkv', 'linear_attn.in_proj_z', 'linear_attn.out_proj', 'mlp.experts.0.gate_proj', 'mlp.experts.0.up_proj', 'mlp.experts.1.gate_proj', 'mlp.experts.1.up_proj', 'mlp.experts.2.gate_proj']
INFO AWQProcessor: layer 0 sanitized 242 scaling groups; sample=[['linear_attn.in_proj_qkv'], ['mlp.experts.0.down_proj'], ['mlp.experts.1.down_proj']]
Quantizing layer 0 of 39 ['p' to ||] [0 of 39] | 0:04:38 / 3:05:20 [1/40] 2.5%Traceback (most recent call last):
File "/opt/miniconda3.10/lib/python3.10/site-packages/gptqmodel/utils/threadx.py", line 425, in _run
result = fn(*args, **kwargs)
File "/opt/miniconda3.10/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
return func(*args, **kwargs)
File "/opt/miniconda3.10/lib/python3.10/site-packages/gptqmodel/looper/stage_subset.py", line 719, in _process_on_worker
proc.process(
File "/opt/miniconda3.10/lib/python3.10/site-packages/gptqmodel/looper/awq_processor.py", line 1559, in process
self._quantize_layer(layer_index, state)
File "/opt/miniconda3.10/lib/python3.10/site-packages/gptqmodel/looper/awq_processor.py", line 719, in _quantize_layer
scales_list = [
File "/opt/miniconda3.10/lib/python3.10/site-packages/gptqmodel/looper/awq_processor.py", line 720, in
self._search_best_scale(layer_module_ref, **layer)
File "/opt/miniconda3.10/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
return func(*args, **kwargs)
File "/opt/miniconda3.10/lib/python3.10/site-packages/gptqmodel/looper/awq_processor.py", line 837, in _search_best_scale
assert len(layers) == 1
AssertionError
Activity
Qubitium commentedon Mar 26, 2026
@Jealousc11gx Can you give me a short reproducing script? I will run that to reproduce. Thanks.
i also don't know what version of GPT-Qmodel you are using.
Jealousc11gx commentedon Mar 26, 2026
This is my Code:
arkerwu commentedon Mar 27, 2026
AWQ quantization of Qwen3.5-27B or 9B version also has this issue.
Qubitium commentedon Mar 27, 2026
@ZX-ModelCloud check this asap
ZX-ModelCloud commentedon Mar 27, 2026
You are likely using the
qwen3_5model. I have successfully reproduced this error using the code you provided onQwen/Qwen3.5-27Band have fixed it.Jealousc11gx commentedon Mar 30, 2026
I use this script to quant Qwen3.5 35BA3B MoE, there is a another error:
INFO AWQProcessor: layer 0 tracking 774 modules before quantization (subsets processed=7/7); first modules=['linear_attn.in_proj_qkv', 'linear_attn.in_proj_z', 'linear_attn.out_proj', 'mlp.experts.0.gate_proj', 'mlp.experts.0.up_proj', 'mlp.experts.1.gate_proj', 'mlp.experts.1.up_proj', 'mlp.experts.2.gate_proj']
INFO AWQProcessor: layer 0 sanitized 242 scaling groups; sample=[['linear_attn.in_proj_qkv'], ['mlp.experts.0.down_proj'], ['mlp.experts.1.down_proj']]