Skip to content

Commit

Permalink
FIX: lora+: include lr in optimizer kwargs (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof authored Jul 30, 2024
1 parent 1b16753 commit 7e7b558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/peft/optimizers/loraplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def create_loraplus_optimizer(
else:
param_groups["groupA"][name] = param

kwargs["lr"] = lr
loraplus_weight_decay = kwargs.pop("loraplus_weight_decay", 0.0)
loraplus_lr_embedding = kwargs.pop("loraplus_lr_embedding", 1e-6)

Expand Down

0 comments on commit 7e7b558

Please sign in to comment.