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

accelerator.prepare() with scheduler disturbe the learning rate #126

Open
ztb-35 opened this issue Jul 22, 2024 · 0 comments
Open

accelerator.prepare() with scheduler disturbe the learning rate #126

ztb-35 opened this issue Jul 22, 2024 · 0 comments

Comments

@ztb-35
Copy link

ztb-35 commented Jul 22, 2024

Hi, guys:
Recently, I reproduce this paper. But, I found an interesting thing. The learning rate changes from 1e-3 to 4e-5 at the first step in the first epoch, and stays till the end. I am not sure if it is a bug with accelerator.prepare() or not.
Any discussion is appreciated!
Here is how I print the learning rate.
Screenshot 2024-07-22 at 8 08 46 PM
It returns 1e-3 as my setting before training.
Screenshot 2024-07-22 at 8 10 08 PM
During training, I get the learning rate always as 4e-5.


I also try to change the args.lradj, I tried 'type1', 'constant', and 'COS'. It is always like above said.
Screenshot 2024-07-22 at 9 16 53 PM

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

1 participant