-
Notifications
You must be signed in to change notification settings - Fork 528
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
Add a script to detect model version #2318
Conversation
…mode at LAMMPS version >= 20210831.
for more information, see https://pre-commit.ci
Codecov ReportBase: 74.80% // Head: 74.78% // Decreases project coverage by
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## devel #2318 +/- ##
==========================================
- Coverage 74.80% 74.78% -0.02%
==========================================
Files 223 223
Lines 22200 22252 +52
Branches 1627 1627
==========================================
+ Hits 16606 16641 +35
- Misses 4539 4556 +17
Partials 1055 1055
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test can be added here
deepmd-kit/source/tests/test_deeppot_a.py
Lines 726 to 727 in 94c24c1
convert_pbtxt_to_pb(str(tests_path / "infer" / "sea_012.pbtxt"), old_model) | |
run_dp(f"dp convert-from 0.12 -i {old_model} -o {new_model}") |
…onversion function.
for more information, see https://pre-commit.ci
…automatic model version detection
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
please fix the pre-commit error |
for more information, see https://pre-commit.ci
Yes. Now I have fixed it. |
* print MAE for `dp test` (deepmodeling#2310) Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Fix bug deepmodeling#2311 when using FP32 in se_atten (deepmodeling#2312) Fix bug deepmodeling#2311 when using FP32 in se_atten * support multiple frames DeepPot in C/hpp API (deepmodeling#2309) * Add DeepPot C API v2 to support multiple frames. Also, preserve the arguments for fparam and aparam for future use (planned in deepmodeling#2236). V1 is kept for API and ABI compatibility. * Support multiple frames for DeepPot hpp API. The API compatibility is kept. Add tests for new situation. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> * Implementation of se_a_mask op (deepmodeling#2313) * Implement se_a_mask op. Training and inference (c++ interface) are tested. Unit test files are required. * Fix bug in atom pref setting for forces. * Add the unit test for descrpt se_a_mask * Remove the unit test for dp mask model * Update dp mask system path for unit test --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * support exclude_types for se_atten (deepmodeling#2315) Fix deepmodeling#2232. Also, clean old useless codes for `exclude_types`. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> * fix restarting from the original model (deepmodeling#2317) deepmodeling#2253 supports restarting from the compressed model but breaks the original model. This PR fixes the error by detecting the model type first. ``` FAILED_PRECONDITION: Attempting to use uninitialized value ``` --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> * package dp_ipi in the PyPI wheels (deepmodeling#2320) Fix deepmodeling#2282. In addition, change the return code of `dp_ipi` (without any arguments) from 1 to 0. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * build Docker images for each push (deepmodeling#2324) and push the image to the GitHub container. Also, provide the pypi CUDA support for pypi LAMMPS. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> * Fix typo in install docs (deepmodeling#2325) Signed-off-by: Chun Cai <amoycaic@gmail.com> * Add a script to detect model version (deepmodeling#2318) This PR adds a script in deepmd/utils to detect the version of a Deep Potential model. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Signed-off-by: Chun Cai <amoycaic@gmail.com> Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Duo <50307526+iProzd@users.noreply.github.com> Co-authored-by: Chun Cai <amoycaic@gmail.com> Co-authored-by: Yifan Li李一帆 <yifanl0716@gmail.com>
This PR adds a script in deepmd/utils to detect the version of a Deep Potential model.