--- name: deepmd-inference description: > Run DeePMD-kit inference to predict energies, forces, and stresses using a trained DP model. Also covers model evaluation and testing. compatibility: > Requires deepmd-kit installed. A frozen model (.pb) file is needed. catalog-hidden: true --- # DeePMD Inference ## When to Use - User wants to predict energy/forces for a structure using a trained DP model - User wants to evaluate model accuracy against DFT reference data - User wants to use a DP model as an ASE calculator for optimization or NEB ## Prerequisites 1. A frozen DeePMD model file (`.pb` or `.savedmodel`) 2. deepmd-kit installed (`dp --version`) 3. Structure to predict on, or test data in dpdata format ## Workflow Steps ### 1. Model Testing (against reference data) ``` catgo_workflow_engine(action="add_task", params={ "workflow_id": "wf_xxx", "task_type": "shell", "name": "dp_test", "command": "dp test -m frozen_model.pb -s ./data/test -n 100 -d test_results 2>&1 | tee test.log", "system_name": "dp_eval" }) ``` This outputs RMSE for energy, forces, and virial. ### 2. Single Structure Prediction (Python) ``` catgo_workflow_engine(action="add_task", params={ "workflow_id": "wf_xxx", "task_type": "shell", "name": "dp_predict", "command": "python predict.py", "input_files": { "predict.py": "