You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Install the Tensorflow's python interface](#install-the-tensorflows-python-interface)
15
18
-[Install the DeePMD-kit's python interface](#install-the-deepmd-kits-python-interface)
16
19
-[Install the C++ interface](#install-the-c-interface)
@@ -83,11 +86,29 @@ In addition to building up potential energy models, DeePMD-kit can also be used
83
86
84
87
Please follow our [github](https://github.com/deepmodeling/deepmd-kit) webpage to see the latest released version and development version.
85
88
86
-
## Install the python interface
89
+
## Easy installation methods
90
+
There various easy methods to install DeePMD-kit. Choose one that you prefer. If you want to build by yourself, jump to the next two sections.
91
+
92
+
### With Docker
93
+
A docker for installing the DeePMD-kit on CentOS 7 is available [here](https://github.com/frankhan91/deepmd-kit_docker).
94
+
95
+
### With conda
96
+
DeePMD-kit is avaiable with [conda](https://github.com/conda/conda). Install [Anaconda](https://www.anaconda.com/distribution/#download-section) or [Miniconda](https://docs.conda.io/en/latest/miniconda.html) first.
To install the GPU version containing [CUDA 10.0](https://docs.nvidia.com/deploy/cuda-compatibility/index.html#binary-compatibility__table-toolkit-driver):
A docker for installing the DeePMD-kit on CentOS 7 is available [here](https://github.com/frankhan91/deepmd-kit_docker). We are currently working on installation methods using the `conda` package management system and `pip` tools. Hope these will come out soon.
108
+
### Offline packages
109
+
Both CPU and GPU version offline package are avaiable in [the Releases page](https://github.com/deepmodeling/deepmd-kit/releases).
90
110
111
+
## Install the python interface
91
112
### Install the Tensorflow's python interface
92
113
First, check the python version and compiler version on your machine
It is notice that everytime a new shell is started and one wants to use `DeePMD-kit`, the virtual environment should be activated by
127
+
```bash
128
+
source$tensorflow_venv/bin/activate
129
+
```
130
+
if one wants to skip out of the virtual environment, he/she can do
131
+
```bash
132
+
deactivate
133
+
```
105
134
If one has multiple python interpreters named like python3.x, it can be specified by, for example
106
135
```bash
107
136
virtualenv -p python3.7 $tensorflow_venv
@@ -483,7 +512,7 @@ Running an MD simulation with LAMMPS is simpler. In the LAMMPS input file, one n
483
512
pair_style deepmd graph.pb
484
513
pair_coeff
485
514
```
486
-
where `graph.pb` is the file name of the frozen model. The `pair_coeff` should be left blank. It should be noted that LAMMPS counts atom types starting from 1, therefore, all LAMMPS atom type will be firstly subtracted by 1, and then passed into the DeePMD-kit engine to compute the interactions. A detailed documentation of this pair style is [here](doc/lammps-pair-style-deepmd.md).
515
+
where `graph.pb` is the file name of the frozen model. The `pair_coeff` should be left blank. It should be noted that LAMMPS counts atom types starting from 1, therefore, all LAMMPS atom type will be firstly subtracted by 1, and then passed into the DeePMD-kit engine to compute the interactions. [A detailed documentation of this pair style is available.](doc/lammps-pair-style-deepmd.md).
487
516
488
517
### Long-range interaction
489
518
The reciprocal space part of the long-range interaction can be calculated by LAMMPS command `kspace_style`. To use it with DeePMD-kit, one writes
@@ -533,11 +562,7 @@ If other unexpected problems occur, you're welcome to contact us for help.
533
562
534
563
When the version of DeePMD-kit used to training model is different from the that of DeePMD-kit running MDs, one has the problem of model compatability.
535
564
536
-
DeePMD-kit guarantees that the codes with the same major and minor revisions are compatible. That is to say v0.12.5 is compatible to v0.12.0, but is not compatible to v0.11.0. When way of fixing it is to restart the training with the new revisions and a slightly increased `stop_batch`, say 1,000,000 to 1,001,000 if the `save_freq` was set to 1,000. Typically one runs
537
-
```bash
538
-
dp train --restart model.ckpt revised_input.json
539
-
```
540
-
and freeze the new model.
565
+
DeePMD-kit guarantees that the codes with the same major and minor revisions are compatible. That is to say v0.12.5 is compatible to v0.12.0, but is not compatible to v0.11.0 nor v1.0.0.
541
566
542
567
## Installation: inadequate versions of gcc/g++
543
568
Sometimes you may use a gcc/g++ of version <4.9. If you have a gcc/g++ of version > 4.9, say, 7.2.0, you may choose to use it by doing
Copy file name to clipboardExpand all lines: doc/lammps-pair-style-deepmd.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,13 @@ This pair style takes the deep potential defined in a model file that usually ha
35
35
36
36
The model deviation evalulate the consistency of the force predictions from multiple models. By default, only the maximal, minimal and averge model deviations are output. If the key `atomic` is set, then the model deviation of force prediction of each atom will be output.
37
37
38
-
By default, the model deviation is output in absolute value. If the keyword `relative` is set, then the relative model deviation will be output, which is defined by
38
+
By default, the model deviation is output in absolute value. If the keyword `relative` is set, then the relative model deviation will be output. The relative model deviation of the force on atom `i` is defined by
39
39
```math
40
-
|Df|
41
-
Ef = -------------
42
-
|f| + level
40
+
|Df_i|
41
+
Ef_i = -------------
42
+
|f_i| + level
43
43
```
44
-
where `Df` is the model deviation of a force, `|f|` is the norm of the force and `level` is provided as the parameter of the keyword `relative`.
44
+
where `Df_i` is the absolute model deviation of the force on atom `i`, `|f_i|` is the norm of the the force and `level` is provided as the parameter of the keyword `relative`.
45
45
46
46
47
47
## Restrictions
@@ -50,6 +50,8 @@ where `Df` is the model deviation of a force, `|f|` is the norm of the force and
50
50
51
51
- The `atom_style` of the system should be `atomic`.
52
52
53
+
- When using the `atomic` key word of `deepmd` is set, one should not use this pair style with MPI parallelization.
0 commit comments