-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support DPSpin for AtomicModel (#3301)
This PR support DPSpin for AtomicModel: - [x] `Spin` base class to handle spin-related information. - [x] `SpinModel` implementation in pt, which can generally take any backbone model, with input and output process for output like `energy`, `dipole` and etc. - [x] `SpinEnergyModel` implementation inherited from `SpinModel` for `energy` calclulation. - [x] Input improvement, now DPSpin model can take real `spin` as input with `vitual_scale`, which can support much more flexible input. (Also with dataset support for `spin` input.) - [x] `EnergySpinLoss` class to process `energy`, `force_real`, `force_mag`, `virial`. - [x] Add `protection` for environment calculations. TODO: - [x] Support `forward_lower` for `SpinModel`. - [x] Add `data_stat` with general `exclude_types` for descriptors and fittings. - [x] Add examples and UTs. - [x] numpy model - [x] Support multi-task training for `SpinModel` models. Will fix in next PRs: - tf consistency test (?) --------- Signed-off-by: Duo <50307526+iProzd@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2d48d1f
commit 09bd522
Showing
106 changed files
with
3,959 additions
and
373 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
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
Oops, something went wrong.