Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Oct 11, 2024
1 parent baa0f89 commit 2ffa147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/olmo_core/nn/moe/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_loss(self) -> torch.Tensor:
clear_router_zloss,
)

_, expert_scores, _ = zip(*get_load_balancing_loss())
_, expert_scores = zip(*get_load_balancing_loss())
tokens = expert_scores[0].shape[0]

loss = batched_load_balancing_loss(self.args)
Expand Down

0 comments on commit 2ffa147

Please sign in to comment.