技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-config【数据与研究】Inspect DeePMD-kit data systems and draft or repair training input configuration before training or testing.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to prepare, inspect, validate, or repair DeePMD-kit system data directories and training input JSON/YAML before launching training.
type.raw, type_map.raw, nopbc, set.*, coord.npy, box.npy, labels, or mixed-type data.training_data, validation_data, type_map, model, loss, learning_rate, or training sections.fparam, or aparam supervision.dp doc-train-input, DP-GUI-style JSON schema output, HDF5 paths, LMDB systems, or dpdata conversion before training.dp train, freezing checkpoints, or reading training logs, use ../training-models/SKILL.md.DeepPot inference, dp test, model deviation, descriptors, compression, conversion, or bias changes, use ../inference-model-ops/SKILL.md.../installation-backends/SKILL.md.type.raw is required and defines integer atom type indexes for the system; type_map.raw is optional for standard data but strongly recommended when model.type_map is set.nopbc marks a non-periodic system. Periodic systems need box.npy in each set.*; non-periodic systems should omit or ignore boxes consistently.coord, box, fparam, aparam, and numb_copy/prob-style frame weighting.type.raw, required type_map.raw, and per-frame real_atom_types.npy; type -1 is a virtual atom used for padding.Identify the system path type: NumPy directory, HDF5 path using file.hdf5#/group, LMDB file, or raw text waiting for conversion.
For NumPy directories, run the bundled inspector:
python sub-skills/data-config/scripts/inspect_deepmd_system.py /path/to/system --pretty
Read references/data-formats.md to interpret the summary and warnings.
Confirm that model.type_map matches the intended element order and is compatible with every system's type.raw or type_map.raw.
Confirm labels match the requested training target: do not add loss prefactors for missing labels.
For JSON/YAML input files, generate authoritative schema/reference output from the installed CLI when available:
dp doc-train-input --out-type json_schema > deepmd-train.schema.json
dp doc-train-input --out-type rst > deepmd-train-input.rst
references/data-formats.md for the file tree, shape expectations, label ownership, HDF5/LMDB/raw conversion notes, and mixed-type rules.scripts/inspect_deepmd_system.py for safe local checks that do not import deepmd or mutate data.coord.raw, box.raw, energy.raw, force.raw, and similar files are evidence/inputs for conversion, not a directly trainable format.references/training-config-reference.md for the top-level structure, single-task and multi-task data sections, batch-size styles, and label-to-loss mapping.model, learning_rate, loss, and training for single-task workflows.training.training_data.systems; use training.validation_data.systems only when validation data exists.training_data, validation_data, and optional stat_file under training.data_dict.<task> and pair them with matching model.model_dict and loss_dict keys.batch_size during debugging. Use auto, auto:N, max:N, or filter:N after confirming atom counts and memory expectations.sel: "auto" trigger neighbor statistics unless the training route explicitly skips or constrains it.energy.npy, force.npy, optional virial.npy, hessian.npy, atom_ener.npy, atom_pref.npy, fparam.npy, aparam.npy.hessian.npy and nonzero start_pref_h/limit_pref_h only for branches that own Hessian labels.dipole.npy/atomic_dipole.npy or polarizability.npy/atomic_polarizability.npy according to global vs atomic tensor loss.dos.npy and optionally atom_dos.npy; the output dimension must match the fitting-net DOS grid.band_prop.npy.spin.npy when the model has spin inputs and force_mag.npy when magnetic force metrics/loss are required.real_atom_types.npy in every set.*; virtual atoms use -1 and their atomic labels should be zero padded.type_map.raw versus model.type_map before changing model architecture.box.npy for every frame or add nopbc and remove PBC assumptions from downstream tasks.virial.npy; do not leave nonzero virial weights with absent labels.Natoms/virtual atom padding.dp doc-train-input from the installed package and compare field names, aliases, and backend-specific options.systems lists, set explicit neighbor selections, or debug with smaller converted systems.references/data-formats.md: self-contained data-system format, shape, label, mixed-type, HDF5, LMDB, and conversion guidance.references/training-config-reference.md: training input structure, data sections, batch options, schema generation, and label/loss alignment.references/troubleshooting.md: symptom-driven fixes for type maps, boxes, mixed-type, labels, invalid configs, sparse formulas, and neighbor statistics.scripts/inspect_deepmd_system.py: standalone NumPy-directory preflight inspector that prints JSON summary and warnings.