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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to AEV based models #26

Merged
merged 139 commits into from
Oct 10, 2024
Merged

Switch to AEV based models #26

merged 139 commits into from
Oct 10, 2024

Conversation

lohedges
Copy link
Contributor

This PR updates the code to use the new AEV based EMLE models. The old SOAP based models, i.e. those used for our paper, can be used via the v1.0.0 release of the code. The main changes are as follows:

  • Introduction of fully Torch script compliant models via the emle.models module.
  • Specialised ANI2xEMLE model for one-shot computation of in vacuo and embedding energies (re-using the same AEV features)
  • Introduction of species and reference options for calculation of atomic polaraizabilities.
  • Decoupling of model files from emle-engine repository. Models are now available via emle-models which is managed automatically at run time via git (using the pygit2 package).

kzinovjev and others added 30 commits June 20, 2024 19:04
This fixes the autograd backpropagation by moving the calculation
of the features and derived properties (s, chi) into the energy
function. There is now no need to manually compute feature derivatives
and apply their contribution to the QM gradient via the chain rule.
[ci skip]
Note that TorchScript doesn't support inheritance so we can't derive
from the base EMLE module and call its forward method. Intead, derived
models store instances of both the EMLE and in vacuo models as
attriburtes, then use these to perform the two parts of the calculation.
This avoids re-using the same EMLE logic in each modules forward method.
@lohedges lohedges added the enhancement New feature or request label Oct 10, 2024
@lohedges lohedges merged commit 9b8d7c3 into main Oct 10, 2024
5 checks passed
@lohedges lohedges deleted the feature_aev branch October 10, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants