Skip to content

Commit

Permalink
Set scheduler_specific_kwargs to get_scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Uminosachi committed May 31, 2024
1 parent c4f5086 commit 14e97dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/llamafactory/train/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def create_custom_scheduler(
optimizer=optimizer_dict[param],
num_warmup_steps=training_args.get_warmup_steps(num_training_steps),
num_training_steps=num_training_steps,
scheduler_specific_kwargs=training_args.lr_scheduler_kwargs,
)

def scheduler_hook(param: "torch.nn.Parameter"):
Expand Down

0 comments on commit 14e97dc

Please sign in to comment.