deepmd-train
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "deepmd-train" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0419fe1b6ea2e9b9501dd91143bac41a9f3e7135ab24b0e178c9f05ecc5a1803. Verify the upstream source and version against https://github.com/jinzhezenggroup/computational-chemistry-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Train DeePMD-kit models using a progressive disclosure workflow. For users who want to train DeePMD-kit potentials: prepare the input.json file, choose a model family (e.g., se_e2_a/DeepPot-SE or DPA3), run the `dp train` command, monitor learning curves, freeze checkpoints, and test trained models. Begin from model selection and read the chosen model's reference docs in the models/ directory only when model-specific configuration is required.
Introduction source: third_party · jinzhezenggroup · 1.1 Reference
SkillPi interpretation
- Tasks
- Train DeePMD-kit models with progressive disclosure. Use when the user wants to train a DeePMD-kit potential, prepare an input.json, choose between model families such as se_e2_a/DeepPot-SE and DPA3, run `dp train`, monitor learning curves, freeze checkpoints, or test trained models. Start with model selection and read only the selected model reference under `models/` when model-specific configuration is needed.
- Testing
- Not tested
Browse files
Frontmatter
name: deepmd-train
description: Train DeePMD-kit models with progressive disclosure. Use when the user wants to train a DeePMD-kit potential, prepare an input.json, choose between model families such as se_e2_a/DeepPot-SE and DPA3, run `dp train`, monitor learning curves, freeze checkpoints, or test trained models. Start with model selection and read only the selected model reference under `models/` when model-specific configuration is needed.
compatibility: Requires deepmd-kit installed. The selected backend and model may require PyTorch, TensorFlow, JAX, Paddle, GPU support, or custom OP libraries.
license: LGPL-3.0-or-later
metadata:
author: iProzd
version: '1.1'
repository: https://github.com/deepmodeling/deepmd-kitDeePMD-kit Training
Use this skill to guide DeePMD-kit model training without loading every model-specific recipe up front. The workflow is intentionally progressive:
- Understand the user's data, target accuracy, compute budget, and deployment backend.
- Choose an appropriate model family.
- Read only the reference file for the selected model under
models/. - Generate or edit
input.json, run training, monitor, freeze, and test.
Progressive disclosure protocol
Do not start by reading every model document. First classify the request:
- If the user already named a model, read only that model reference.
- If the user asks for a recommendation, collect the decision inputs below, choose a model, then read only the selected reference.
- If model-specific parameters are not needed yet, stay in this top-level workflow.
Available model references:
| Model reference | Read when |
|---|---|
models/se-e2-a.md |
The user wants a classical DeepPot-SE baseline, broad compatibility, or a smaller/established production model. |
models/dpa3.md |
The user wants a high-accuracy DPA3/LAM workflow, large/diverse datasets, dynamic neighbor selection, or pretrained DPA3-style training. |
Model selection
Ask only for missing information that changes the choice. Prefer reasonable defaults when the answer is obvious from context.
Key inputs:
- Data format and size: deepmd/npy, deepmd/hdf5, mixed type, number of systems/frames/elements.
- Target: quick baseline, production accuracy, large atomic model, transfer/fine-tuning, or deployment in MD.
- Compute: CPU/GPU, available memory, single-node vs. distributed training.
- Backend/deployment: PyTorch/TensorFlow/JAX/Paddle training; LAMMPS, Python inference, or other downstream use.
- Labels: energy/force only or also virial/stress.
- System diversity: single chemistry/phase vs. diverse multi-domain datasets.
Recommended defaults:
- Choose se_e2_a for a robust baseline, small to medium systems, compatibility-focused workflows, or when compute is limited.
- Choose DPA3 for high accuracy on diverse datasets, LAM-style training, or when the user explicitly asks for DPA3, DPA-3, LiGS, dynamic neighbor selection, or pretrained DPA3 variants.
Common workflow
1. Confirm environment
dp --version
For PyTorch training, use dp --pt ...; for TensorFlow, use dp ...; for other backends, confirm the installed backend first.
2. Confirm training data
Training data should be in DeePMD format, typically deepmd/npy or deepmd/hdf5. If the user has raw electronic-structure outputs, convert them first with dpdata before writing the training input.
Minimum information needed to build input.json:
type_map- training system paths
- validation system paths
- whether virial labels are present and should be trained
- target number of steps or accuracy/time budget
- model choice
3. Read the selected model reference
After selecting a model, read the corresponding file under models/ and apply its model-specific configuration, hyperparameters, and caveats.
4. Train
dp --pt train input.json
Use the backend-specific command if not using PyTorch.
Restart from a checkpoint when needed:
dp --pt train input.json --restart model.ckpt.pt
5. Monitor
Training progress is usually written to lcurve.out. Check for:
- decreasing validation RMSE
- NaN or exploding losses
- train/validation divergence
- learning-rate schedule behaving as expected
6. Freeze and test
dp --pt freeze -o model.pth
dp --pt test -m model.pth -s /path/to/test_system -n 30
Adjust the backend flags and output extension for non-PyTorch models.
Agent checklist
- [ ] Model was selected before reading model-specific details.
- [ ] Only the selected model reference was loaded.
- [ ] Training/validation data paths exist or are clearly marked as placeholders.
- [ ]
type_mapmatches the data and model/pretrained checkpoint. - [ ] Virial loss is enabled only when virial labels are available and desired.
- [ ] Backend command matches the selected model and installed DeePMD-kit environment.
- [ ] The generated
input.jsonis valid JSON. - [ ] Training was monitored via
lcurve.outor equivalent logs. - [ ] Final model was frozen and tested when requested.
References
Current listing version
1.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 DeePMD-kit 模型训练的全流程指导,从数据准备到模型部署形成完整闭环
- 采用渐进式披露设计,避免一次性加载所有模型文档,提升交互效率
- 面向科学计算专业领域,解决势函数训练这一明确的高价值需求
Highlights
- 触发场景描述完整,涵盖训练、配置、监控、冻结、测试等关键环节
- 触发词具体明确,边界清晰,不易与其他 Skill 产生歧义
Areas to improve
-
缺少显式 When to Use 章节 Reported severity: Minor
文档结构良好,但缺少显式命名的 When to Use 章节,尽管 description 已涵盖相关内容
Recommendation: 可考虑添加显式的 When to Use 章节以提升规范性
Highlights
- 结构层次清晰,包含渐进式披露协议、模型选择、工作流步骤和检查清单
- frontmatter 完整,包含兼容性、许可证和元数据信息
- 提供端到端示例和具体命令,便于用户直接执行
Highlights
- 工具命令准确(dp train/freeze/test),参数使用规范
- 覆盖训练过程中的主要异常场景(NaN、发散、学习率问题)
- 提供检查清单确保关键配置正确,降低执行风险
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- docs.deepmodeling.com
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.