Skip to content

Commit cc08b4a

Browse files
xxi-nvsyuoni
andauthored
Update tensorrt_llm/_torch/modules/fused_moe/configurable_moe.py
Co-authored-by: Enwei Zhu <21126786+syuoni@users.noreply.github.com> Signed-off-by: xxi <95731198+xxi-nv@users.noreply.github.com>
1 parent cb5027c commit cc08b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorrt_llm/_torch/modules/fused_moe/configurable_moe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def forward_impl(
440440
outputs = outputs[: all_rank_num_tokens[self.mapping.tp_rank]]
441441

442442
# EPLB repeat logic
443-
self.repeat_idx = 0 if self.repeat_idx == self.repeat_count - 1 else self.repeat_idx + 1
443+
self.repeat_idx = (self.repeat_idx + 1) % self.repeat_count
444444

445445
return outputs
446446

0 commit comments

Comments
 (0)