-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pt): optimize graph memory usage (#4006)
- Remove atomic virial graph. - Remove force graph during inference. After this, the lammps memory saves **50% for dpa1** (attn_layer=0) and **80% for dpa2** (layer=12). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new `inference` parameter to key model functions, enhancing flexibility for inference scenarios during model execution. - Added functionality to output a mapping array to a CSV file, improving data handling capabilities. - **Bug Fixes** - Improved the behavior of the model during inference versus training, potentially impacting downstream processing based on the output. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
3 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 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