Skip to content

Is it possible to specify different lr for different layer or fix some layer? #325

Answered by amcadmus
funan-jhc-lee asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @funan-jhc-lee

DeepMD-kit does not support different lr in different layers.

You can fix the parameters in the embedding net by setting trainable to False, or fix the parameters of the hidden and output layers of the fitting net by a list of booleans provided to trainable.

Please refer to https://github.com/deepmodeling/deepmd-kit/blob/master/doc/train-input-auto.rst
model/descriptor[se_a]/trainable and
model/fitting_net[ener]/trainable
for more information

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@funan-jhc-lee
Comment options

Answer selected by funan-jhc-lee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants