fix moe gate dtype, fix tbo, fix fake dispatch (#7825)
This commit is contained in:
@@ -229,7 +229,7 @@ class MoEGate(nn.Module):
|
||||
)
|
||||
if config.topk_method == "noaux_tc":
|
||||
self.e_score_correction_bias = nn.Parameter(
|
||||
torch.empty((config.n_routed_experts))
|
||||
torch.empty((config.n_routed_experts), dtype=torch.float32)
|
||||
)
|
||||
else:
|
||||
self.e_score_correction_bias = None
|
||||
|
||||
Reference in New Issue
Block a user