-
Notifications
You must be signed in to change notification settings - Fork 629
feat(pt_expt): dpa1(attn_layer=0) graph-native NeighborGraph forward #5583
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
Merged
wanghan-iapcm
merged 69 commits into
deepmodeling:master
from
wanghan-iapcm:feat-dpmodel-graph-dpa1
Jun 29, 2026
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
1267b1f
feat(dpmodel): per-edge env_mat 4-vector (graph-native EnvMat)
3c75daf
feat(dpmodel): DescrptBlockSeAtten.call_graph (attn_layer=0, segment_…
836000d
feat(dpmodel): fail-fast on exclude_types in DescrptBlockSeAtten.call…
01beb47
feat(dpmodel): DescrptDPA1 dense call -> from-quartet->call_graph ada…
2ac1306
feat(dpmodel): model.call_lower_graph (energy/atom-energy via segment…
0a00978
test(dpmodel): remove PR-A import smoke test (no smoke tests in repo)
61668ef
refactor(dpmodel): single public DescrptDPA1.call_graph; private bloc…
c22bc13
feat(dpmodel): neighbor_graph_from_ijs + ASE carry-all builder (optio…
178c174
feat(dpmodel): opt-in carry-all graph energy forward via neighbor_gra…
09c8b33
refactor(dpmodel): explicit if/else for neighbor_graph_method routing…
cfebef9
feat(pt_expt): edge_energy_deriv (autograd grad(E,edge_vec) -> edge_f…
57202ae
feat(pt_expt): forward_common_lower_graph (force/virial via edge_ener…
6e97423
test(pt_expt): move test_edge_energy_deriv into model/ (mirrors deepm…
4e426af
test(pt_expt): dpa1(attn_layer=0) graph-path serialize round-trip + i…
ca77ac3
test(pt_expt): move dpa1 graph serialize test into descriptor/
48c0ea4
test(pt_expt): drop redundant dpa1 graph serialize test
33284bb
test: dpa1 graph attn_layer=0 make_fx + type_one_side + multi-frame c…
f85b0f6
fix(dpmodel): only route graph-ELIGIBLE configs through call_graph; f…
01f84a1
test(dpmodel): regression-lock graph-ineligible (strip/exclude/no-map…
5d88e3d
style: fix D209 docstring in dpa1 fallback regression test
912f054
feat: default eligible dpa1(attn_layer=0) to carry-all graph forward …
291c4b0
fix: guard descriptor-less atomic models in graph auto-resolve; pt_ex…
18e26c5
fix: gate carry-all default-flip to pt_expt only; dpmodel/jax keep de…
b59f5dd
feat(dpmodel): shape-static from_dense_quartet + static n_total -> de…
663cca6
refactor(dpmodel): explicit if/else for graph-vs-dense routing in Des…
37f9d4a
fix(dpmodel): address OutisLi #5581 review (spec refs, jax int-sum, A…
c2e0d96
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c9c8c21
test(pt_expt): parametrize periodic/do_av in test_dpa1_graph_lower (d…
f7e84fc
refactor(dpmodel): explicit if/else for compact vs shape-static in fr…
5a487c7
refactor(dpmodel): extract DescrptDPA1.call into thin dispatcher + _c…
7cfb2a8
feat: general output transform for the graph path (support all fittin…
58ef3fb
fix: address CodeRabbit review on #5583 (charge_spin/virtual-atom fal…
99c707a
fix(dpmodel): graph dense-bridge uses neighbor's actual extended type
53ec9a0
fix(tests): correct invalid permuted mapping; revert graph nei_type t…
48fe4b1
refactor(dpmodel): extract _finalize_atomic_ret from forward_common_a…
d136eea
feat(dpmodel): add DPAtomicModel.forward_atomic_graph
10af472
feat(dpmodel): add BaseAtomicModel.forward_common_atomic_graph
e182ed9
refactor(dpmodel): call_lower_graph reuses forward_common_atomic_graph
f597547
refactor(pt_expt): forward_common_lower_graph reuses forward_common_a…
15fa245
test(dpmodel): feature-flag graph-vs-dense parity matrix + protection…
52997c1
test(dpmodel): guard protection env-mat test against vacuous pass
5b0ec90
test(dpmodel): graph applies out-stat (out-bias) identically to dense
2c82daf
fix: gate model-level pair_exclude_types out of the graph path + tests
e04bdc2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 051f66b
docs(dpmodel): align graph atomic-wrapper docstrings with NumPy style
8d3a882
feat(dpmodel): frame_id_from_n_node node->frame map for flat-N graph …
deb524a
refactor(dpmodel): call_graph returns flat (N,...) node axis
117cfe5
feat(dpmodel): GeneralFitting.call_graph graph-native (flat-N) fittin…
5076c3a
refactor(dpmodel): forward_atomic_graph uses fitting.call_graph on th…
613756f
refactor(dpmodel): forward_common_atomic_graph + _finalize_atomic_ret…
1103264
refactor(dpmodel): flat-N graph output transform (segment_sum over fr…
1a91746
refactor(pt_expt): flat-N graph output transform + lower; reshape onl…
71fcb41
fix(dpmodel,pt_expt): graph I/O unravel skips _redu keys (nloc==1 N==…
1320ca1
test(dpmodel): ragged-native gate + rectangular free-view equivalence
32a9d4c
feat(dpmodel): graph-native pair-exclude edge mask; graph supports pa…
3d3d65c
style(dpmodel): hoist dataclasses import to module top (Task 9 review)
22ba509
style(dpmodel): drop blank line after forward_common_atomic_graph doc…
c247a74
fix(dpmodel): _finalize_atomic_ret zero-atom reshape (explicit traili…
e8e9885
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fd9c158
test+refactor(dpmodel): fparam-through-graph test; stronger pair-excl…
a95e397
refactor(dpmodel): rename DescrptBlockSeAtten._call_graph -> call_gra…
ff70bac
refactor(dpmodel,pt_expt): graph output transform takes NeighborGraph…
be0fc97
refactor(dpmodel): symmetric public graph lower (casting + model wrap…
6987b50
fix(pt_expt): dpa1 varying-natoms compile test compares dense-vs-dense
8d21609
docs(dpmodel,pt_expt): conform graph-lower docstrings to NumPy conven…
5271edb
fix(dpmodel,pt_expt): address iProzd review on #5583
83583a3
test(dpmodel,pt_expt): pin dpa1 graph lower invariance to charge_spin
52e6c8b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3789dbd
test(pt_expt): drop unused N in test_dpa1_graph_lower (CodeQL)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.