fix moe gate dtype, fix tbo, fix fake dispatch (#7825)

This commit is contained in:
Atream
2025-07-20 13:13:46 +08:00
committed by GitHub
parent f62d75b6a1
commit a589a07167
3 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ def transform_select_experts_inputs(
info: Optional[ExpertLocationDispatchInfo],
):
if (info is not None) and (info.ep_dispatch_algorithm == "fake"):
router_logits = torch.randn_like(router_logits)
router_logits.uniform_(5, 10)
if correction_bias is not None:
correction_bias = torch.zeros_like(correction_bias)
return router_logits, correction_bias