docs(model): document charge-spin config, so3_readout, distinguish_types; fix population toctree
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với khối lược đồ DPA-3 và tài liệu spin liên quan trong deepmd/utils/argcheck.py và doc/model/train-energy-spin.md; kiểm tra cách dataloader xử lý charge_spin và xác minh các chú thích backend trước khi đưa ra nhận định. Cập nhật doc/model/train-energy-spin.md, dpa3.md, dpa4.md, train-fitting-property.md và index.rst, sau đó chạy bốn bước kiểm tra grep trong issue để xác nhận rằng từng tùy chọn và trang population đã được ghi trong tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Parent issue: #5917 (checklist items 9, 11, 15, 17)
Scope
Four independent fixes to the doc/model/ pages:
- Charge-spin conditioning training config (
e3fda4537C++ runtime,f39a08128dpa3 decoupled from fparam,6984e4c63paddle): the training-side optionsadd_chg_spin_ebdanddefault_chg_spin(seedeepmd/utils/argcheck.py:694-703and:2097-2108— verify which descriptor each block belongs to, DPA-4/SeZM vs DPA-3) are undocumented. (dim_chg_spinis an internal serialized dimension exposed viaget_dim_chg_spin(), not a config key.) The LAMMPS inference keywordcharge_spinis already documented atdoc/third-party/lammps-command.md:66— cross-link it. so3_readoutDPA-4/SeZM option (4b6506db4):"none"/"glu"/"mlp"read-out FFN mode for the final l=0 descriptor (deepmd/utils/argcheck.py:626-634); no prose indoc/model/dpa4.md.distinguish_typesin property fitting (7cd0d191b): element type-wise bias; schema entry atdeepmd/utils/argcheck.py:2827-2829,2872-2877(defaultTrue); no prose indoc/model/train-fitting-property.md.- Orphaned page:
doc/model/train-fitting-population.mdexists but is missing from thedoc/model/index.rsttoctree.
Implementation plan
1. Charge-spin training config — doc/model/train-energy-spin.md (+ pointer in doc/model/dpa3.md)
Read the DPA-3 schema block (argcheck.py ~line 2090–2150) and the spin training docs first.
- In
doc/model/train-energy-spin.md, document:model/descriptor/add_chg_spin_ebd: embed per-frame charge and spin conditions into the descriptor type embedding;- the
charge_spininput data (shape[nframes, 2],[charge, spin]) and how to provide it in training data (verify data key handling/charge_spin real-data support in the dataloader code); default_chg_spin: fallback[charge, spin]used whencharge_spindata is absent (including at inference time);
- In
doc/model/dpa3.md, add a short subsection pointing to the above (and note backend support per the argcheckdoc_only_pt_supportedannotations — verify whether the DPA3 variant is also supported by Paddle after6984e4c63before writing backend claims). - Cross-reference the LAMMPS
charge_spinkeyword (doc/third-party/lammps-command.md) for inference.
2. so3_readout — doc/model/dpa4.md
Add prose describing the option with the three modes, following the argcheck docstring semantics: none applies a degree-0 scalar FFN to the l=0 slice only (l>0 coefficients discarded); glu/mlp apply a full equivariant FFN on the SO(3) Wigner-D grid so l>0 geometry is folded into l=0 before the scalar read-out; the read-out degree equals the node degree of the last interaction block and the Wigner-D frame order follows kmax. Note backend support annotation (doc_only_pt_supported — verify against current argcheck).
3. distinguish_types — doc/model/train-fitting-property.md
Add a short paragraph: when enabled (default True), per-element-type output statistics/biases are computed for the property fitting net (element type-wise bias), improving accuracy for heteroatom systems; set to False to share one bias across types (verify behavior from deepmd/utils/argcheck.py and the property fitting implementation before writing).
4. Toctree — doc/model/index.rst
Add train-fitting-population to the toctree, placed with the other train-fitting-* entries (after train-fitting-property).
Constraints
- Confirm which descriptor schema block (
argcheck.py:694vs:2097) corresponds to which descriptor page before documenting; keep backend-support statements consistent with thedoc_only_pt_supported/ paddle annotations in the code. - Match surrounding prose style; use
{ref}links for schema cross-references like neighboring pages do.
Verification
grep -n "chg_spin" doc/model/train-energy-spin.md doc/model/dpa3.mdshows new prose.grep -n "so3_readout" doc/model/dpa4.mdshows the option.grep -n "distinguish_types" doc/model/train-fitting-property.mdshows the option.grep -n "train-fitting-population" doc/model/index.rstshows the toctree entry.
Parent issue: #5917
Coding agent: opencode
opencode version: 1.18.9
Model: ustc/k3
Reasoning effort: max
- Ngôn ngữ chính
- Python
- Star
- 2.1k
- Fork
- 663
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của deepmodeling/deepmd-kit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
deepmodeling/deepmd-kit#6086 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Fine-tune descriptor mismatch warning should ignore seedCó thể đã có người làm @SiyuanChenToDo đã nhận 23 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
deepmodeling/deepmd-kit#6038 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Docs enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
deepmodeling/deepmd-kit#5766 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
branch: master lang: py todo comment type: todo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
deepmodeling/deepmd-kit#5480 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
branch: master lang: toml todo comment type: todo
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
deepmodeling/deepmd-kit#5462 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của deepmodeling/deepmd-kit
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
gke-labs/kube-agents#5671 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs(auth): Method B step 4 should tell users to tick "Use this client for an AI-powered agent"Đang mởdocumentation next-release v0.9.6
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
khuisman/mcp-gee-sweet#1446 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
In-box secret files written before their chmod: lc-creds, stacks tee, and the workspace tokenĐang mởmodel:sonnet runtime:claude security size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
FootprintAI/Containarium#3671 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HolidayBase: reassigning `language` does not re-initialize translations or re-populate holidaysCó thể đã có người làm @shikhabhadoria đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vacanza/holidays#4116 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI exec
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày