dpgen-simplify

准备、解释、验证并运行用于简化 DP-GEN 数据集的工作流。用于生成或修改 param.json 与 machine.json、执行命令 dpgen simplify param.json machine.json、组织重复的简化实验以及检查简化输出以减少 DeepMD 数据集中的重复或冗余条目。

仓库最近推送
GitHub Stars
166
Forks
30
Issues / PRs
13

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "dpgen-simplify":https://skillpi.com/zh/skills/deepskill-998ea15056af5a237c592ac48a2662866838b234b15a9784b239090d69c027ce。安装前核对上游来源和版本:https://github.com/jinzhezenggroup/computational-chemistry-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

准备、解释、验证并运行用于简化 DP-GEN 数据集的工作流。用于生成或修改 param.json 与 machine.json、执行命令 dpgen simplify param.json machine.json、组织重复的简化实验以及检查简化输出以减少 DeepMD 数据集中的重复或冗余条目。

0 下载

介绍来源: third_party · jinzhezenggroup · 0.2.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: dpgen-simplify
description: Prepare, explain, validate, and run DP-GEN simplify workflows for reducing repeated or redundant DeepMD datasets. Use when the user wants to generate or modify `param.json` and `machine.json`, run `dpgen simplify param.json machine.json`, organize repeated simplify experiments, or inspect simplify outputs.
compatibility: Requires a runnable environment with Python and an activated DP-GEN runtime where `dpgen` is available in PATH for the outer simplify command. Real execution also requires DeePMD-kit and any backend-specific software required by the selected `fp_style`. For scheduler execution, each stage environment must be explicitly activated in `resources.source_list`.
license: LGPL-3.0-or-later
metadata:
  author: hyb1109
  version: 0.2.0
  repository: https://github.com/deepmodeling/dpgen

DP-GEN Simplify

Use this skill when the user wants to prepare, explain, validate, or execute the dpgen simplify workflow.

This skill is for dataset simplification workflows where the user already has candidate data in DeepMD-compatible format and wants to reduce repeated or redundant structures through iterative selection.

Core Rule (Critical)

DP-GEN simplify always uses two parameter classes and therefore two JSON files:

  • Workflow parameters -> param.json
  • Execution / machine parameters -> machine.json

Run exactly:

dpgen simplify param.json machine.json

Environment boundary rule:

  • Outer layer: run dpgen simplify param.json machine.json in an activated environment where dpgen -h works.
  • Inner layer: for scheduler stages, explicitly activate runtime in resources.source_list on the server side.

Agent responsibilities

When using this skill, the agent should:

  1. confirm that the task is a simplify workflow
  2. check whether existing configs or templates are already available
  3. collect only the missing dataset, training, FP, and machine inputs
  4. generate or patch param.json
  5. generate or patch machine.json
  6. explain important simplify parameters in plain language when asked
  7. validate the workflow before execution
  8. provide the exact command for running simplify
  9. if requested, help structure repeated experiments
  10. after execution, summarize outputs and next inspection targets

Working policy

1. Ask only for missing inputs

Do not ask the user for everything if part of the configuration is already available.

If the user already provides:

  • a partial param.json
  • a partial machine.json
  • a known training template
  • a known cluster template

then patch those files instead of rebuilding everything from scratch.

2. Preserve the user's scientific choices

Do not silently change:

  • descriptor family
  • fitting net structure
  • fp backend
  • trust thresholds
  • type_map ordering

If a value looks scientifically questionable, explain the concern instead of silently replacing it.

3. Keep local and scheduler execution explicit

If the user wants local execution, produce local-friendly commands.

If the user wants scheduler execution, produce scheduler-friendly commands and keep queue, partition, and resource requests explicit.

Do not invent scheduler module names or executable paths.

4. Do not invent environment activation commands

If the user already has a working activation command such as:

  • conda activate ...
  • module load ...
  • source ...

reuse it exactly.

If execution is requested and the activation method is unknown, ask the user for the precise activation command.

Do not guess conda environment names, module names, or site-specific paths.

4.1 Outer launcher policy

Use an activated DP-GEN environment and verify with:

dpgen -h

Do not start simplify from a shell where dpgen is unavailable.

4.2 Outer vs inner runtime boundaries (critical)

Treat simplify execution as two separate environment layers:

  1. Outer layer: the shell that launches dpgen simplify param.json machine.json (must have dpgen in PATH)
  2. Inner layer: stage tasks dispatched by DP-GEN (train / model_devi / fp) on server/runtime side

Even if the outer layer is correct, inner stage tasks still need explicit runtime setup in machine.json. Do not assume the outer shell environment will be inherited by dispatched stage jobs. For scheduler-style execution, resources.source_list must explicitly activate the required runtime environment.

5. Prefer reproducible output layout

When generating a simplify workflow, keep files organized and predictable.

Recommended structure:

project/
├── param.json
├── machine.json
├── run.sh
├── logs/
└── summary/

For repeated experiments:

project/
├── base/
├── exp_01/
├── exp_02/
├── exp_03/
└── summary/

Minimum required inputs

Collect the following information before generating files.

Dataset information

  • pick_data
  • sys_configs
  • init_data_prefix
  • init_data_sys
  • sys_batch_size
  • dataset format
  • type_map
  • mass_map if needed
  • labeled

