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(pt): add dpa3 alpha descriptor #4476

Open
wants to merge 3 commits into
base: dpa3-alpha
Choose a base branch
from

Conversation

iProzd
Copy link
Collaborator

@iProzd iProzd commented Dec 18, 2024

This PR is an early experimental preview version of DPA3. Significant changes may occur in subsequent updates. Please use with caution.


# deserialize repflow
statistic_repflows = repflow_variable.pop("@variables")
env_mat = repflow_variable.pop("env_mat")

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable env_mat is not used.
# cast the input to internal precsion
extended_coord = extended_coord.to(dtype=self.prec)
nframes, nloc, nnei = nlist.shape
nall = extended_coord.view(nframes, -1).shape[1] // 3

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable nall is not used.
# h2: nb x nloc x nnei x 3
# msk: nb x nloc x nnei
nb, nloc, nnei, _ = edge_ebd.shape
e_dim = edge_ebd.shape[-1]

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable e_dim is not used.
def list_update_res_residual(
self, update_list: list[torch.Tensor], update_name: str = "node"
) -> torch.Tensor:
nitem = len(update_list)

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable nitem is not used.
[False], # use_econf_tebd
):
dtype = PRECISION_DICT[prec]
rtol, atol = get_tols(prec)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable rtol is not used.
[False], # use_econf_tebd
):
dtype = PRECISION_DICT[prec]
rtol, atol = get_tols(prec)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable atol is not used.

dd0.repflows.mean = torch.tensor(davg, dtype=dtype, device=env.DEVICE)
dd0.repflows.stddev = torch.tensor(dstd, dtype=dtype, device=env.DEVICE)
model = torch.jit.script(dd0)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable model is not used.
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 91.86747% with 54 lines in your changes missing coverage. Please review.

Project coverage is 84.46%. Comparing base (e9ed267) to head (527cb85).
Report is 3 commits behind head on dpa3-alpha.

Files with missing lines Patch % Lines
deepmd/pt/model/descriptor/repflows.py 85.99% 29 Missing ⚠️
deepmd/pt/model/descriptor/dpa3.py 85.29% 25 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           dpa3-alpha    #4476      +/-   ##
==============================================
+ Coverage       83.75%   84.46%   +0.71%     
==============================================
  Files             667      674       +7     
  Lines           61514    62794    +1280     
  Branches         3486     3486              
==============================================
+ Hits            51523    53042    +1519     
+ Misses           8866     8625     -241     
- Partials         1125     1127       +2     

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

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.

1 participant