Skip to content

Commit c85cf5d

Browse files
authored
Merge pull request hiyouga#4006 from Uminosachi/scheduler-kwargs
Set scheduler_specific_kwargs to get_scheduler Former-commit-id: 0f01500
2 parents 55b8e8b + 942e08f commit c85cf5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/llamafactory/train/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ def create_custom_scheduler(
379379
optimizer=optimizer_dict[param],
380380
num_warmup_steps=training_args.get_warmup_steps(num_training_steps),
381381
num_training_steps=num_training_steps,
382+
scheduler_specific_kwargs=training_args.lr_scheduler_kwargs,
382383
)
383384

384385
def scheduler_hook(param: "torch.nn.Parameter"):

0 commit comments

Comments
 (0)