Simplify controls

  • init_pick_number
  • iter_pick_number
  • model_devi_f_trust_lo
  • model_devi_f_trust_hi
  • model_devi_e_trust_lo / model_devi_e_trust_hi if energy trust is used
  • numb_models if not already specified

Training setup

  • train_backend if required by environment (for example pytorch)
  • default_training_param
    • descriptor settings
    • fitting network settings
    • learning rate settings
    • loss settings
    • training step settings

FP setup

  • fp_style
  • If data is already labeled (energy/force/virial available) and no re-labeling is requested, set fp_style to none.
  • if fp_style != "none", collect matching FP runtime settings such as:
    • fp_task_max
    • fp_task_min
    • fp_params
    • pseudopotential or backend file paths if required

Execution setup

For each stage train, model_devi, and fp, collect or preserve:

  • command
  • machine.batch_type
  • machine.context_type
  • machine.local_root
  • machine.remote_root
  • resources.batch_type (use the same backend as machine.batch_type)
  • resources.number_node
  • resources.cpu_per_node
  • resources.gpu_per_node
  • resources.group_size
  • resources.source_list (required for scheduler jobs; use it to activate environment explicitly)
  • any explicit queue / partition / custom scheduler flags if the user already uses them

Choose a runtime profile first, then fill the matching template:

  • server-local Slurm: assets/machine.template.server-local-slurm.json
  • local machine -> remote Slurm via SSH: assets/machine.template.ssh-remote-slurm.json
  • pure local shell testing: assets/machine.template.local-shell.json

How to build param.json

Construct param.json around these logical blocks:

  1. element and mass definitions
  2. data source and batch settings
  3. model ensemble count
  4. default DeePMD training parameters
  5. FP backend settings
  6. simplify pick settings
  7. trust thresholds

Key fields usually include:

  • type_map
  • mass_map
  • pick_data
  • init_data_prefix
  • init_data_sys
  • sys_batch_size
  • numb_models
  • default_training_param
  • fp_style
  • fp_task_max
  • fp_task_min
  • fp_params
  • backend support fields such as fp_pp_path and fp_pp_files only when the selected FP schema requires them
  • init_pick_number
  • iter_pick_number
  • model_devi_f_trust_lo
  • model_devi_f_trust_hi

If the user is doing grid experiments, keep a base template and derive variants from it.

Official reference example (QM7-style, adapted with path placeholders):

  • assets/param.example.qm7.from-official-docs.json

How to build machine.json

Construct machine.json with separate stage blocks for:

  • train
  • model_devi
  • fp

For each stage, keep the following explicit:

  • command
  • machine or context configuration
  • resources, including the same batch_type used by the machine block
  • queue or partition if needed
  • cpu and gpu counts
  • custom scheduler flags
  • environment activation commands

Do not merge all stages into one vague machine block.

Validation before run

Before execution, validate the workflow in this order:

  1. confirm outer-layer dpgen is available:
dpgen -h
  1. validate JSON syntax:
python -m json.tool param.json
python -m json.tool machine.json
  1. verify required dataset paths exist
  2. verify stage commands match the selected software stack
  3. if fp_style is none, do not require FP-specific backend settings
  4. only then run:
dpgen simplify param.json machine.json

Output contract

Always provide:

  1. final absolute paths to param.json and machine.json
  2. the exact simplify command to run (dpgen simplify param.json machine.json)
  3. a short pre-run checklist
  4. any unresolved required fields
  5. if execution was performed, the main output locations and next files to inspect

Guardrails

  • Never merge workflow and machine parameters into one file.
  • Never run dpgen simplify before both JSON files are present.
  • Never hardcode personal cluster, account, queue, or path settings as universal defaults.
  • Never silently change the user's scientific choices.
  • Keep type_map ordering consistent with dataset typing.
  • If required inputs are missing, stop and ask instead of guessing.
  • If fp_style is none, skip FP-specific prompts and keep FP-specific settings disabled or unset.
  • The machine schema still requires an fp stage and a string command. Use the no-op command true when fp_style is none.
  • If data is already labeled and the user does not request new labels, enforce fp_style = "none" and do not require active FP runtime fields.
  • Do not assume outer-shell activation is inherited by stage jobs; for scheduler execution, require explicit source_list per stage.
  • If the user already has working templates, patch them rather than overwriting them blindly.

References and bundled files

Use these bundled files:

  • assets/param.template.json
  • assets/param.example.qm7.from-official-docs.json
  • assets/machine.template.json
  • assets/machine.template.server-local-slurm.json
  • assets/machine.template.ssh-remote-slurm.json
  • assets/machine.template.local-shell.json
  • references/param-fields.md
  • references/machine-fields.md
  • references/workflow-notes.md

External references:

当前收录版本

0.2.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • DP-GEN是DeepModeling社区核心工具,simplify工作流直接解决科学计算用户数据集优化的明确痛点
  • 功能完整覆盖参数生成、验证、执行全流程,显著提升用户工作效率
触发精准88/100

亮点

  • 触发词精准完整,明确指出了使用场景和命令格式
  • description清晰定义了技能边界和适用条件
结构规范95/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter完整,结构良好,文档组织规范
执行可靠90/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常
  • 验证流程完善,不可逆操作有确认机制
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • docs.deepmodeling.com
  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。