Skip to content

Commit

Permalink
apply fix from adapter-hub#770
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-fong committed Dec 24, 2024
1 parent 1229fc5 commit 20ddb5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adapters/methods/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def forward(self, hidden_states: Optional[torch.Tensor], layer_input: torch.Tens
hidden_states = hidden_states * gate
else:
gate = None
hidden_states = hidden_states * self.scaling

return hidden_states, gate

Expand Down

0 comments on commit 20ddb5c

Please sign in to comment.