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

refactor: split Model and AtomicModel #3438

Merged
merged 9 commits into from
Mar 11, 2024

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Mar 9, 2024

Model is not inherited from AtomicModel anymore.

Model is not inherited from AtomicModel anymore.

Signed-off-by: Jinzhe Zeng <[email protected]>
Copy link

codecov bot commented Mar 9, 2024

Codecov Report

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

Project coverage is 77.29%. Comparing base (a9bcf41) to head (965f471).
Report is 7 commits behind head on devel.

Files Patch % Lines
deepmd/dpmodel/model/make_model.py 78.04% 9 Missing ⚠️
deepmd/pt/model/atomic_model/base_atomic_model.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3438      +/-   ##
==========================================
+ Coverage   77.01%   77.29%   +0.27%     
==========================================
  Files         427      427              
  Lines       36790    36915     +125     
  Branches     1621     1621              
==========================================
+ Hits        28335    28533     +198     
+ Misses       7587     7514      -73     
  Partials      868      868              

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

deepmd/dpmodel/model/make_model.py Outdated Show resolved Hide resolved
deepmd/pt/model/model/make_model.py Outdated Show resolved Hide resolved
deepmd/pt/model/model/dp_zbl_model.py Outdated Show resolved Hide resolved
@njzjz njzjz requested a review from wanghan-iapcm March 10, 2024 08:52
@njzjz njzjz changed the title split Model and AtomicModel refactor: split Model and AtomicModel Mar 11, 2024
@njzjz njzjz enabled auto-merge March 11, 2024 19:36
@njzjz njzjz added this pull request to the merge queue Mar 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 11, 2024
@njzjz njzjz added this pull request to the merge queue Mar 11, 2024
Merged via the queue into deepmodeling:devel with commit a88a213 Mar 11, 2024
49 checks passed
@njzjz njzjz deleted the split-model-atomic-model branch March 11, 2024 21:06
njzjz added a commit to njzjz/deepmd-kit that referenced this pull request Mar 11, 2024
After deepmodeling#3438, `model_def_script` is no more saved in AtomicModel.

Signed-off-by: Jinzhe Zeng <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Mar 12, 2024
After #3438, `model_def_script` is no more saved in AtomicModel.

---------

Signed-off-by: Jinzhe Zeng <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Mar 13, 2024
This PR refactors the serialization/ deserialization in
LinearEnergyAtomicModel using the plugin mechanism introduced in #3438 .

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@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.

4 participants