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

Learning rate finder for the trainer #16013

Closed
franz101 opened this issue Mar 9, 2022 · 2 comments
Closed

Learning rate finder for the trainer #16013

franz101 opened this issue Mar 9, 2022 · 2 comments

Comments

@franz101
Copy link

franz101 commented Mar 9, 2022

Hi,

is it possible to integrate a learning rate finder with the trainer api?
Something like this:
https://github.com/davidtvs/pytorch-lr-finder

It's probably has been done before, but couldn't find it yet.

@sgugger
Copy link
Collaborator

sgugger commented Mar 9, 2022

The LR finder does not give reliable results for Transformers models (usually indicates one in the 1e-3 when the actual best value is in the 1e-5 range). That's why we don't have support for it.

@franz101
Copy link
Author

@sgugger thanks for the explanation. Any other best practices?

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

No branches or pull requests

2 participants