How to use lr_scheduler_kwargs param in TrainingArguments?

The params of consine scheduler are as below in the documetation:


and I use params in TrainingArguments as below:
image
But it shows an error:
image
So here are my questions:

  1. Why this error occurs?
  2. If I need assign optimizer param in get_cosine_schedule_with_warmup?
1 Like

1

This error often occurs when the contents of kwargs (or any valid name. a simple Python dictionary that stores keyword arguments to be passed later) conflict with arguments that are passed directly. It can often be avoided by simply omitting the argument specification.

https://stackoverflow.com/questions/28336270/how-to-fix-got-multiple-values-for-argument-error-for-args-and-kwargs

2

Maybe yes.

(post deleted by author)

If I omit the argument, how can I assign it to my prefer value?

1 Like

You may need to specify it with a command line argument…

(post deleted by author)

(post deleted by author)

But I use jupyter…

1 Like

I think it is because TrainingArguments has another argument warmup_steps…

1 Like

warmup_steps

Oh. Let’s use it.