[Bugfix][ROCm] Fix Static Quant Issue (#31502)

Signed-off-by: Robert Shaw <robshaw@redhat.com>
Co-authored-by: Robert Shaw <robshaw@redhat.com>
Co-authored-by: TJian <tunjian.tan@embeddedllm.com>
This commit is contained in:
Robert Shaw
2025-12-29 13:27:55 -08:00
committed by GitHub
co-authored by Robert Shaw TJian
parent 9152a30d8f
commit 56f516254c
2 changed files with 14 additions and 14 deletions
@@ -325,8 +325,11 @@ class AiterExperts(mk.FusedMoEPermuteExpertsUnpermute):
expert_tokens_meta: mk.ExpertTokensMetadata | None,
apply_router_weight_on_input: bool,
):
# TODO(rob): rocm_aiter_fused_experts uses self.quant_config's
# a_scales for static quantization. Update this to fit better
# with the interface once all quant integrations are complete.
assert a1q_scale is None
assert a2_scale is None
assert a2_scale == self.quant_config.a2_scale
assert expert_tokens_meta is None
result = rocm_aiter_fused_experts(