Skip to content

Commit

Permalink
scale change
Browse files Browse the repository at this point in the history
  • Loading branch information
wtmlon committed Jan 25, 2024
1 parent 004c8a2 commit ec198ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlenlp/peft/lora/lora_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
)
if lora_alpha == -1:
#self.scaling = self.lora_alpha / self.r
self.scaling = 1
self.scaling = 2
else:
print(f"set scaling to {4 / math.sqrt(self.r)}!!!!!!!!!!!")
self.scaling = 4 / math.sqrt(self.r)
Expand Down

0 comments on commit ec198ab

Please sign in to comment.