[MoE Refactor] Split of DefaultMoERunner class (#35326)

Signed-off-by: Bill Nell <bnell@redhat.com>
Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
This commit is contained in:
bnellnm
2026-04-06 12:41:59 -04:00
committed by GitHub
co-authored by Robert Shaw
parent 608914de30
commit 93bada494f
8 changed files with 868 additions and 705 deletions
+1
View File
@@ -231,6 +231,7 @@ class NemotronHMoE(nn.Module):
num_redundant_experts=self.n_redundant_experts,
is_sequence_parallel=self.is_sequence_parallel,
routed_input_transform=self.fc1_latent_proj,
router_logits_dtype=self.gate.out_dtype,
)
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor: