Skip to content

Deprecation of warmup_ratio argument in transformers v5 #2949

Description

@BenjaminBossan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions