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] Follow-up on #4151/#4154: MoEConfig(routing=ExpertsRoutingBypass()) still makes AWQ drop every MoE expert gate/up group to RTN fallback #4223
Severity: medium (silent AWQ loss on MoE models, with only a warning; with fallback=None, quantization aborts) Version: 7.11.0 @ 9dad249. 60ac76d fixed only ExpertsRoutingOverride.
Summary
_replay_moe_routing_override (looper/awq_processor.py:2548-2589) handles only moe_routing_override.
In bypass mode, ForwardExecutor uses MoELifecycleContext, which feeds tokens to every expert.
AWQ's reference replay of module2inspect still routes natively, so unrouted experts look "unobserved".
The coverage guard (awq_processor.py:~2715) then raises _AWQScaleGroupError, and the whole expert group falls back, including experts that were routed.
Reproduce (the fixture from the new test in tests/test_tiny_moe_quant_smoke.py)
The guard raises "AWQ: reference replay did not execute targets [mlp.experts.0.gate_proj, ...]".
64/64 expert gate/up rows are "not applicable", i.e. they fell back.
The same script with ExpertsRoutingOverride() gives 0.
Expected: either keep AWQ scaling under bypass (make the replay use the same all-experts lifecycle), or have the guard require only the experts that were natively routed.
Found during an AI-assisted review (Claude Code) of 9dad249; repros were run on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Activity
fix: replay all experts during bypass-mode AWQ scale search (#4223) (#…
fix(awq): keep bypass-mode candidate replays on native routing (#5730)
fix(awq): keep bypass-mode candidate replays on native routing (#5730) (