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

Recommended value to weight_decay for AdamP? #8

Closed
hiyyg opened this issue Aug 27, 2020 · 1 comment
Closed

Recommended value to weight_decay for AdamP? #8

hiyyg opened this issue Aug 27, 2020 · 1 comment

Comments

@hiyyg
Copy link

hiyyg commented Aug 27, 2020

In the readme, the value is 1e-2. Is it a recommended value? Or just keeping the default value 0?

@bhheo
Copy link
Collaborator

bhheo commented Aug 27, 2020

Hi

1e-2 is the recommended value for ImageNet classification task.
In general, we recommend using a weight decay value equal to baseline optimizer (AdamW).
You can directly use hyper parameters of AdamW to AdamP.
If you don't have any hyper parameter values for AdamW, weight decay 0 is good for the first try.
Because many tasks use zero weight decay, so just try this and slowly increase the weight decay for tuning.

@hiyyg hiyyg closed this as completed Aug 28, 2020
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