Skip to content

Commit

Permalink
Correct name of MixtralBlockSparseTop2MLP (L -> l) (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
seungduk-yanolja authored May 28, 2024
1 parent 6a5a725 commit 65db903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/axolotl/monkeypatch/mixtral/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def moe_forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
return final_hidden_states, router_logits

from transformers.models.mixtral.modeling_mixtral import (
MixtralBLockSparseTop2MLP,
MixtralBlockSparseTop2MLP,
MixtralSparseMoeBlock,
)

MixtralBLockSparseTop2MLP.forward = mlp_forward
MixtralBlockSparseTop2MLP.forward = mlp_forward
MixtralSparseMoeBlock.forward = moe_forward

0 comments on commit 65db903

Please sign in to comment.