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: Refactor dipole fitting pytorch #3281

Merged
merged 19 commits into from
Feb 18, 2024
Merged

Conversation

anyangml
Copy link
Collaborator

@anyangml anyangml commented Feb 16, 2024

This PR is to provide implementation of equivariant diplole fitting in pytorch and backend-independent numpy.

@anyangml anyangml self-assigned this Feb 16, 2024
deepmd/pt/model/task/fitting.py Dismissed Show dismissed Hide dismissed
deepmd/pt/model/task/dipole.py Dismissed Show dismissed Hide dismissed
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (9053caf) 75.06% compared to head (b5f2582) 75.14%.
Report is 1 commits behind head on devel.

Files Patch % Lines
deepmd/dpmodel/fitting/general_fitting.py 94.11% 7 Missing ⚠️
deepmd/dpmodel/fitting/dipole_fitting.py 86.84% 5 Missing ⚠️
deepmd/dpmodel/fitting/invar_fitting.py 85.71% 2 Missing ⚠️
deepmd/pt/model/task/fitting.py 93.10% 2 Missing ⚠️
deepmd/pt/model/task/dipole.py 96.55% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3281      +/-   ##
==========================================
+ Coverage   75.06%   75.14%   +0.08%     
==========================================
  Files         387      389       +2     
  Lines       33640    33714      +74     
  Branches     1604     1600       -4     
==========================================
+ Hits        25251    25336      +85     
+ Misses       7528     7517      -11     
  Partials      861      861              

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

@anyangml anyangml marked this pull request as draft February 16, 2024 15:12
deepmd/dpmodel/fitting/general_fitting.py Dismissed Show dismissed Hide dismissed
@anyangml anyangml marked this pull request as ready for review February 17, 2024 11:41
@anyangml anyangml added the Test CUDA Trigger test CUDA workflow label Feb 18, 2024
@github-actions github-actions bot removed the Test CUDA Trigger test CUDA workflow label Feb 18, 2024
deepmd/dpmodel/fitting/dipole_fitting.py Outdated Show resolved Hide resolved
deepmd/dpmodel/fitting/general_fitting.py Outdated Show resolved Hide resolved
source/tests/pt/model/test_dipole_fitting.py Show resolved Hide resolved
deepmd/dpmodel/fitting/dipole_fitting.py Outdated Show resolved Hide resolved
deepmd/dpmodel/fitting/dipole_fitting.py Outdated Show resolved Hide resolved
deepmd/dpmodel/fitting/dipole_fitting.py Fixed Show resolved Hide resolved
deepmd/pt/model/task/fitting.py Outdated Show resolved Hide resolved
deepmd/dpmodel/fitting/dipole_fitting.py Outdated Show resolved Hide resolved
deepmd/pt/model/task/dipole.py Show resolved Hide resolved
deepmd/pt/model/task/dipole.py Outdated Show resolved Hide resolved
deepmd/pt/model/task/dipole.py Outdated Show resolved Hide resolved
deepmd/pt/model/task/dipole.py Show resolved Hide resolved
source/tests/pt/model/test_dipole_fitting.py Outdated Show resolved Hide resolved
source/tests/pt/model/test_dipole_fitting.py Dismissed Show dismissed Hide dismissed
@anyangml
Copy link
Collaborator Author

@njzjz can we merge this PR before #3286, and then merge the PR for polar.

@anyangml anyangml added this pull request to the merge queue Feb 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 18, 2024
@wanghan-iapcm wanghan-iapcm added the Test CUDA Trigger test CUDA workflow label Feb 18, 2024
@github-actions github-actions bot removed the Test CUDA Trigger test CUDA workflow label Feb 18, 2024
deepmd/pt/model/task/dipole.py Show resolved Hide resolved
@njzjz njzjz added this pull request to the merge queue Feb 18, 2024
Merged via the queue into deepmodeling:devel with commit 6451cdb Feb 18, 2024
51 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.

4 participants