Skip to content

Commit

Permalink
Merge pull request #4006 from Uminosachi/scheduler-kwargs
Browse files Browse the repository at this point in the history
Set scheduler_specific_kwargs to get_scheduler
  • Loading branch information
hiyouga authored Jun 3, 2024
2 parents 88681d3 + 14e97dc commit 0f01500
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 0f01500

Please sign in to comment.