Repository navigation
Conversation
EMLEPotential is one openmm-torch force. With periodic boxes EMLE uses PME (emle-engine pull request 133, pinned). Lambda is a global parameter, so EMLE windows can share one Context.
ANI and the combined ML and EMLE models run as torch forces. ANI-2x and EMLE replay a CUDA graph, PythonTorchForce can use torch.compile, ML terms are scaled without a CustomCVForce, and windows that share a Context reuse the torch energies. OpenMM can share PyTorch's CUDA context (opt-in).
A PythonTorchForce replays its CUDA graph from C++ when OpenMM and PyTorch share the CUDA context. The torch forces live in one private package. Code nothing uses, the ChargeTransfer modification and the python mode are removed.
All code has type hints and NumPy docstrings, checked by ruff and mypy. The scaled MM terms are in ml_interpolation.py, with one loop for all force types. The commands are in a cli package.
This was referenced Dec 5, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ML potentials and EMLE run as openmm-torch forces in OpenMM, without Sire. ANI-2x and EMLE replay CUDA graphs, so no Python runs at each step.
Replaces #39.
Needs emle-engine with PME (chemle/emle-engine#133). CI and environment.yaml pin the same commit of it until it is merged.
Changelog: