Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
6c99220
Merge master into devel (#2956)
njzjz Oct 27, 2023
9a4a4dd
support compressing gelu_tf (#2957)
njzjz Oct 30, 2023
1429e46
fix SpecifierSet behavior with prereleases (#2959)
njzjz Oct 30, 2023
5be8fc9
[pre-commit.ci] pre-commit autoupdate (#2961)
pre-commit-ci[bot] Oct 31, 2023
389d403
merge prob_sys_size with prob_sys_size;0:nsys:1.0 (#2963)
CaRoLZhangxy Oct 31, 2023
1529e72
move to ruff formatter (#2951)
njzjz Nov 1, 2023
1cbe63d
docs: add theory from v2 paper (#2715)
njzjz Nov 2, 2023
9154da2
docs: configuring automatically generated release notes (#2975)
njzjz Nov 6, 2023
574068c
docs: use relative links (#2976)
njzjz Nov 6, 2023
7fb94ef
[pre-commit.ci] pre-commit autoupdate (#2978)
pre-commit-ci[bot] Nov 7, 2023
ffbdcf8
respect user defined CUDAARCHS (#2979)
njzjz Nov 7, 2023
a40dcaa
lmp: refactor ixnode (#2971)
njzjz Nov 7, 2023
283e8fe
bump scikit-build-core to 0.6 (#2981)
njzjz Nov 8, 2023
43fc073
rename `deepmd_cli` to `deepmd_utils` (#2983)
njzjz Nov 9, 2023
4c888d8
docs: remove lammps.md (#2986)
njzjz Nov 13, 2023
55d678d
bump CUDA version to 12.2 for pre-built packages (#2960)
njzjz Nov 16, 2023
6e9a575
[pre-commit.ci] pre-commit autoupdate (#2990)
pre-commit-ci[bot] Nov 17, 2023
87d9ffb
add unit tests for LAMMPS fparam/aparam keywords (#2998)
njzjz Nov 20, 2023
a342e94
fix restarting from compressed training with type embedding (#2996)
njzjz Nov 20, 2023
af6eb43
Bump docker/build-push-action from 5.0.0 to 5.1.0 (#2999)
dependabot[bot] Nov 21, 2023
66259b1
docs: document horovod on Conda-Forge (#3001)
njzjz Nov 21, 2023
4d1c5fd
[pre-commit.ci] pre-commit autoupdate (#3000)
pre-commit-ci[bot] Nov 21, 2023
f321046
Add the missing initializations for extra embedding variables (#3005)
nahso Nov 24, 2023
c03416d
add cu11 prebuilt packages (#3002)
njzjz Nov 26, 2023
efb0a34
print system prob using scientific natation (#3008)
njzjz Nov 28, 2023
b4bb3a9
[pre-commit.ci] pre-commit autoupdate (#3011)
pre-commit-ci[bot] Nov 28, 2023
12baf12
Fix macro issue with multiple arguments (#3016)
njzjz Nov 29, 2023
ea45295
[pre-commit.ci] pre-commit autoupdate (#3032)
pre-commit-ci[bot] Dec 5, 2023
44aba83
bump scikit-build-core to 0.7 (#3038)
njzjz Dec 6, 2023
3c54949
breaking(lmp): do not apply scale factor to model deviation (#3036)
njzjz Dec 6, 2023
fe488a4
fix se_a_ebd_v2 when nloc != nall (#3037)
njzjz Dec 7, 2023
a210799
skip pushing when an action is triggered by dependeabot (#3035)
njzjz Dec 7, 2023
0547940
Bump docker/metadata-action from 5.0.0 to 5.3.0 (#3029)
dependabot[bot] Dec 7, 2023
ce25ff4
fix: invalid read and write when natom grows (#3031)
Cloudac7 Dec 11, 2023
a6f1333
build neighbor list with external Python program (#3046)
njzjz Dec 11, 2023
2204ec1
fix GPU mapping error for Horovod + finetune (#3048)
njzjz Dec 11, 2023
7648d7a
remove unused codes in se_a.py (#3049)
nahso Dec 12, 2023
406e8f7
Bump actions/deploy-pages from 2 to 3 (#3052)
dependabot[bot] Dec 12, 2023
8db5e6a
Bump actions/setup-python from 4 to 5 (#3051)
dependabot[bot] Dec 12, 2023
558051e
Bump actions/labeler from 4 to 5 (#3050)
dependabot[bot] Dec 12, 2023
33c2c8d
[pre-commit.ci] pre-commit autoupdate (#3055)
pre-commit-ci[bot] Dec 12, 2023
e5c9c59
docs: document external neighbor list (#3056)
njzjz Dec 12, 2023
ddfa781
print NaN loss when labeled data is not found (#3047)
njzjz Dec 12, 2023
06cd3c1
fix labeler.yml with actions/labeler v5 (#3059)
njzjz Dec 14, 2023
1a7e252
nvnmd: init-model feature and 256 neighbors (#3058)
LiuGroupHNU Dec 14, 2023
e048389
Fix possible memory leak in constructors (#3062)
njzjz Dec 15, 2023
18902be
fix memory leaks related to `char*` (#3063)
njzjz Dec 15, 2023
a266b48
add utils for DP native model format (#3064)
njzjz Dec 15, 2023
a0f30f4
bump LAMMPS to stable_2Aug2023_update2 (#3066)
njzjz Dec 18, 2023
a47cd06
Update the path to training and validation data dir in zinc_se_a_mask…
dingye18 Dec 21, 2023
2b52187
[pre-commit.ci] pre-commit autoupdate (#3073)
pre-commit-ci[bot] Dec 21, 2023
0032f5d
add CodeQL checks (#3075)
njzjz Dec 21, 2023
f79eac1
Bump actions/upload-artifact from 3 to 4 (#3070)
dependabot[bot] Dec 21, 2023
b4fe171
Fix catching by value (#3077)
njzjz Dec 21, 2023
39f13c0
docs: update documentation for pre-compiled C library (#3083)
njzjz Dec 25, 2023
412bc37
Bump actions/deploy-pages from 3 to 4 (#3085)
dependabot[bot] Dec 25, 2023
6819b8e
Bump docker/metadata-action from 5.3.0 to 5.4.0 (#3086)
dependabot[bot] Dec 25, 2023
54e5988
Bump actions/upload-pages-artifact from 2 to 3 (#3087)
dependabot[bot] Dec 26, 2023
2287111
[pre-commit.ci] pre-commit autoupdate (#3089)
pre-commit-ci[bot] Dec 28, 2023
985a886
lmp: Register styles when using CMake (#3097)
njzjz Jan 2, 2024
a905817
Add pairwise tabulation as an independent model (#3101)
njzjz Jan 3, 2024
674ea17
rm rcut from DeepmdDataSystem (#3106)
wanghan-iapcm Jan 5, 2024
61ee4f2
fix segfault in ~Region (#3108)
njzjz Jan 5, 2024
db22812
add activation_function and resnet arguments and NumPy implementation…
njzjz Jan 5, 2024
c4b7baa
NativeLayer: support None bias. (#3111)
wanghan-iapcm Jan 5, 2024
7b3c3c0
fix native layer concat bug. (#3112)
wanghan-iapcm Jan 5, 2024
f181a30
model format for the embedding net (#3113)
wanghan-iapcm Jan 8, 2024
d1c0074
support numerical precision and env_mat (#3114)
wanghan-iapcm Jan 9, 2024
25cdd19
Bump docker/metadata-action from 5.4.0 to 5.5.0 (#3115)
dependabot[bot] Jan 9, 2024
a971d92
[pre-commit.ci] pre-commit autoupdate (#3116)
pre-commit-ci[bot] Jan 9, 2024
438bc78
Add dp model format sea (#3123)
wanghan-iapcm Jan 10, 2024
dac64cf
input order of env_mat changed to be consistent with descriptor (#3125)
wanghan-iapcm Jan 10, 2024
398f037
doc string for dp model format descriptor se_e2_a (#3124)
wanghan-iapcm Jan 10, 2024
43f9639
add native Networks for mutiple Network classes (#3117)
njzjz Jan 10, 2024
ff58456
add definition for the output of fitting and model (#3128)
wanghan-iapcm Jan 12, 2024
04f07ef
lmp: fix evflag initialization (#3133)
njzjz Jan 12, 2024
828df66
cc: refactor DeepPotModelDevi, making it framework-independent (#3134)
njzjz Jan 12, 2024
d5590a4
fix: model check assumes __call__ as the forward method (#3136)
wanghan-iapcm Jan 12, 2024
308f97e
support fitting net (#3137)
wanghan-iapcm Jan 12, 2024
15117a0
refactorize NativeLayer, interface does not rely on the platform (#3138)
wanghan-iapcm Jan 13, 2024
ae90498
refactorize networks, now can be used cross platform (#3141)
wanghan-iapcm Jan 13, 2024
2096b80
move utility to `deepmd_utils` (without modifaction) (#3140)
njzjz Jan 13, 2024
539e4ab
add cross-platform AutoBatchSize (#3143)
njzjz Jan 14, 2024
89d9a88
move deepmd.entrypoints.{doc,gui} to deepmd_utils.entrypoints.{doc,gu…
njzjz Jan 14, 2024
e218f9c
cc: refactor DeepPot to support multiple backends (#3142)
njzjz Jan 15, 2024
ed76cff
resolve "Multiplication result converted to larger type" (#3149)
njzjz Jan 17, 2024
9be1ad2
[pre-commit.ci] pre-commit autoupdate (#3147)
pre-commit-ci[bot] Jan 17, 2024
850575a
cc: refactor DeepTensor for multiple-backend framework (#3151)
njzjz Jan 17, 2024
1efc7f8
cc: refactor DataModifier for multiple-backend framework (#3148)
njzjz Jan 17, 2024
5493921
fix: some issue of the output def (#3152)
wanghan-iapcm Jan 18, 2024
d915a91
cc: merge `DeepPotBase` and `DeepTensor` member functions (#3145)
njzjz Jan 18, 2024
8c1b467
docs: update Amber interface (#3074)
njzjz Jan 20, 2024
efe0962
move `OutOfMemoryError` from `deepmd` to `deepmd_utils` (#3153)
njzjz Jan 20, 2024
937f03f
cmake: fix setting `CMAKE_HIP_FLAGS` (#3155)
njzjz Jan 20, 2024
4d82430
docs: document CP2K interface (#3158)
njzjz Jan 20, 2024
1097062
resolve "Multiplication result converted to larger type" (#3159)
njzjz Jan 20, 2024
e5f9117
set dpgui entry point to `deepmd_utils` (#3161)
njzjz Jan 22, 2024
138ffef
Fix max nbor size related issues (#3157)
denghuilu Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 38 additions & 14 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
Python:
- deepmd/**/*
- deepmd_cli/**/*
- source/tests/**/*
Docs: doc/**/*
Examples: examples/**/*
Core: source/lib/**/*
CUDA: source/lib/src/gpu/**/*
ROCM: source/lib/src/gpu/**/*
OP: source/op/**/*
C++: source/api_cc/**/*
C: source/api_c/**/*
LAMMPS: source/lmp/**/*
Gromacs: source/gmx/**/*
i-Pi: source/ipi/**/*
- changed-files:
- any-glob-to-any-file:
- deepmd/**/*
- deepmd_utils/**/*
- source/tests/**/*
Docs:
- changed-files:
- any-glob-to-any-file: doc/**/*
Examples:
- changed-files:
- any-glob-to-any-file: examples/**/*
Core:
- changed-files:
- any-glob-to-any-file: source/lib/**/*
CUDA:
- changed-files:
- any-glob-to-any-file: source/lib/src/gpu/**/*
ROCM:
- changed-files:
- any-glob-to-any-file: source/lib/src/gpu/**/*
OP:
- changed-files:
- any-glob-to-any-file: source/op/**/*
C++:
- changed-files:
- any-glob-to-any-file: source/api_cc/**/*
C:
- changed-files:
- any-glob-to-any-file: source/api_c/**/*
LAMMPS:
- changed-files:
- any-glob-to-any-file: source/lmp/**/*
Gromacs:
- changed-files:
- any-glob-to-any-file: source/gmx/**/*
i-Pi:
- changed-files:
- any-glob-to-any-file: source/ipi/**/*
34 changes: 34 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
changelog:
exclude:
authors:
- app/pre-commit-ci
- app/dependabot
categories:
- title: Breaking Changes
labels:
- "breaking change"
- title: New Features
labels:
- "new feature"
- title: Enhancement
labels:
- enhancement
- title: Documentation
labels:
# automatically added
- Docs
# for docs outside the doc directory
- "other docs"
exclude:
labels:
- build
- bug
- title: Build and release
labels:
- build
- title: Bug fixings
labels:
- bug
- title: Other Changes
labels:
- "*"
4 changes: 2 additions & 2 deletions .github/workflows/build_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
dp_variant: clang
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
Expand All @@ -37,7 +37,7 @@ jobs:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb \
&& sudo dpkg -i cuda-keyring_1.0-1_all.deb \
&& sudo apt-get update \
&& sudo apt-get -y install cuda-cudart-dev-12-0 cuda-nvcc-12-0
&& sudo apt-get -y install cuda-cudart-dev-12-2 cuda-nvcc-12-2
if: matrix.variant == 'cuda120'
env:
DEBIAN_FRONTEND: noninteractive
Expand Down
57 changes: 40 additions & 17 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ jobs:
python: 311
platform_id: manylinux_x86_64
dp_variant: cuda
cuda_version: 12.2
- os: ubuntu-latest
python: 311
platform_id: manylinux_x86_64
dp_variant: cuda
cuda_version: 11.8
dp_pkg_name: deepmd-kit-cu11
# macos-x86-64
- os: macos-latest
python: 311
Expand Down Expand Up @@ -68,8 +75,11 @@ jobs:
CIBW_ARCHS: all
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
DP_VARIANT: ${{ matrix.dp_variant }}
- uses: actions/upload-artifact@v3
CUDA_VERSION: ${{ matrix.cuda_version }}
DP_PKG_NAME: ${{ matrix.dp_pkg_name }}
- uses: actions/upload-artifact@v4
with:
name: cibw-cp${{ matrix.python }}-${{ matrix.platform_id }}-cu${{ matrix.cuda_version }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
Expand All @@ -78,7 +88,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.11'
Expand All @@ -87,8 +97,9 @@ jobs:
- name: Build sdist
run: python -m build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz

upload_pypi:
Expand All @@ -99,22 +110,31 @@ jobs:
id-token: write
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: cibw-*
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1

build_docker:
# use the already built wheels to build docker
needs: [build_wheels]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- variant: ""
cuda_version: "12"
- variant: "_cu11"
cuda_version: "11"
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: source/install/docker/dist
merge-multiple: true
- name: Log in to the Container registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
with:
Expand All @@ -124,27 +144,30 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934
uses: docker/metadata-action@dbef88086f6cef02e264edb7dbf63250c17cef6c
with:
images: ghcr.io/deepmodeling/deepmd-kit

- name: Build and push Docker image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
with:
context: source/install/docker
push: ${{ github.repository_owner == 'deepmodeling' && github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
push: ${{ github.repository_owner == 'deepmodeling' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
tags: ${{ steps.meta.outputs.tags }}${{ matrix.variant }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VARIANT=${{ matrix.variant }}
CUDA_VERSION=${{ matrix.cuda_version }}

build_pypi_index:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist/packages
- uses: actions/setup-python@v4
merge-multiple: true
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.11'
Expand All @@ -153,7 +176,7 @@ jobs:
ls dist/packages > package_list.txt
dumb-pypi --output-dir dist --packages-url ../../packages --package-list package_list.txt --title "DeePMD-kit Developed Packages"
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy_pypi_index:
Expand All @@ -169,11 +192,11 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

pass:
name: Pass testing build wheels
needs: [build_wheels, build_sdist]
needs: [build_wheels, build_sdist, build_docker, build_pypi_index]
runs-on: ubuntu-latest
if: always()
steps:
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "CodeQL"

on:
push:
pull_request:
schedule:
- cron: '45 2 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'c-cpp', 'javascript-typescript', 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
if: matrix.language == 'c-cpp'
- name: "Setup dependencies"
if: matrix.language == 'c-cpp'
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb \
&& sudo dpkg -i cuda-keyring_1.0-1_all.deb \
&& sudo apt-get update \
&& sudo apt-get -y install cuda-cudart-dev-12-2 cuda-nvcc-12-2
python -m pip install tensorflow
env:
DEBIAN_FRONTEND: noninteractive
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: "Run, Build Application using script"
run: source/install/build_cc.sh
env:
DP_VARIANT: cuda
DOWNLOAD_TENSORFLOW: "FALSE"
if: matrix.language == 'c-cpp'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
27 changes: 21 additions & 6 deletions .github/workflows/package_c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,48 @@ jobs:
build_c:
name: Build C library
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- tensorflow_build_version: "2.15"
tensorflow_version: ""
filename: libdeepmd_c.tar.gz
- tensorflow_build_version: "2.14"
tensorflow_version: ">=2.5.0rc0,<2.15"
filename: libdeepmd_c_cu11.tar.gz
steps:
- uses: actions/checkout@v4
- name: Package C library
run: ./source/install/docker_package_c.sh
env:
TENSORFLOW_VERSION: ${{ matrix.tensorflow_version }}
TENSORFLOW_BUILD_VERSION: ${{ matrix.tensorflow_build_version }}
- run: cp libdeepmd_c.tar.gz ${{ matrix.filename }}
if: matrix.filename != 'libdeepmd_c.tar.gz'
# for download and debug
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libdeepmd_c
path: ./libdeepmd_c.tar.gz
name: libdeepmd_c-${{ strategy.job-index }}-${{ matrix.filename }}
path: ${{ matrix.filename }}
- name: Test C library
run: ./source/install/docker_test_package_c.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: libdeepmd_c.tar.gz
files: ${{ matrix.filename }}
test_c:
name: Test building from C library
needs: [build_c]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: libdeepmd_c
pattern: libdeepmd_c-*
merge-multiple: true
- run: tar -vxzf ./libdeepmd_c.tar.gz
- name: Test C library
run: ./source/install/build_from_c.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
Expand Down
Loading