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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set different weight decay values for different modules of the model #2018

Open
AlfredQin opened this issue Jun 13, 2024 · 0 comments

Comments

@AlfredQin
Copy link

馃挕 Your Question

Hi, I am trying to let the parts of my model have different weight decay value during training. For example, the backbone has weight decay 0.05 while the head has 0.01. But I don't know how to implement it in the yaml configuration. Currently I can set different learning rate for each part of the model like this:
training_hyperparams:
initial_lr:
backbone: 1e-5
head: 1e-4
default: 1e-4
Howerver I can't find available method to set weight decay like what I do on learning rate configuration. Could you please help me fix it ? Thank you !

Versions

No response

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