Commit b95f21e
feat(dpa4): multiple updates for dpa4 (#5734)
Since each commits relies on each other to pass the parity tests, so
this is a fusion pr.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added `readout_layers` and native per-atom spin support across
SeZM/DPA4 descriptors, including new `spin` runtime input and spin-aware
scalar readout.
* Introduced a public `SpinEmbedding` component for the native spin
scheme.
* Added `"fndc"` tensor-layout support and expanded optional fused
Triton acceleration (including flash-attention-style aggregation) for
supported configurations.
* **Bug Fixes**
* Improved descriptor behavior for zero-block/empty-edge cases;
strengthened full-validation profile handling and relaxed spin label
requirements when allowed.
* Reduced evaluation logging verbosity and enabled AMP autocast during
inference when opted in.
* **Compatibility**
* Model deserialization now recognizes `sezm_native_spin`.
* Removed an older experimental CuTe rotation path.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 33593b1 commit b95f21e
101 files changed
Lines changed: 17023 additions & 5274 deletions
File tree
- deepmd
- dpmodel
- descriptor
- dpa4_nn
- train
- jax/train
- kernels
- cute
- sezm
- triton
- sezm
- pt_expt
- descriptor
- dpa4_nn
- triton
- infer
- utils
- pt
- entrypoints
- infer
- loss
- model
- atomic_model
- descriptor
- sezm_nn
- cute
- triton
- model
- train
- utils
- tf/model
- utils
- doc/model
- examples
- spin/dpa4
- lmp
- water/dpa4
- source
- api_cc
- include
- src
- lmp
- op/pt
- tests
- common
- dpmodel
- pt_expt/utils
- pt
- model
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
129 | | - | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
| |||
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
222 | 231 | | |
223 | 232 | | |
224 | 233 | | |
| |||
0 commit comments