Skip to content

Latest commit

 

History

History
55 lines (52 loc) · 1.92 KB

2.installation.md

File metadata and controls

55 lines (52 loc) · 1.92 KB

2. Installation

2.1 Install Dependencies

  • Create conda environment:
conda create -n dmff python=3.9 --yes
conda activate dmff
  • Install jax (select the correct cuda version, see more details in the Jax installation guide):
# CPU version
pip install "jax[cpu]==0.4.14"
# GPU version
pip install "jax[cuda11_local]==0.4.14" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
conda install -c conda-forge mdtraj==1.9.7
pip install optax==0.1.3 pymbar==4.0.1 jaxopt==0.8.1
conda install -c conda-forge mdtraj==1.9.7
pip install optax==0.1.3
pip install pymbar==4.0.1
conda install -c conda-forge openmm==7.7.0
  • Install RDKit (required for SMIRKS-based parametrization):
conda install -c conda-forge rdkit

2.2 Install DMFF from Source Code

One can download the DMFF source code from github and install it using pip. :

git clone https://github.com/deepmodeling/DMFF.git
cd DMFF
pip install . --user

2.3 Test Installation

To test if DMFF is correctly installed, you can run the following commands in an interactive python session:

>>> import dmff
>>> import dmff.admp

You can also run the example scripts to test whether DMFF is installed correctly.

cd ./examples/water_fullpol
python ./run.py

Note that the scripts will run slower than expect if DO_JIT = True in dmff/settings.py. This is because the programm will do the jit compilation when a function is invoked in the first time.