Skip to content

Commit

Permalink
hotfix: fix flashllama
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierDehaene committed Oct 23, 2024
1 parent 03c9388 commit 27ff187
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def forward(
logits, speculative_logits = self.lm_head(hidden_states)

# Used in Granite
if not self.logits_scaled:
if self.logits_scaling is not None and not self.logits_scaled:
logits /= self.logits_scaling
if speculative_logits is not None:
speculative_logits /= self.logits_scaling
Expand Down

0 comments on commit 27ff187

Please sign in to comment.