In transformers v5, the warmup_ratio argument is deprecated in favor of warmup_steps (huggingface/transformers#41326), will be removed in v5.2. Thankfully, the latter also accepts a float < 1, which does the same as warmup_ratio. However, that only works in transformers v5, so for older versions, we need to keep warmup_ratio.
In PEFT, this argument is used multiple times throughout the docs and examples and should be updated accordingly.
In transformers v5, the
warmup_ratioargument is deprecated in favor ofwarmup_steps(huggingface/transformers#41326), will be removed in v5.2. Thankfully, the latter also accepts a float < 1, which does the same aswarmup_ratio. However, that only works in transformers v5, so for older versions, we need to keepwarmup_ratio.In PEFT, this argument is used multiple times throughout the docs and examples and should be updated accordingly.