Set scheduler_specific_kwargs to get_scheduler
This commit is contained in:
parent
c4f50865ad
commit
14e97dc119
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue