Installation¶
fes-ml needs Python ≥ 3.10. Its core (import fes_ml) needs only OpenMM, NumPy and networkx; the
system builders and potentials are optional extras, so you install only what you use.
| Extra | Gives you | Packages |
|---|---|---|
sire |
the Sire creation strategy (Amber files) | sire |
openff |
the OpenFF creation strategy (the default), CustomLJ, ChargeTransfer |
openff-toolkit, openff-interchange |
ml |
MLPotential, MLInterpolation, MLCorrection |
openmm-ml, openmm-torch, torch, torchani |
emle |
EMLEPotential (electrostatic embedding) |
emle-engine, sire |
analysis |
MBAR | pymbar |
viz |
plots | matplotlib |
dev |
tests, linting, type checks | pytest, ruff, mypy, pre-commit |
docs |
this site | mkdocs-material, mkdocstrings |
Several of these packages (Sire, OpenMM with CUDA, PyTorch, the OpenFF toolkit) are best installed with conda/mamba. The environment file installs everything:
micromamba env create -f environment.yaml
micromamba activate fes-ml
pip install -e .
The environment installs the CUDA build of PyTorch and OpenMM. Conda selects the CUDA build only if it finds a GPU driver. On a login node without a GPU, set the CUDA version before you create the environment:
CONDA_OVERRIDE_CUDA=12.9 micromamba env create -f environment.yaml
With the heavy packages already present, pip extras pick the rest:
pip install -e ".[openff,ml]"
Using a feature whose extra is missing raises an ImportError that names the extra to install.