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

Use args when calling self.aev_computer #118

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

lohedges
Copy link
Contributor

@lohedges lohedges commented Jul 8, 2024

This PR allows the use of a forward hook on the internal AEVComputer of ANI models when using OptmizedTorchANI via TorchScript. See aiqm/torchani#649 for details.

@peastman
Copy link
Member

peastman commented Jul 8, 2024

Does this introduce any compatibility issues we need to be aware of, such as only working with newer versions of TorchANI?

@lohedges
Copy link
Contributor Author

lohedges commented Jul 8, 2024

I don't think so, I've checked back to version 1.0.0 of TorchANI and the signature of AEVComputer.forward is identical (although missing type hinting). Older versions, e.g. the original 0.1 release, are missing the cell and pbc kwargs, but I doubt you support those given that the oldest version of TorchANI on conda-forge is 2.2.

Just to note that while the PR linked to above won't (yet) be merged due to a code freeze, this fix is independent of it, i.e. it allows you to use an AEVComputer forward hook with OptimizedTorchANI without requiring the fix to TorchANI itself.

@peastman
Copy link
Member

peastman commented Jul 9, 2024

@RaulPPelaez any idea what's going on with CI?

@RaulPPelaez
Copy link
Contributor

Could it be branch protection rules related to OP being a first time contributor? https://github.com/orgs/community/discussions/26698

I cannot access those settings for this repo, can you take a look @peastman ?

@peastman
Copy link
Member

I checked and the rules listed there are correct. The problem is that none of the CI builds have run. And there's no option to retrigger them. Let me try making a trivial change to the file and see if that gets it working.

@peastman
Copy link
Member

Look like they're running now.

@peastman
Copy link
Member

One build is failing with the dreaded [Errno 28] No space left on device'. It's clearly not related to this change, so I'm ok with merging it. I'm currently dealing with that same error in trying to do a new OpenMM dev build.

@peastman peastman merged commit 05d30d4 into openmm:master Jul 10, 2024
3 of 4 checks passed
@lohedges
Copy link
Contributor Author

Many thanks for looking at this so quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants