executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
training-modelsChoose DeePMD-kit model families/backends and draft, launch, restart, fine-tune, monitor, and freeze training workflows safely.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user wants to choose a DeePMD-kit model family, draft a training input, launch or restart dp train, monitor training progress, fine-tune from a checkpoint or pretrained model, run multi-task/pretrained workflows, or freeze a trained checkpoint.
Keep this route model-aware, backend-aware, and validation-oriented. Training may be expensive; prefer bounded smoke runs, command drafting, and config review before launching long jobs.
type_map construction, missing labels, or validation split decisions, route to data-config.DeepPot use, conversion, compression, or bias changes after training, route to inference-model-ops.dp freeze immediately after training.tf), PyTorch (pt), JAX (jax), or Paddle (pd). Default to explicit backend flags in commands, even when TensorFlow would be default.data-config first.Read these bundled references as needed:
Use the bundled helper to draft commands without running training:
python scripts/draft_training_command.py --backend pt --input input.json --skip-neighbor-stat
dp --tf train input.json; checkpoints normally freeze to .pb.dp --pt train input.json; checkpoints commonly end in .pt and frozen models in .pth.dp --jax train input.json; confirm the selected model supports JAX before drafting.dp --pd train input.json; frozen output is a prefix that produces Paddle model files.pytorch-exportable / pt-expt is a parser alias for exportable PyTorch workflows; use only when the user specifically asks for that backend path.se_e2_a for a robust DeepPot-SE baseline, compatibility, small-to-medium systems, or quick validation.se_e2_r when radial-only features are sufficient and a lighter descriptor is desired.se_e3 or se_e3_tebd when three-body/angular information is important.se_atten / DPA-1 for attention-based pretrainable models and larger chemical diversity.hybrid when combining multiple descriptors with different cutoffs is central to the experiment.linear or pairtab when combining frozen models or empirical pair potentials with DeePMD components.dp --<backend> -h and inspect the available subcommands if needed.input.json / YAML with a complete model, learning_rate, loss or loss_dict, and training section.type_map matches the data and, for fine-tuning, is compatible with the pretrained model.neighbor-stat / automatic sel unless sel is fixed and the user explicitly wants --skip-neighbor-stat.numb_steps, disp_freq, and save_freq; do not use tutorial water data as production evidence.lcurve.out and console summaries for decreasing validation RMSE, finite losses, expected labels, and checkpoint creation.inference-model-ops.--restart CHECKPOINT_PREFIX to continue the same run, preserving optimizer/training state where supported.--init-model CHECKPOINT_PREFIX to initialize model weights for a new run without treating it as the same training trajectory.--finetune MODEL to adapt a frozen or checkpoint pretrained model and update the energy bias according to target data.--use-pretrain-script when the pretrained PyTorch/Paddle model embeds a compatible model definition and the new input should inherit descriptor/fitting settings.--model-branch BRANCH for multi-task pretrained fine-tuning; use RANDOM only when a randomly initialized fitting head is intended.shared_dict, model_dict, loss_dict, and training.data_dict instead of single-task sections.training.model_prob or epoch-based task controls.dp --pt freeze -o model_branch.pth --head BRANCH or the --model-branch alias.dp pretrained download -h. Downloading may touch the network; ask before downloading unless the user confirmed cached/offline availability.type_map, and branch/head constraints before drafting the train command.horovodrun -np N dp --tf train input.json.torchrun --nproc_per_node=N --no-python dp --pt train input.json.python -m paddle.distributed.launch with an explicit GPU list and environment tuning.lcurve.out exists and receives rows at disp_freq.save_freq with the expected backend-specific suffix/prefix.Before handing off, report the selected model family/backend, input file status, exact command drafted or run, neighbor-stat decision, checkpoint/freeze target, monitoring outcome, and any route-outs needed for data validation or post-freeze inference.