how to use the different learning rate in different module in lightning? #20174
huangfu170
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to set different learning rate for different submodules like 1e-5 for pretrained model and 5e-5 for linear layers, I use the following codes, but the training result seems weird:
` def get_parameters(self):
no_decay = ["bias", "LayerNorm.weight"]
Beta Was this translation helpful? Give feedback.
All reactions