CHGNet

A pre-trained universal potential that includes magnetic moments as a proxy for charge states.

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

CHGNet, open-source tool for machine-learned interatomic potentials: A pre-trained universal potential that includes magnetic moments as a proxy for charge states.

What CHGNet is

CHGNet, the Crystal Hamiltonian Graph Neural Network, is a pre-trained universal interatomic potential for inorganic materials. It is trained on the energies, forces, stresses and magnetic moments of Materials Project relaxation trajectories, and it predicts the magnetic moment on each atom alongside the energy. Because the moment tracks the oxidation state in many transition-metal compounds, this gives the model a handle on charge distribution that a plain energy model lacks.

The package loads the pre-trained weights in one call and accepts pymatgen structures. It returns energy, forces, stress and site magnetic moments; wrapper classes perform geometry relaxation and run molecular dynamics through ASE in the common ensembles. A trainer class fine-tunes the model on the user's own DFT data, which is the recommended path when a specific chemistry matters more than breadth.

The training data follows Materials Project GGA and GGA+U conventions, so predicted energies inherit those conventions and should be compared with DFT run the same way.

Features

What it is for

Verified facts

FamilyMachine-learned interatomic potentials
Language or basisUniversal potential
Repositoryhttps://github.com/CederGroupHub/chgnet (GitHub)
LicenceNo licence detected by GitHub; read the repository before reuse
Main language on GitHubPython
Last commit2026-11-28
Latest releasev0.4.2 (2025-09-22)
Stars414 on 2026-11-28
Open issues and pull requests7 on 2026-11-28
Repository created2023-02-24
Verified2026-11-28 by MolForge's checking script, against the host's API

Where CHGNet fits

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

Our comments on CHGNet

MolForge does not run CHGNet 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 CHGNet 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 CHGNet 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

What does CHGNet predict besides energy and forces?
Stress on the cell and a magnetic moment on every atom. The moments are trained against DFT values and act as a stand-in for oxidation state, which is why the model is described as charge-informed. Applications include following electron transfer during cation migration in electrode materials.
Can CHGNet be fine-tuned on my own data?
Yes. The package includes a trainer that takes structures with energies, forces, and optionally stresses and magnetic moments, and continues training from the pre-trained weights. Fine-tuning on a modest set of system-specific DFT calculations is the documented route when the general model is not close enough for a given chemistry.
Is CHGNet suitable for molecules?
Its training data consists of periodic inorganic crystals from the Materials Project. Organic molecules, solvents and biomolecules are outside that distribution, and models trained on molecular data sets are the appropriate choice for them. Surfaces and interfaces of inorganic materials sit closer to the training data but still deserve validation.
Does CHGNet run on a CPU?
Yes. Prediction and relaxation of individual structures work on a laptop CPU, and that is how most users try it. A GPU becomes useful for fine-tuning and for extended molecular dynamics on cells with many atoms.
Where is the CHGNet source code?
At https://github.com/CederGroupHub/chgnet (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is CHGNet still maintained?
The last commit was pushed on 2026-11-28 and the latest tagged release is v0.4.2 from 2025-09-22; the repository had 7 open issues and pull requests on 2026-11-28.
Does MolForge use CHGNet?
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); CHGNet 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