-
I made some changes to “training_module” part after I read the code, but it still didn't seem to work, is there any part i need to write or perhaps I misunderstood something somewhere.? thank u.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, There are two things to note: First, when using a model checkpoint to train from, you still need the training module to be instantiated similarly as to a fresh training run, using something of the form:
Second, to use a model checkpoint for the model instantiation, instead of the model section of the training module being the setup of a nequip or allegro model, it is structured like your code snippet, just change the syntax of ModelFromCheckpoint to nequip.model.ModelFromCheckpoint The model section within the training module should look like this:
let me know if this helps! |
Beta Was this translation helpful? Give feedback.
Hello,
There are two things to note:
First, when using a model checkpoint to train from, you still need the training module to be instantiated similarly as to a fresh training run, using something of the form:
Second, to use a model checkpoint for the model instantiation, instead of the model section of the training module being the setup of a nequip or allegro model, it is structured like your code snippet, just change the syntax of ModelFromCheckpoint to nequip.model.ModelFromCheckpoint
The model section within the training module should look like this: