[None][fix] Fix CuteDSL MoE unittest (#10983)

Signed-off-by: Enwei Zhu <21126786+syuoni@users.noreply.github.com>
This commit is contained in:
Enwei Zhu 2026-01-26 08:34:17 +08:00 committed by GitHub
parent 45d7022cc3
commit ffab217974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -740,6 +740,8 @@ def test_nvfp4_gather_grouped_gemm_swiglu_blackwell(
token_final_scales, token_selected_experts = routing_logits.topk(top_k, dim=-1)
token_selected_experts = token_selected_experts.to(torch.int32)
token_final_scales = token_final_scales.softmax(dim=-1).to(torch.float32)
# Ensure at least one valid token
token_selected_experts[0] = 0
(
tile_idx_to_group_idx,