-
Notifications
You must be signed in to change notification settings - Fork 599
Added doc for netsize setting, num_nodes specification, and sel setting in doc/troubleshooting/ #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+242
−11
Merged
Added doc for netsize setting, num_nodes specification, and sel setting in doc/troubleshooting/ #657
Changes from all commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
472dc1c
check html window
35420ba
change index.rst of branch devel
cabe8ba
Merge tag 'v2.0.0.a0' into devel
8ac43e5
Merge branch 'devel' of http://github.com/deepmodeling/deepmd-kit int…
36adf85
Re-structured doc
f62e5ce
Re-structured Doc
8dc480b
Re-structured Doc
f7c000f
Re-structured Doc
6e92359
Re-structured Doc
d2bd1ea
Re-structured Doc
0a994c2
Re-structured Doc
420822c
Re-structured Doc
ba1bc7b
Set theme jekyll-theme-cayman
tuoping dfe2193
Create index.md
tuoping 2c46ffd
Re-structured Doc
25cf687
Re-structured Doc
484c9d9
Re-structured index.rst and seperated install.rst into 3 files;
1a55647
Same as before
a65a50f
Edited license.rst and credits.rst
bc68f89
same as before
fcc85a7
Modified pair-style-deepmd syntax part
38f713b
Fixed the collapsed table in getting-started#prepare-data by adding e…
19ff8a3
Added sphinx-markdown-table in requirements.txt
32e4a68
modified getting-started.md compared with deepmodeling/deepmd-kit/devel
52a182e
Modification after Merge
eae6661
modified superlinks in getting-started.md
328df53
same
35f46fb
Something is imperfect with the url. I can't link to #section in anot…
aa00bc8
changed LICENSE to url; deleted whatsnew, application-examples and kn…
df02d99
Merge remote-tracking branch 'refs/remotes/origin/devel' into devel
45956f6
corrected subsection links
c626b55
testing external section links
2f7c49c
same
940d08d
changed all the superlinks in getting-started.md from markdown format…
563a705
same
a28afd5
Update doc/conf.py
tuoping a9619bb
Update doc/getting-started.md
tuoping b38d538
added some descriptor/scripts in api.rst; Changed the user names of c…
3bed245
Merge branch 'devel' of http://github.com/tuoping/deepmd-kit into devel
006e7d1
Changed parser from recommonmark to myst, so the header-anchors in ge…
40c6ae2
add myst-parser in requirements
f0bdb8b
move doc dependence packages from requirements.txt to setup.py
dfc0484
changed contributor's order in credits.rst
c60523f
change whatsnew
fa48beb
change highlights in 2.0 in README.md
72c2c0e
Update README.md
tuoping 46e843b
Merge remote-tracking branch 'TP/devel' into devel
ebb2419
Add CONTRIBUTING.md
990f1cb
Fixed some minor mistakes.
18c00a2
changed document for training inputs from train-input.rst to train-in…
fe084a3
Fixed links under "highlights in kit2.0.0".
tuoping 9c2115e
Checked all the links, and made sure they work both in markdown mode …
74269c0
Sorry, fixed a broken link in CONTRIBUTING.md.
2bd50a6
Asigned language 'bash' for codes in CONTRIBUTING.md; Corrected a typ…
ea0acb7
Update CONTRIBUTING.md
amcadmus 671be8d
fix typo in README.md
amcadmus e7a0589
Update README.md
amcadmus 3735a8f
Update credits.rst
amcadmus 25406a6
merge from deepmodeling
ad8bf83
Merge branch 'devel' of http://github.com/deepmodeling/deepmd-kit int…
383cfa9
Changed entries in troubleshooting/index.md and development/index.md …
7daa801
Merge branch 'devel' of http://github.com/tuoping/deepmd-kit into devel
e1cda02
Optimized the mkindex function in conf.py
d9db26f
Debuged conf.py
9d54f35
Itemized presentation in troubleshooting/index.md and development/ind…
1b0b96b
Added doc for netsize setting;
29166e7
merge from origin/devel
8fd2786
merge
b20324a
Update doc/troubleshooting/howtoset_num_nodes.md
tuoping ac00229
Update doc/troubleshooting/howtoset_num_nodes.md
tuoping f8e0421
add explanation for [] in troubleshooting/howtoset_netsize.md
18e2c5e
Merge branch 'devel' of http://github.com/tuoping/deepmd-kit into devel
c024c15
Update howtoset_sel.md
tuoping 03a79a5
Update howtoset_sel.md
tuoping 8c7a89b
Update howtoset_sel.md
tuoping e3103d8
Edited howtoset_sel.md
e72c624
Update howtoset_sel.md
tuoping 4b58dd9
Update howtoset_sel.md
amcadmus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,141 @@ | ||
| # How to tune Fitting/embedding-net size ? | ||
|
|
||
| Here are some test forms on fitting-net size tuning or embedding-net size tuning performed on several different systems. | ||
|
|
||
|
|
||
| ## Al2O3 | ||
|
|
||
| ### Fitting net size tuning form on Al2O3: (embedding-net size: [25,50,100]) | ||
|
|
||
| Fitting-net size | Energy L2err(eV) | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|---|--- | ||
| [240,240,240] | 1.742252e-02 | 7.259383e-05 | 4.014115e-02 | ||
| [80,80,80] | 1.799349e-02 | 7.497287e-05 | 4.042977e-02 | ||
| [40,40,40] | 1.799036e-02 | 7.495984e-05 | 4.068806e-02 | ||
| [20,20,20] | 1.834032e-02 | 7.641801e-05 | 4.094784e-02 | ||
| [10,10,10] | 1.913058e-02 | 7.971073e-05 | 4.154775e-02 | ||
| [5,5,5] | 1.932914e-02 | 8.053808e-05 | 4.188052e-02 | ||
| [4,4,4] | 1.944832e-02 | 8.103467e-05 | 4.217826e-02 | ||
| [3,3,3] | 2.068631e-02 | 8.619296e-05 | 4.300497e-02 | ||
| [2,2,2] | 2.267962e-02 | 9.449840e-05 | 4.413609e-02 | ||
| [1,1,1] | 2.813596e-02 | 1.172332e-04 | 4.781115e-02 | ||
| [] | 3.135002e-02 | 1.306251e-04 | 5.373120e-02 | ||
|
|
||
| _[] means no hidden layer, but there is still a linear output layer. This situation is equal to the linear regression._ | ||
|
|
||
| ### Embedding net size tuning form on Al2O3: (Fitting-net size: [240,240,240]) | ||
|
|
||
| Embedding-net size | Energy L2err(eV) | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|---|--- | ||
| [25,50,100] | 1.742252e-02 | 7.259383e-05 | 4.014115e-02 | ||
| [10,20,40] | 2.909990e-02 | 1.212496e-04 | 4.734667e-02 | ||
| [5,10,20] | 3.357767e-02 | 1.399070e-04 | 5.706385e-02 | ||
| [4,8,16] | 6.060367e-02 | 2.525153e-04 | 7.333304e-02 | ||
| [3,6,12] | 5.656043e-02 | 2.356685e-04 | 7.793539e-02 | ||
| [2,4,8] | 5.277023e-02 | 2.198759e-04 | 7.459995e-02 | ||
| [1,2,4] | 1.302282e-01 | 5.426174e-04 | 9.672238e-02 | ||
|
|
||
|
|
||
| ## Cu | ||
|
|
||
| ### Fitting net size tuning form on Cu: (embedding-net size: [25,50,100]) | ||
|
|
||
| Fitting-net size | Energy L2err(eV) | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|---|--- | ||
| [240,240,240] | 4.135548e-02 | 1.615449e-04 | 8.940946e-02 | ||
| [20,20,20] | 4.323858e-02 | 1.689007e-04 | 8.955762e-02 | ||
| [10,10,10] | 4.399364e-02 | 1.718502e-04 | 8.962891e-02 | ||
| [5,5,5] | 4.468404e-02 | 1.745470e-04 | 8.970111e-02 | ||
| [4,4,4] | 4.463580e-02 | 1.743586e-04 | 8.972011e-02 | ||
| [3,3,3] | 4.493758e-02 | 1.755374e-04 | 8.971303e-02 | ||
| [2,2,2] | 4.500736e-02 | 1.758100e-04 | 8.973878e-02 | ||
| [1,1,1] | 4.542073e-02 | 1.774247e-04 | 8.964761e-02 | ||
| [] | 4.545168e-02 | 1.775456e-04 | 8.983201e-02 | ||
|
|
||
| ### Embedding net size tuning form on Cu: (Fitting-net size: [240,240,240]) | ||
|
|
||
| Embedding-net size | Energy L2err(eV) | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|---|--- | ||
| [25,50,100] | 4.135548e-02 | 1.615449e-04 | 8.940946e-02 | ||
| [20,40,80] | 4.203562e-02 | 1.642016e-04 | 8.925881e-02 | ||
| [15,30,60] | 4.146672e-02 | 1.619794e-04 | 8.936911e-02 | ||
| [10,20,40] | 4.263060e-02 | 1.665258e-04 | 8.955818e-02 | ||
| [5,10,20] | 4.994913e-02 | 1.951138e-04 | 9.007786e-02 | ||
| [4,8,16] | 1.022157e-01 | 3.992802e-04 | 9.532119e-02 | ||
| [3,9,12] | 1.362098e-01 | 5.320695e-04 | 1.073860e-01 | ||
| [2,4,8] | 7.061800e-02 | 2.758515e-04 | 9.126418e-02 | ||
| [1,2,4] && seed = 1 | 9.843161e-02 | 3.844985e-04 | 9.348505e-02 | ||
| [1,2,4] && seed = 2 | 9.404335e-02 | 3.673568e-04 | 9.304089e-02 | ||
| [1,2,4] && seed = 3 | 1.508016e-01 | 5.890688e-04 | 1.382356e-01 | ||
| [1,2,4] && seed = 4 | 9.686949e-02 | 3.783965e-04 | 9.294820e-02 | ||
|
|
||
|
|
||
| ## Water | ||
|
|
||
| ### Fitting net size tuning form on water: (embedding-net size: [25,50,100]) | ||
|
|
||
| Fitting-net size | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|--- | ||
| [240,240,240] | 9.1589E-04 | 5.1540E-02 | ||
| [200,200,200] | 9.3221E-04 | 5.2366E-02 | ||
| [160,160,160] | 9.4274E-04 | 5.3403E-02 | ||
| [120,120,120] | 9.5407E-04 | 5.3093E-02 | ||
| [80,80,80] | 9.4605E-04 | 5.3402E-02 | ||
| [40,40,40] | 9.8533E-04 | 5.5790E-02 | ||
| [20,20,20] | 1.0057E-03 | 5.8232E-02 | ||
| [10,10,10] | 1.0466E-03 | 6.2279E-02 | ||
| [5,5,5] | 1.1154E-03 | 6.7994E-02 | ||
| [4,4,4] | 1.1289E-03 | 6.9613E-02 | ||
| [3,3,3] | 1.2368E-03 | 7.9786E-02 | ||
| [2,2,2] | 1.3558E-03 | 9.7042E-02 | ||
| [1,1,1] | 1.4633E-03 | 1.1265E-01 | ||
| [] | 1.5193E-03 | 1.2136E-01 | ||
|
|
||
| ### Embedding net size tuning form on water: (Fitting-net size: [240,240,240]) | ||
|
|
||
| Embedding-net size | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|--- | ||
| [25,50,100] | 9.1589E-04 | 5.1540E-02 | ||
| [20,40,80] | 9.5080E-04 | 5.3593E-02 | ||
| [15,30,60] | 9.7996E-04 | 5.6338E-02 | ||
| [10,20,40] | 1.0353E-03 | 6.2776E-02 | ||
| [5,10,20] | 1.1254E-03 | 7.3195E-02 | ||
| [4,8,16] | 1.2495E-03 | 8.0371E-02 | ||
| [3,6,12] | 1.3604E-03 | 9.9883E-02 | ||
| [2,4,8] | 1.4358E-03 | 9.7389E-02 | ||
| [1,2,4] | 2.1765E-03 | 1.7276E-01 | ||
|
|
||
|
|
||
| ## Mg-Al | ||
|
|
||
| ### Fitting net size tuning form on Mg-Al: (embedding-net size: [25,50,100]) | ||
|
|
||
| Fitting-net size | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|--- | ||
| [240,240,240] | 3.9606e-03 | 1.6289e-02 | ||
| [200,200,200] | 3.9449e-03 | 1.6471e-02 | ||
| [160,160,160] | 4.0947e-03 | 1.6413e-02 | ||
| [120,120,120] | 3.9234e-03 | 1.6283e-02 | ||
| [80,80,80] | 3.9758e-03 | 1.6506e-02 | ||
| [40,40,40] | 3.9142e-03 | 1.6348e-02 | ||
| [20,20,20] | 4.1302e-03 | 1.7006e-02 | ||
| [10,10,10] | 4.3433e-03 | 1.7524e-02 | ||
| [5,5,5] | 5.3154e-03 | 1.9716e-02 | ||
| [4,4,4] | 5.4210e-03 | 1.9710e-02 | ||
| [2,2,2] | 6.2667e-03 | 2.2568e-02 | ||
| [1,1,1] | 7.3676e-03 | 2.6375e-02 | ||
| [] | 7.3999e-03 | 2.6097e-02 | ||
|
|
||
| ### Embedding net size tuning form on Mg-Al: (Fitting-net size: [240,240,240]) | ||
|
|
||
| Embedding-net size | Energy L2err/Natoms(eV) | Force L2err(eV/Angstrom) | ||
| ---|---|--- | ||
| [25,50,100] | 3.9606e-03 | 1.6289e-02 | ||
| [20,40,80] | 4.0292e-03 | 1.6555e-02 | ||
| [15,30,60] | 4.1743e-03 | 1.7026e-02 | ||
| [10,20,40] | 4.8138e-03 | 1.8516e-02 | ||
| [5,10,20] | 5.6052e-03 | 2.0709e-02 | ||
| [4,8,16] | 6.1335e-03 | 2.1450e-02 | ||
| [3,6,12] | 6.6469e-03 | 2.3003e-02 | ||
| [2,4,8] | 6.8222e-03 | 2.6318e-02 | ||
| [1,2,4] | 1.0678e-02 | 3.9559e-02 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # How to control the number of nodes used by a job ? | ||
|
|
||
| Set the number of CPU nodes used by DP algorithms with: | ||
| ```bash | ||
| mpirun -np $num_nodes dp | ||
| ``` | ||
| Set the number of threads used by DP algorithms with: | ||
| ```bash | ||
| export OMP_NUM_THREADS=$num_threads | ||
| ``` | ||
|
|
||
| Set the number of CPU nodes used by TF kernels with: | ||
| ```bash | ||
| export TF_INTRA_OP_PARALLELISM_THREADS=$num_nodes | ||
| export TF_INTER_OP_PARALLELISM_THREADS=$num_nodes | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Do we need to set rcut < half boxsize ? | ||
|
|
||
| When seeking the neighbors of atom i under periodic boundary condition, deepmd-kit considers all j atoms within cutoff rcut from atom i in all mirror cells. | ||
|
|
||
| So, so there is no limitation on the setting of rcut. | ||
|
|
||
| PS: The reason why some softwares require rcut < half boxsize is that they only consider the nearest mirrors from the center cell. Deepmd-kit is totally different from them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # How to set sel ? | ||
|
|
||
| `sel` is short for "selected number of atoms in `rcut`". | ||
|
|
||
| `sel_a[i]` is a list of integers. The length of the list should be the same as the number of atom types in the system. | ||
|
|
||
| `sel_a[i]` gives the number of selected number of type `i` neighbors within `rcut`. To ensure that the results are strictly accurate, `sel_a[i]` should be larger than the largest number of type `i` neighbors in the `rcut`. | ||
|
|
||
| However, the computation overhead increases with `sel_a[i]`, therefore, `sel_a[i]` should be as small as possible. | ||
|
|
||
| The setting of `sel_a[i]` should balance the above two considerations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,16 @@ | ||
| # Troubleshooting | ||
| # FAQs | ||
| In consequence of various differences of computers or systems, problems may occur. Some common circumstances are listed as follows. | ||
| In addition, some frequently asked questions about parameters setting are listed as follows. | ||
| If other unexpected problems occur, you're welcome to contact us for help. | ||
|
|
||
|
|
||
| ## Trouble shooting | ||
| - [Installation](installation.md) | ||
| - [The temperature undulates violently during early stages of MD](md-energy-undulation.md) | ||
| - [MD: cannot run LAMMPS after installing a new version of DeePMD-kit](md-version-compatibility.md) | ||
| - [Model compatability](model-compatability.md) | ||
| - [Do we need to set rcut < half boxsize ?](rcut.md) | ||
|
|
||
| ## Parameters setting | ||
| - [How to tune Fitting/embedding-net size ?](howtoset_netsize.md) | ||
| - [How to control the number of nodes used by a job ?](howtoset_num_nodes.md) | ||
| - [Do we need to set rcut < half boxsize ?](howtoset_rcut.md) | ||
| - [How to set sel ?](howtoset_sel.md) |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.