Skip to content

Commit

Permalink
make sure to create scheduler first
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Jul 31, 2024
1 parent 27a78f9 commit 78d4a1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/axolotl/core/trainer_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ def create_scheduler(
anneal_steps = (
self.args.jagged_restarts_anneal_steps or 1
)
super().create_scheduler(num_training_steps, optimizer)
self.lr_scheduler = JaggedLRRestartScheduler( # pylint: disable=attribute-defined-outside-init
optimizer,
self.lr_scheduler,
Expand Down

0 comments on commit 78d4a1e

Please sign in to comment.