Skip to content

Commit

Permalink
fix steps check for anneal on first cycle (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Feb 27, 2024
1 parent 5265cd6 commit 2c9c88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/monkeypatch/relora.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def get_lr(self) -> float:
original = self.inner_schedule.get_lr()
step = self.last_epoch

if step < self.relora_steps:
if step < self.relora_steps - self.warmup_steps:
scale = 1
else:
per_relora_progress = step % self.relora_steps
Expand Down

0 comments on commit 2c9c88b

Please sign in to comment.