Skip to content

Commit 53a1078

Browse files
authored
merge devel into master (#2725)
2 parents 6170356 + 16988e4 commit 53a1078

File tree

650 files changed

+50663
-175686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

650 files changed

+50663
-175686
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
BasedOnStyle: Google
33
BinPackParameters: false
4+
InsertBraces: true
45
...

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Python:
22
- deepmd/**/*
3+
- deepmd_cli/**/*
34
- source/tests/**/*
45
Docs: doc/**/*
56
Examples: examples/**/*

.github/workflows/build_wheel.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
python: 311
2323
platform_id: macosx_x86_64
2424
dp_variant: cpu
25+
# macos-arm64
26+
- os: macos-latest
27+
python: 311
28+
platform_id: macosx_arm64
29+
dp_variant: cpu
2530
# win-64
2631
- os: windows-2019
2732
python: 311
@@ -42,7 +47,7 @@ jobs:
4247
name: Setup QEMU
4348
if: matrix.platform_id == 'manylinux_aarch64'
4449
- name: Build wheels
45-
uses: pypa/cibuildwheel@v2.12.3
50+
uses: pypa/cibuildwheel@v2.14
4651
env:
4752
CIBW_BUILD_VERBOSITY: 1
4853
CIBW_ARCHS: all
@@ -95,20 +100,20 @@ jobs:
95100
name: artifact
96101
path: source/install/docker/dist
97102
- name: Log in to the Container registry
98-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
103+
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
99104
with:
100105
registry: ghcr.io
101106
username: ${{ github.actor }}
102107
password: ${{ secrets.GITHUB_TOKEN }}
103108

104109
- name: Extract metadata (tags, labels) for Docker
105110
id: meta
106-
uses: docker/metadata-action@c4ee3adeed93b1fa6a762f209fb01608c1a22f1e
111+
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175
107112
with:
108113
images: ghcr.io/deepmodeling/deepmd-kit
109114

110115
- name: Build and push Docker image
111-
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
116+
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
112117
with:
113118
context: source/install/docker
114119
push: ${{ github.repository_owner == 'deepmodeling' && github.event_name == 'push' }}

.github/workflows/test_cc.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ jobs:
2323
TF_INTER_OP_PARALLELISM_THREADS: 1
2424
LMP_CXX11_ABI_0: 1
2525
# test lammps
26+
# ASE issue: https://gitlab.com/ase/ase/-/merge_requests/2843
27+
# TODO: remove ase version when ase has new release
2628
- run: |
2729
python -m pip install -U pip
28-
python -m pip install -e .[cpu,test,lmp]
30+
python -m pip install -e .[cpu,test,lmp] "ase @ https://github.com/rosswhitfield/ase/archive/edd03571aff6944b77b4a4b055239f3c3e4eeb66.zip"
2931
env:
3032
DP_BUILD_TESTING: 1
3133
- run: pytest --cov=deepmd source/lmp/tests
@@ -35,6 +37,14 @@ jobs:
3537
TF_INTER_OP_PARALLELISM_THREADS: 1
3638
LAMMPS_PLUGIN_PATH: ${{ github.workspace }}/dp_test/lib/deepmd_lmp
3739
LD_LIBRARY_PATH: ${{ github.workspace }}/dp_test/lib
40+
# test ipi
41+
- run: pytest --cov=deepmd source/ipi/tests
42+
env:
43+
OMP_NUM_THREADS: 1
44+
TF_INTRA_OP_PARALLELISM_THREADS: 1
45+
TF_INTER_OP_PARALLELISM_THREADS: 1
46+
PATH: ${{ github.workspace }}/dp_test/bin:$PATH
47+
LD_LIBRARY_PATH: ${{ github.workspace }}/dp_test/lib
3848
- uses: codecov/codecov-action@v3
3949
with:
4050
gcov: true

.github/workflows/test_python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ jobs:
4242
TENSORFLOW_VERSION: ${{ matrix.tf }}
4343
DP_BUILD_TESTING: 1
4444
- run: dp --version
45-
- run: pytest --cov=deepmd source/tests --durations=0
45+
- run: pytest --cov=deepmd --cov=deepmd_cli source/tests --durations=0
4646
- uses: codecov/codecov-action@v3
4747
with:
4848
gcov: true
49+
gcov_executable: gcov-${{ matrix.gcc }}
4950
pass:
5051
name: Pass testing Python
5152
needs: [testpython]

.license-header.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SPDX-License-Identifier: LGPL-3.0-or-later

.pre-commit-config.yaml

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,29 @@ repos:
1111
- id: check-yaml
1212
#- id: check-json
1313
- id: check-added-large-files
14+
args: ['--maxkb=1024', '--enforce-all']
15+
# TODO: remove the following after resolved
16+
exclude: |
17+
(?x)^(
18+
source/tests/infer/dipolecharge_e.pbtxt|
19+
source/tests/infer/deeppolar_new.pbtxt
20+
)$
1421
- id: check-merge-conflict
1522
- id: check-symlinks
1623
- id: check-toml
1724
# Python
1825
- repo: https://github.com/psf/black
19-
rev: 23.3.0
26+
rev: 23.7.0
2027
hooks:
2128
- id: black-jupyter
2229
- repo: https://github.com/PyCQA/isort
2330
rev: 5.12.0
2431
hooks:
2532
- id: isort
2633
files: \.py$
27-
- repo: https://github.com/charliermarsh/ruff-pre-commit
34+
- repo: https://github.com/astral-sh/ruff-pre-commit
2835
# Ruff version.
29-
rev: v0.0.269
36+
rev: v0.0.280
3037
hooks:
3138
- id: ruff
3239
args: ["--fix"]
@@ -38,12 +45,12 @@ repos:
3845
args: ["--write"]
3946
# Python inside docs
4047
- repo: https://github.com/asottile/blacken-docs
41-
rev: 1.13.0
48+
rev: 1.15.0
4249
hooks:
4350
- id: blacken-docs
4451
# C++
4552
- repo: https://github.com/pre-commit/mirrors-clang-format
46-
rev: v16.0.4
53+
rev: v16.0.6
4754
hooks:
4855
- id: clang-format
4956
exclude: ^source/3rdparty|source/lib/src/cuda/cudart/.+\.inc
@@ -54,7 +61,7 @@ repos:
5461
- id: csslint
5562
# Shell
5663
- repo: https://github.com/scop/pre-commit-shfmt
57-
rev: v3.6.0-2
64+
rev: v3.7.0-1
5865
hooks:
5966
- id: shfmt
6067
# CMake
@@ -63,5 +70,46 @@ repos:
6370
hooks:
6471
- id: cmake-format
6572
#- id: cmake-lint
73+
# license header
74+
- repo: https://github.com/Lucas-C/pre-commit-hooks
75+
rev: v1.5.1
76+
hooks:
77+
# C++, js
78+
- id: insert-license
79+
files: \.(c|cc|cpp|js|ts|h|hpp)$
80+
args:
81+
- --license-filepath
82+
- .license-header.txt
83+
- --comment-style
84+
- //
85+
- --no-extra-eol
86+
exclude: ^source/3rdparty|source/lib/src/cuda/cudart/.+\.inc
87+
# CSS
88+
- id: insert-license
89+
files: \.(css|scss)$
90+
args:
91+
- --license-filepath
92+
- .license-header.txt
93+
- --comment-style
94+
- /*| *| */
95+
- --no-extra-eol
96+
# Python
97+
- id: insert-license
98+
files: \.(py|pyx)$
99+
args:
100+
- --license-filepath
101+
- .license-header.txt
102+
- --comment-style
103+
- "#"
104+
- --no-extra-eol
105+
# HTML
106+
- id: insert-license
107+
files: \.(html|vue|xml)$
108+
args:
109+
- --license-filepath
110+
- .license-header.txt
111+
- --comment-style
112+
- <!--| ~| -->
113+
- --no-extra-eol
66114
ci:
67115
autoupdate_branch: devel

CITATIONS.bib

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,29 @@ @article{Wang_ComputPhysCommun_2018_v228_p178
1515
pages = {178--184},
1616
}
1717
18-
@misc{Zeng_arXiv_2023,
18+
@Article{Zeng_JChemPhys_2023_v159_p054801,
1919
annote = {general purpose},
20-
title = {{DeePMD-kit v2: A software package for Deep Potential models}},
21-
author = {Jinzhe Zeng and Duo Zhang and Denghui Lu and Pinghui Mo and
22-
Zeyu Li and Yixiao Chen and Marián Rynik and Li'ang Huang and
23-
Ziyao Li and Shaochen Shi and Yingze Wang and Haotian Ye and
24-
Ping Tuo and Jiabin Yang and Ye Ding and Yifan Li and Davide
25-
Tisi and Qiyu Zeng and Han Bao and Yu Xia and Jiameng Huang
26-
and Koki Muraoka and Yibo Wang and Junhan Chang and Fengbo
27-
Yuan and Sigbjørn Løland Bore and Chun Cai and Yinnian Lin
28-
and Bo Wang and Jiayan Xu and Jia-Xin Zhu and Chenxing Luo and
29-
Yuzhi Zhang and Rhys E. A. Goodall and Wenshuo Liang and Anurag
30-
Kumar Singh and Sikai Yao and Jingchao Zhang and Renata
31-
Wentzcovitch and Jiequn Han and Jie Liu and Weile Jia and
32-
Darrin M. York and Weinan E and Roberto Car and Linfeng Zhang
33-
and Han Wang},
34-
year = {2023},
35-
archivePrefix = {arXiv},
36-
doi = {10.48550/arXiv.2304.09409}
20+
title = {{DeePMD-kit v2: A software package for deep potential models}},
21+
author = {Jinzhe Zeng and Duo Zhang and Denghui Lu and Pinghui Mo and Zeyu Li
22+
and Yixiao Chen and Mari{\'a}n Rynik and Li'ang Huang and Ziyao Li and
23+
Shaochen Shi and Yingze Wang and Haotian Ye and Ping Tuo and Jiabin
24+
Yang and Ye Ding and Yifan Li and Davide Tisi and Qiyu Zeng and Han
25+
Bao and Yu Xia and Jiameng Huang and Koki Muraoka and Yibo Wang and
26+
Junhan Chang and Fengbo Yuan and Sigbj{\o}rn L{\o}land Bore and Chun
27+
Cai and Yinnian Lin and Bo Wang and Jiayan Xu and Jia-Xin Zhu and
28+
Chenxing Luo and Yuzhi Zhang and Rhys E A Goodall and Wenshuo Liang
29+
and Anurag Kumar Singh and Sikai Yao and Jingchao Zhang and Renata
30+
Wentzcovitch and Jiequn Han and Jie Liu and Weile Jia and Darrin M
31+
York and Weinan E and Roberto Car and Linfeng Zhang and Han Wang},
32+
journal = {J. Chem. Phys.},
33+
volume = 159,
34+
issue = 5,
35+
year = 2023,
36+
pages = 054801,
37+
doi = {10.1063/5.0155600},
3738
}
3839
40+
3941
@article{Lu_CompPhysCommun_2021_v259_p107624,
4042
annote = {GPU support},
4143
title={{86 PFLOPS Deep Potential Molecular Dynamics simulation of 100 million

MANIFEST.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prune source/tests
2+
prune source/api_c/tests
3+
prune source/api_cc/tests
4+
prune source/lib/tests
5+
prune source/lmp/tests
6+
prune doc
7+
prune examples
8+
prune data
9+
prune .github

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<span style="font-size:larger;">DeePMD-kit Manual</span>
66
========
77
[![GitHub release](https://img.shields.io/github/release/deepmodeling/deepmd-kit.svg?maxAge=86400)](https://github.com/deepmodeling/deepmd-kit/releases)
8-
[![doi:10.1016/j.cpc.2018.03.016](https://img.shields.io/badge/DOI-10.1016%2Fj.cpc.2018.03.016-blue)](https://doi.org/10.1016/j.cpc.2020.107206)
9-
[![Citations](https://citations.njzjz.win/10.1016/j.cpc.2018.03.016)](https://badge.dimensions.ai/details/doi/10.1016/j.cpc.2018.03.016)
108
[![offline packages](https://img.shields.io/github/downloads/deepmodeling/deepmd-kit/total?label=offline%20packages)](https://github.com/deepmodeling/deepmd-kit/releases)
119
[![conda-forge](https://img.shields.io/conda/dn/conda-forge/deepmd-kit?color=red&label=conda-forge&logo=conda-forge)](https://anaconda.org/conda-forge/deepmd-kit)
1210
[![pip install](https://img.shields.io/pypi/dm/deepmd-kit?label=pip%20install)](https://pypi.org/project/deepmd-kit)
@@ -49,7 +47,11 @@ For more information, check the [documentation](https://deepmd.readthedocs.io/).
4947
The project DeePMD-kit is licensed under [GNU LGPLv3.0](./LICENSE).
5048
If you use this code in any future publications, please cite the following publications for general purpose:
5149
- Han Wang, Linfeng Zhang, Jiequn Han, and Weinan E. "DeePMD-kit: A deep learning package for many-body potential energy representation and molecular dynamics." Computer Physics Communications 228 (2018): 178-184.
52-
- Jinzhe Zeng, Duo Zhang, Denghui Lu, Pinghui Mo, Zeyu Li, Yixiao Chen, Marián Rynik, Li'ang Huang, Ziyao Li, Shaochen Shi, Yingze Wang, Haotian Ye, Ping Tuo, Jiabin Yang, Ye Ding, Yifan Li, Davide Tisi, Qiyu Zeng, Han Bao, Yu Xia, Jiameng Huang, Koki Muraoka, Yibo Wang, Junhan Chang, Fengbo Yuan, Sigbjørn Løland Bore, Chun Cai, Yinnian Lin, Bo Wang, Jiayan Xu, Jia-Xin Zhu, Chenxing Luo, Yuzhi Zhang, Rhys E. A. Goodall, Wenshuo Liang, Anurag Kumar Singh, Sikai Yao, Jingchao Zhang, Renata Wentzcovitch, Jiequn Han, Jie Liu, Weile Jia, Darrin M. York, Weinan E, Roberto Car, Linfeng Zhang, Han Wang. "DeePMD-kit v2: A software package for Deep Potential models." [arXiv:2304.09409](https://doi.org/10.48550/arXiv.2304.09409).
50+
[![doi:10.1016/j.cpc.2018.03.016](https://img.shields.io/badge/DOI-10.1016%2Fj.cpc.2018.03.016-blue)](https://doi.org/10.1016/j.cpc.2018.03.016)
51+
[![Citations](https://citations.njzjz.win/10.1016/j.cpc.2018.03.016)](https://badge.dimensions.ai/details/doi/10.1016/j.cpc.2018.03.016)
52+
- Jinzhe Zeng, Duo Zhang, Denghui Lu, Pinghui Mo, Zeyu Li, Yixiao Chen, Marián Rynik, Li'ang Huang, Ziyao Li, Shaochen Shi, Yingze Wang, Haotian Ye, Ping Tuo, Jiabin Yang, Ye Ding, Yifan Li, Davide Tisi, Qiyu Zeng, Han Bao, Yu Xia, Jiameng Huang, Koki Muraoka, Yibo Wang, Junhan Chang, Fengbo Yuan, Sigbjørn Løland Bore, Chun Cai, Yinnian Lin, Bo Wang, Jiayan Xu, Jia-Xin Zhu, Chenxing Luo, Yuzhi Zhang, Rhys E. A. Goodall, Wenshuo Liang, Anurag Kumar Singh, Sikai Yao, Jingchao Zhang, Renata Wentzcovitch, Jiequn Han, Jie Liu, Weile Jia, Darrin M. York, Weinan E, Roberto Car, Linfeng Zhang, Han Wang. "DeePMD-kit v2: A software package for deep potential models." J. Chem. Phys. 159 (2023): 054801.
53+
[![doi:10.1063/5.0155600](https://img.shields.io/badge/DOI-10.1063%2F5.0155600-blue)](https://doi.org/10.1063/5.0155600)
54+
[![Citations](https://citations.njzjz.win/10.1063/5.0155600)](https://badge.dimensions.ai/details/doi/10.1063/5.0155600)
5355

5456
In addition, please follow [the bib file](CITATIONS.bib) to cite the methods you used.
5557

@@ -105,7 +107,7 @@ A full [document](doc/train/train-input-auto.rst) on options in the training inp
105107
- [Fit energy](doc/model/train-energy.md)
106108
- [Fit spin energy](doc/model/train-energy-spin.md)
107109
- [Fit `tensor` like `Dipole` and `Polarizability`](doc/model/train-fitting-tensor.md)
108-
- [Fit electronic density of states (DOS)](doc/model/train-fitting-dos.md)
110+
- [Fit electronic density of states (DOS)](doc/model/train-fitting-dos.md)
109111
- [Train a Deep Potential model using `type embedding` approach](doc/model/train-se-e2-a-tebd.md)
110112
- [Deep potential long-range](doc/model/dplr.md)
111113
- [Deep Potential - Range Correction (DPRc)](doc/model/dprc.md)

0 commit comments

Comments
 (0)