Commit 25bb821
feat(jax/array-api): DPA-2 (#4294)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced new classes for enhanced descriptor functionality,
including `DescrptDPA2`, `DescrptBlockRepformers`, and
`DescrptBlockSeTTebd`.
- Added serialization and deserialization methods for better state
management of descriptor objects.
- **Improvements**
- Enhanced compatibility with various array backends through the
integration of `array_api_compat`.
- Refactored existing methods to utilize new array API functions for
improved performance.
- Updated documentation to reflect JAX as a supported backend alongside
PyTorch.
- **Bug Fixes**
- Updated handling of attributes in several classes to ensure correct
deserialization and type safety.
- **Tests**
- Enhanced testing capabilities for JAX and Array API Strict backend
integration, including conditional imports and new evaluation methods.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jinzhe Zeng <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Han Wang <[email protected]>1 parent 6bc730f commit 25bb821
File tree
9 files changed
+616
-118
lines changed- deepmd
- dpmodel
- descriptor
- utils
- jax/descriptor
- doc/model
- source/tests
- array_api_strict/descriptor
- consistent/descriptor
9 files changed
+616
-118
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
787 | 794 | | |
788 | 795 | | |
789 | 796 | | |
| 797 | + | |
790 | 798 | | |
791 | 799 | | |
792 | | - | |
| 800 | + | |
793 | 801 | | |
794 | 802 | | |
795 | 803 | | |
| |||
798 | 806 | | |
799 | 807 | | |
800 | 808 | | |
801 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
802 | 813 | | |
803 | 814 | | |
804 | 815 | | |
| |||
823 | 834 | | |
824 | 835 | | |
825 | 836 | | |
826 | | - | |
| 837 | + | |
827 | 838 | | |
828 | 839 | | |
829 | 840 | | |
830 | 841 | | |
831 | 842 | | |
832 | 843 | | |
833 | 844 | | |
834 | | - | |
835 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
836 | 849 | | |
837 | 850 | | |
838 | 851 | | |
| |||
846 | 859 | | |
847 | 860 | | |
848 | 861 | | |
849 | | - | |
| 862 | + | |
850 | 863 | | |
851 | 864 | | |
852 | 865 | | |
| |||
883 | 896 | | |
884 | 897 | | |
885 | 898 | | |
886 | | - | |
887 | | - | |
| 899 | + | |
| 900 | + | |
888 | 901 | | |
889 | 902 | | |
890 | 903 | | |
| |||
896 | 909 | | |
897 | 910 | | |
898 | 911 | | |
899 | | - | |
900 | | - | |
| 912 | + | |
| 913 | + | |
901 | 914 | | |
902 | 915 | | |
903 | 916 | | |
| |||
913 | 926 | | |
914 | 927 | | |
915 | 928 | | |
916 | | - | |
917 | | - | |
| 929 | + | |
| 930 | + | |
918 | 931 | | |
919 | 932 | | |
920 | 933 | | |
| |||
0 commit comments