- Create conda environment:
conda create -n dmff python=3.9 --yes
- Install jax (select the correct cuda version, see more details in the Jax installation guide):
pip install "jaxlib[cuda11_cudnn805]==0.3.15" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
pip install jax==0.3.17- Install jax-md:
pip install jax-md==0.2.0conda install -c conda-forge mdtraj==1.9.7
pip install optax==0.1.3
pip install pymbar==4.0.1- Install OpenMM:
conda install -c conda-forge openmm==7.7.0- Install RDKit (required for SMIRKS-based parametrization):
conda install -c conda-forge rdkitOne can download the DMFF source code from github:
git clone https://github.com/deepmodeling/DMFF.gitThen you may install DMFF using pip:
cd DMFF
pip install . --userTo test if DMFF is correctly installed, you can run the following commands in an interactive python session:
>>> import dmff
>>> import dmff.admpYou 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.