Skip to content

Commit

Permalink
Message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cg123 committed Jan 3, 2024
1 parent 075333f commit 4c99184
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mergekit/scripts/mixtral_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def warn_degenerate_gates(gate_vecs: torch.Tensor, threshold: float = 5.0):
elif len(degen_indices) == 2:
layer_str = f"layers {' and '.join(map(str, degen_indices))}"
verb = "have"
elif len(degen_indices) == num_layers:
layer_str = "ALL layers"
verb = "have"
else:
layer_str = (
"layers "
Expand Down

0 comments on commit 4c99184

Please sign in to comment.