Skip to content
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

feat: add NumPy DeepPot #3332

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Feb 24, 2024

While a DPModel cannot be directly trained, it can be converted from another model:

dp convert-backend frozen_model.pth frozen_model.dp
dp test -m frozen_model.dp -s ../data/

The energy result is consistent with TF and PT. Force and virial are NaN, as expected.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Copy link

codecov bot commented Feb 24, 2024

Codecov Report

Attention: Patch coverage is 69.01408% with 44 lines in your changes are missing coverage. Please review.

Project coverage is 75.39%. Comparing base (649fdca) to head (29737bc).

Files Patch % Lines
deepmd/dpmodel/infer/deep_eval.py 67.91% 43 Missing ⚠️
deepmd/dpmodel/utils/batch_size.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3332      +/-   ##
==========================================
- Coverage   75.41%   75.39%   -0.03%     
==========================================
  Files         406      408       +2     
  Lines       34106    34247     +141     
  Branches     1604     1604              
==========================================
+ Hits        25720    25819      +99     
- Misses       7525     7567      +42     
  Partials      861      861              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Feb 24, 2024
Merged via the queue into deepmodeling:devel with commit 15df69b Feb 24, 2024
48 checks passed
@njzjz njzjz mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants