mlp
#
Functionality for creating and managing ML potentials.
Functions:
-
load_egret_1–Load the Egret-1 MLPotential from local package resources.
-
get_mlp–Get an OpenMM-ML MLPotential using an arbitrary model identifier.
-
get_ml_omm_system–Create an OpenMM System using configured OpenMM-ML settings.
Attributes:
-
KnownModels–Commonly used model names from OpenMM-ML with dependencies provided by the pixi install from GitHub.
KnownModels
module-attribute
#
KnownModels = Literal[
"aceff-2.0",
"mace-off23-small",
"mace-off23-medium",
"mace-off23-large",
"mace-omol-0-extra-large",
"egret-1",
"aimnet2",
"orb-v3-conservative-omol",
]
Commonly used model names from OpenMM-ML with dependencies provided by the pixi install from GitHub.
_freeze_kwargs
#
load_egret_1
#
Load the Egret-1 MLPotential from local package resources.
Source code in presto/mlp.py
get_mlp
#
Get an OpenMM-ML MLPotential using an arbitrary model identifier.
Source code in presto/mlp.py
get_ml_omm_system
#
get_ml_omm_system(
mol: Molecule, mlp_settings: MLPSettings, device: device
) -> System
Create an OpenMM System using configured OpenMM-ML settings.
For non-ASE potentials, charge and device are auto-populated unless supplied
in ml_system_kwargs. For ASE potentials, charge is not auto-injected.