Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Deepmd Inference

ASecurity

Run DeePMD-kit inference to predict energies, forces, and stresses using a trained DP model. Also covers model evaluation and testing.

199 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentpythongoshellbashtesting

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add Hello-QM/catgo-LRG --skill deepmd-inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deepmd Inference?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Deepmd Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hello-qm-deepmd-inference/badge)](https://www.skillsdirectory.com/skills/hello-qm-deepmd-inference)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
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": "<script content>"
  },
  "system_name": "dp_predict"
})
```

## Python Script — Single Prediction

```python
from deepmd.infer import DeepPot
from ase.io import read
import numpy as np

dp = DeepPot("frozen_model.pb")
atoms = read("structure.vasp")

coord = atoms.get_positions().reshape(1, -1)
cell = atoms.get_cell().array.reshape(1, -1)
atype = [dp.get_type_map().index(s) for s in atoms.get_chemical_symbols()]

energy, force, virial = dp.eval(coord, cell, atype)

print(f"Energy: {energy[0][0]:.6f} eV")
print(f"Max force: {np.max(np.abs(force)):.6f} eV/Ang")
```

## Python Script — ASE Calculator

```python
from deepmd.calculator import DP
from ase.io import read, write
from ase.optimize import BFGS

atoms = read("structure.vasp")
atoms.calc = DP(model="frozen_model.pb")

# Single point
energy = atoms.get_potential_energy()
forces = atoms.get_forces()
print(f"Energy: {energy:.6f} eV")

# Optimization
opt = BFGS(atoms, trajectory="opt.traj")
opt.run(fmax=0.01)
write("optimized.vasp", atoms)
```

## dp test Output Format

```
Energy RMSE        : 1.234e-03 eV/atom
Force  RMSE        : 2.345e-02 eV/Ang
Virial RMSE        : 3.456e-01 eV/cell
```

Acceptable thresholds:
- Energy: < 5 meV/atom
- Force: < 100 meV/Ang (< 50 meV/Ang for high accuracy)
- Virial: < 1 kbar

## Model Compression (for faster inference)

```bash
dp compress -i frozen_model.pb -o compressed_model.pb
```

Compressed models are 3-10x faster with minimal accuracy loss. Always compress before production MD.

## Parameter Guidance

| Parameter | Notes |
|---|---|
| `-m` | Path to frozen model (.pb) |
| `-s` | Path to test data directory (dpdata format) |
| `-n` | Number of test frames (default: all) |
| `-d` | Output directory for detailed results |
| `--atomic` | Output per-atom energy decomposition |

## Common Pitfalls

1. **type_map mismatch** — the element order in inference must match training. Check with `dp show-type-map frozen_model.pb`.
2. **Unfrozen model** — `dp test` and ASE calculator need a frozen `.pb` file, not the training checkpoint directory.
3. **Extrapolation** — DP models are unreliable outside the training data distribution. Check the model deviation.
4. **Model deviation** — for production use, train 4 models with different seeds and compute `max_devi_f` to detect extrapolation.
5. **Memory for large systems** — DP inference on 10K+ atoms can exceed GPU memory. Use `--batch-size` or CPU inference.

Attribution

Hello-QMHello-QM
View sourceMore from Hello-QM →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →