From 14e97dc1192f6cf94ab99eb3a9b8c64029040384 Mon Sep 17 00:00:00 2001 From: Uminosachi <49424133+Uminosachi@users.noreply.github.com> Date: Fri, 31 May 2024 13:45:39 +0900 Subject: [PATCH] Set scheduler_specific_kwargs to get_scheduler --- src/llamafactory/train/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/llamafactory/train/utils.py b/src/llamafactory/train/utils.py index 23834f2d0a..230fdc1eb0 100644 --- a/src/llamafactory/train/utils.py +++ b/src/llamafactory/train/utils.py @@ -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"):