Skip to content

Commit 540716d

Browse files
fix
1 parent 305be09 commit 540716d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/kernels/moe/test_flashinfer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_flashinfer_per_tensor_moe_fp8_no_graph(
142142
td = TestData.make_moe_tensors_8bit(m, k, n, e, reorder=True)
143143

144144
score = torch.randn((m, e), device="cuda", dtype=torch.bfloat16)
145-
topk_weights, topk_ids, _ = FusedMoE.select_experts(
145+
topk_weights, topk_ids = FusedMoE.select_experts(
146146
hidden_states=td.hidden_states,
147147
router_logits=score,
148148
use_grouped_topk=False,
@@ -206,7 +206,7 @@ def test_flashinfer_cutlass_moe_fp8_no_graph(
206206
td = TestData.make_moe_tensors_8bit(m, k, n, e, reorder=False)
207207

208208
score = torch.randn((m, e), device="cuda", dtype=torch.bfloat16)
209-
topk_weights, topk_ids, _ = FusedMoE.select_experts(
209+
topk_weights, topk_ids = FusedMoE.select_experts(
210210
hidden_states=td.hidden_states,
211211
router_logits=score,
212212
use_grouped_topk=False,

tests/test_routing_simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_routing_strategy_integration(monkeypatch, device):
9898
envs.environment_variables[env_name] = lambda s=strategy: s
9999

100100
# Test the select_experts method
101-
topk_weights, topk_ids, _ = FusedMoE.select_experts(
101+
topk_weights, topk_ids = FusedMoE.select_experts(
102102
hidden_states=hidden_states,
103103
router_logits=router_logits,
104104
top_k=top_k,

0 commit comments

Comments
 (0)