Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new lr_scheduler_type: step_lr #30468

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Xingfu-Yi
Copy link

What does this PR do?

Added a new learning rate scheduler: step_lr. This was implemented through the TYPE_TO_SCHEDULER_FUNCTION get_step_lr, based on the existing class torch.optim.lr_scheduler.StepLR. It retains the same parameters as other functions and uses num_training_steps to represent step_size, ensuring consistency.

@amyeroberts
Copy link
Collaborator

Hi @Xingfu-Yi, thanks for opening a PR!

Could you provide some more context around this addition - ideally links to related feature requests, paper and research?

cc @younesbelkada @muellerzr

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants