You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deepks/config/docs.py
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,13 @@ def _fmt_default(value):
202
202
"default": "optional",
203
203
"description": "Optimizer and scheduler settings. The current recipes use optimizer.lr, optimizer.weight_decay, scheduler.decay_steps, scheduler.decay_rate, and scheduler.stop_lr.",
204
204
},
205
+
{
206
+
"name": "ml.train.trainable_patterns",
207
+
"type": "list[str] | str | null",
208
+
"tasks": "train, iterate",
209
+
"default": "null",
210
+
"description": "Optional shell-style model-parameter name patterns for layer-wise continuation, for example densenet.layers.3.* for a final-head-only stage.",
"| `ridge` | `float >= 0` | `1e-8` | Tikhonov ridge used only when solving the direct target `g*=(M+ridge I)^-1 b`. It does not alter quadratic `M,b`. |",
383
+
"| `fallback` | `lstsq or pinv` | `lstsq` | Singular-solve fallback used only for the direct target. |",
384
+
"| `eigen_filter` | `dict or null` | `null` | Optional direct-target filter. Specify exactly one of `{rcond: value}` or `{min_eig: value}`. It does not alter quadratic `M,b`. |",
385
+
"",
386
+
"All ABACUS DeePKS energy, force, stress, Hamiltonian, and projected-Hamiltonian",
387
+
"labels are required to be in Hartree. Legacy Ry real-space Hamiltonian data",
388
+
"must be regenerated or converted once before use.",
389
+
"",
390
+
"To reproduce direct-property reductions, include them in the coefficients.",
391
+
"For a two-atom Si frame with direct force weight 1, stress weight 1, HR weight",
392
+
"0.005, six force/stress components, HR range 9, and `nlocal=26`, use:",
393
+
"",
394
+
"```yaml",
395
+
"gradient_label:",
396
+
" force: 0.16666666666666666 # 1/6",
397
+
" stress: 0.16666666666666666 # 1/6",
398
+
" hr: 2.136752136752137e-5 # 0.005/(9*26)",
399
+
"```",
400
+
"",
401
+
"The `g_label` objective accepts exactly two loss types:",
402
+
"",
403
+
"```yaml",
404
+
"- name: g_label",
405
+
" weight: 1.0",
406
+
" loss:",
407
+
" type: direct # MSE(g, g*)",
408
+
"```",
409
+
"",
410
+
"or",
411
+
"",
412
+
"```yaml",
413
+
"- name: g_label",
414
+
" weight: 1.0",
415
+
" loss:",
416
+
" type: quadratic # mean_frame(g^T M g - 2 g^T b)",
417
+
"```",
418
+
"",
419
+
"The quadratic form is inverse-free and is the recommended property-equivalent",
420
+
"path. Stress-coordinate augmentation is detected from the saved label width;",
0 commit comments