docs(loss): document loss_func/f_use_norm and three-value huber_delta
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/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, pytorch, tensorflow
- Lĩnh vực
- documentation, machine-learning
Hướng nghiên cứu
Bắt đầu với phần loss trong doc/model/train-energy.md, sau đó đọc deepmd/utils/argcheck.py và các triển khai loss trong deepmd/dpmodel/loss/ener.py và deepmd/pt/loss/ener.py. Ghi lại loss_func, f_use_norm và huber_delta dạng vô hướng hoặc ba giá trị cùng với các giá trị mặc định đã được xác minh và các hạn chế của backend, thêm các ví dụ JSON được yêu cầu và xác nhận rằng grep tìm thấy cả ba khóa.
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 13–14)
Scope
Two energy-loss options exist only as schema entries:
- Force L2-norm / MAE loss (
3f52fa95a,feat(dp, pt): add force l2 norm loss & mae loss, PR #5294). NOTE: the shipped config keys areloss_func("mse"/"mae") andf_use_norm, notforce_l2_norm— the original checklist item title used a pre-merge name. Schema:deepmd/utils/argcheck.py:4319-4331(doc_loss_func,doc_f_use_norm), arguments at:4468-4479. Semantics:loss_funcselects MSE vs MAE for energy/force/virial/atom losses;f_use_normuses the L2 norm of force vectors in the loss and is only valid whenloss_func="mae"oruse_huber=True(validation enforced). - Three-value Huber delta (
14c349b42):huber_deltaaccepts a single float or a list of three values (schema atargcheck.py:4481-4487,[float, list[float]], default0.01). Verify from the loss implementation which three losses the three values correspond to (likely energy/force/virial — confirm indeepmd/dpmodel/loss/ener.pyanddeepmd/pt/loss/ener.py).
Neither appears in doc/model/train-energy.md; grep huber doc/ returns nothing.
Implementation plan
doc/model/train-energy.md
Read the loss section of the page plus argcheck.py entries and the DP/PT ener loss implementations first. Extend the loss prose (near the use_huber / pref documentation):
loss_func:"mse"(verify default) vs"mae", which loss terms it applies to, backend support (DP & PyTorch per the commit title — verify TF support is absent before claiming);f_use_norm: what it changes for force loss (norm of the force vector instead of per-component), and the validity constraint (loss_func="mae"oruse_huber=True);use_huber+huber_delta: Huber loss threshold; document scalar vs three-value forms and their meaning, with default0.01(verify per-backend support from code);- A minimal JSON example showing
loss_func: "mae"withf_use_norm: true, and one with a three-valuehuber_delta.
Constraints
- Use the shipped key names (
loss_func,f_use_norm); the checklist'sforce_l2_normwas a working title. - Verify defaults and backend support in
argcheck.pyand the loss classes; state backend restrictions explicitly. - Keep math/style consistent with the surrounding loss documentation.
Verification
grep -n "loss_func\|f_use_norm\|huber_delta" doc/model/train-energy.mdshows the new prose.
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