-
Hi, We are interested in using MACE for predicting DFT energies of the molecules we are working with, particularly peptides. Since our focus is solely on energy prediction, our dataset does not include force labels. However, we could not figure out a straightforward way to disable the computation of forces during the training process. We have tried to set the --compute_forces flag to False, along with using --forces_weight=0.0 and --scaling="no_scaling" flags as per documentation examples, but the program continues to compute and predict forces, even without labels. I have also seen a discussion here regarding ignored flags and that the flags must obey a certain order, but this did not help to solve the issue. Could you please advise us on the correct procedure to disable this option? Thank you very much, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
HM..based on my experience you will get much better energy predictions if you included forces in your training. Even at a lower level of theory. |
Beta Was this translation helpful? Give feedback.
-
Dear @emaximova, As Gabor said, we highly recommend using forces during training. |
Beta Was this translation helpful? Give feedback.
-
In the forward function of MACE model you can disable force computation by setting:
I guess it will ignore the calculation of forces. Since force calculation require gradient evaluation, if you don't need it you should skip the computation to save time. |
Beta Was this translation helpful? Give feedback.
Dear @emaximova,
The model will predict the forces but it will get ignorded in the loss, so it will not affect your training. Just make sure to
--scaling="no_scaling"
.As Gabor said, we highly recommend using forces during training.