DP-GEN

Concurrent active learning of training sets for Deep Potential.

Tool 052 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

DP-GEN, open-source tool for machine-learned interatomic potentials: Concurrent active learning of training sets for Deep Potential.

What DP-GEN is

DP-GEN, the Deep Potential Generator, automates the construction of a training set for machine-learned potentials by concurrent learning. Several Deep Potential models are trained from the same data with different random seeds; one of them drives molecular dynamics over the chosen temperatures and pressures; the spread of predictions between the models, called the model deviation, marks the configurations the models disagree on. Those configurations are labelled with a first-principles code, added to the data and the cycle repeats.

The user writes two JSON files: one describing the initial structures, the exploration conditions and the DFT settings, and one describing the machines and queue systems where training, molecular dynamics and labelling will run. Supported labelling codes include VASP, Quantum ESPRESSO, CP2K, ABACUS, SIESTA and Gaussian; job dispatch to Slurm, PBS or LSF goes through DPDispatcher. Each iteration leaves training data in DeePMD-kit format and the trained models. Companion commands prepare initial bulk and surface data, prune large data sets and test a finished potential on equation of state, elastic constants, defects and surfaces.

Setting up remote dispatch and well-converged DFT inputs takes time, and the DFT licences are the user's responsibility.

Features

What it is for

Verified facts

FamilyMachine-learned interatomic potentials
Language or basisData generation
Repositoryhttps://github.com/deepmodeling/dpgen (GitHub)
LicenceLGPL-3.0 (SPDX identifier as declared in the repository)
Main language on GitHubPython
Last commit2026-09-17
Latest releasev0.14.0 (2026-09-17)
Stars405 on 2026-11-28
Open issues and pull requests18 on 2026-11-28
Repository created2019-06-13
Verified2026-11-28 by MolForge's checking script, against the host's API

Where DP-GEN fits

Learn quantum-accurate potentials that run at near-classical cost, from quantum-chemistry data.

DP-GEN appears in this chain of the directory: A learned interatomic potential.

Our comments on DP-GEN

MolForge does not run DP-GEN in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain DP-GEN and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.

Test status

Not tested by MolForge. To check DP-GEN yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.

Questions people ask

Does DP-GEN work without a cluster?
It can run everything on a single workstation if the DFT code and LAMMPS are installed locally, and that is a sensible way to learn the workflow on a small system. In practice the labelling step needs many DFT calculations per iteration, so most users point the machine configuration at a Slurm, PBS or LSF cluster.
Which DFT codes can DP-GEN use for labelling?
VASP, Quantum ESPRESSO, CP2K, ABACUS, SIESTA and Gaussian are documented, with code-specific settings in the parameter file. The user supplies converged input templates; DP-GEN only inserts the structures and collects energies, forces and virials. Any licence the code requires is separate from DP-GEN.
How does DP-GEN decide which structures to label?
It computes the model deviation, the spread of force predictions across the ensemble of models, for every frame sampled during exploration. Frames with deviation below a lower bound are judged already learned, frames above an upper bound are judged unphysical, and those in between are sent to DFT. The user sets both bounds.
Is DP-GEN only for DeePMD-kit?
Yes in practice. The training step, the model-deviation measure and the data format are those of DeePMD-kit, and the exploration runs LAMMPS with the Deep Potential pair style. A successor project, DP-GEN2, rebuilds the same loop on a workflow engine but still targets Deep Potential models.
Is DP-GEN open source?
Yes. The repository declares the LGPL-3.0 licence (SPDX identifier read from the host on 2026-11-28). Read the licence text in the repository before redistributing or embedding it.
Where is the DP-GEN source code?
At https://github.com/deepmodeling/dpgen (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is DP-GEN still maintained?
The last commit was pushed on 2026-09-17 and the latest tagged release is v0.14.0 from 2026-09-17; the repository had 18 open issues and pull requests on 2026-11-28.
Does MolForge use DP-GEN?
No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); DP-GEN is listed because of its place in machine-learned interatomic potentials, not because we run it.

Guides that explain the methods

Other tools in machine-learned interatomic potentials