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 Jun 4, 2024
1 parent 263a351 commit 8e720d8
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 @@ -390,6 +390,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 8e720d8

Please sign in to comment.