-
Notifications
You must be signed in to change notification settings - Fork 608
test(pt_expt): add .pt2 (AOTInductor) unit tests and bug fixes #5334
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 73 commits into
deepmodeling:master
from
wanghan-iapcm:feat-pt-expt-pt2-uts
Apr 3, 2026
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
584613b
Add pt2 format for C/C++ inference.
98fa3fa
fix(dpmodel): fix NoPbc for DPA1 pt2 export and unify test models
6f7c11f
feat(c++): add DPA2 C++ inference tests and fix mapping bug in all ba…
f92b408
feat(c++): add DPA3 .pt2 export and C/C++ inference tests
46908c0
fix(ci): restore pre-committed .pth files and handle missing custom ops
da5579d
temporarily clears the default device (None) before calling aoti_comp…
0091315
fix issue of c/c++ ut
46c56e3
check the size validity
1ec9b85
fix: zip 64-bit widths
fbb8a61
rm dead code
7530a6e
fix: trace on CPU during export to avoid CUDA stream assert in make_fx
0269ef7
fix: trace on CPU then move to target device for CUDA-compatible export
f120319
fix(ci): preload LSAN runtime for gen scripts in sanitizer builds
f60f423
fix(export): use move_to_device_pass for CPU→CUDA device relocation
f564b1a
fix: harden C++ parser, fix CI gen script failures
cd90c31
fix(ci): clear LD_PRELOAD before AOTInductor compilation
914f401
feat(c++): implement has_default_fparam for pt_expt backend
9f52a35
fix: address coderabbitai review comments on PR #5298
5b346f6
fix(ci): don't preload LSAN into gen script Python processes
4b1f897
fix: resolve github-advanced-security alerts
1aded45
fix(ci): preload LSAN with detect_leaks=0 for gen scripts
59a3bf7
fix(build): guard pt_expt C++ backend on AOTInductor header availability
460ccf7
fix: move _load_custom_ops after deepmd.pt import in gen scripts
dd0b96a
fix(ci): install custom op .so to deepmd/lib before gen scripts
dd75039
fix(ci): add install prefix to LD_LIBRARY_PATH for gen scripts
00327cc
fix(ci): use SHARED_LIB_DIR to find correct custom op install path
7e04ad5
fix(ci): guard gen scripts behind ENABLE_PYTORCH and clean up test_cc…
f25a800
fix: address CodeQL alerts — integer overflow and duplicate import
6434c9a
fix(pt): add fallback stub for tabulate_fusion_se_t_tebd custom op
6d21400
fix: widen all int operands in fold_back to ptrdiff_t
a2ec6f7
merge upstream/master into feat-pt-expt-c
f911ee0
refactor: extract common gen script helpers into gen_common.py
ce9f3dd
refactor: simplify custom op .so install in test_cc_local.sh
50507c6
test(pt_expt): add .pt2 (AOTInductor) unit tests for freeze and compress
5a53e20
fix: support default fparam in .pt2 inference and NoPBC negative coords
00fcba0
merge upstream/master into feat-pt-expt-c
35e3335
test(c++): add NoPBC atomic and multi-frame tests for DeepPotPTExpt
0cb00cb
Merge remote-tracking branch 'origin/feat-pt-expt-c' into feat-pt-exp…
9b52564
test(pt_expt): add .pt2 finetune tests
1f1d929
test(c++): add parser, ZIP, and metadata accessor tests for DeepPotPT…
1a45b88
merge upstream/master into feat-pt-expt-pt2-uts
80aa996
Merge remote-tracking branch 'upstream/master' into feat-pt-expt-pt2-uts
78d5bde
test(pt_expt): add .pt2 change-bias tests
b6e7db3
fix: address reviewer comments on PR #5334
196bcca
fix(c++): raise error when fparam required but not provided and no de…
808b9c7
fix: address remaining reviewer comments
62b29c3
feat(lmp): add .pt2 LAMMPS fparam tests, fix in-memory loading
6ec9860
fix(c++): update fparam ptexpt C++ test expected values
13aa131
fix(test): squeeze leading dim in change-bias user-defined bias check
c9a8fa9
Merge remote-tracking branch 'upstream/master' into feat-pt-expt-pt2-uts
9776c10
fix(test): add default_fparam to fparam_aparam_default.pth model_def_…
3c0d5dc
test(lmp): add .pt2 LAMMPS tests for se_e2_a model
1a0efa6
test(c++): add DPA1 .pt2 C++ inference test
5d61e4a
fix(test): tighten DPA1 C++ test epsilon (1e-7/1e-1 -> 1e-10/1e-4)
8b73aa5
fix(test): tighten all DPA C++ test epsilon (1e-7/1e-1 -> 1e-10/1e-4)
c17d741
fix(test): update fparam .pth and C API expected values for pre-commi…
e159771
fix(test): update all fparam C++ expected values for pre-committed model
8e9f87b
fix(test): remove duplicate DefaultFParamPtExpt class causing SEGFAULT
06dc839
Merge remote-tracking branch 'upstream/master' into feat-pt-expt-pt2-uts
38c9bde
feat(test): add LAMMPS .pt2 model_devi tests with default_fparam
e4b043c
fix(test): negate virial in LAMMPS model_devi .pt2 test
27f5763
fix(test): convert relative param to real units in LAMMPS model_devi …
fdff8a6
fix(test): update model_devi C++ expected values for new fitting neurons
2f39abd
feat(test): add LAMMPS .pt2 DPA3 tests (PBC and NoPbc)
443a140
fix(test): add atom_modify map yes for DPA3 LAMMPS tests
4bc6426
fix(pt): guard against double-loading libdeepmd_op_pt.so
1cffe46
fix(pt): use loaded_libraries + catch RuntimeError instead of hardcod…
e86d867
fix(pt): only suppress RuntimeError for duplicate op registration
8cf970d
fix(pt): detect C++ linkage via op existence, not RuntimeError catch
760d505
fix(test): compute model_devi expected values in subprocess
1ca098f
Merge remote-tracking branch 'upstream/master' into feat-pt-expt-pt2-uts
450c79e
Merge remote-tracking branch 'upstream/master' into feat-pt-expt-pt2-uts
716165d
fix(pt_expt): load metadata.json in DeepEval for .pte and .pt2 models
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
Some comments aren't visible on the classic Files Changed page.
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
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.