A notebook that imports megnet, another that imports m3gnet, and a third that imports matgl may refer to related research while requiring different environments and weights. This guide helps materials researchers identify what they actually have before reproducing or migrating a calculation. It does not rank interatomic potentials.

Three names, three different decisions

Name Scientific/software role Appropriate question
MEGNet Graph-network architecture updating bond, atom and global-state information; also a legacy implementation Which property, graph construction and learned readout were trained?
M3GNet Architecture including three-body information and geometry; also a legacy implementation Is the selected checkpoint a property surrogate or a potential energy surface?
MatGL Materials graph learning library containing multiple architectures Which library release, backend, architecture and weights form this executable model?

The MEGNet README and M3GNet README provide the historical context. M3GNet’s geometric design supports derivatives used in force/stress models; it does not make every M3GNet property checkpoint a force field. Similarly, a formation-energy or band-gap predictor is not automatically suitable for dynamics.

Separate historical implementations from a current MatGL stack

The legacy MEGNet repository is deprecated in favor of MatGL; the legacy M3GNet repository says it is archived and retained as a reference. Their TensorFlow-era examples and old Apple installation recipes should be reproduced in a deliberately historical environment, not copied into a new PyTorch environment. The archived M3GNet README’s description of its successor as DGL-based reflects an earlier stage of MatGL.

As checked on 2026-10-18, the official latest release endpoint identifies v4.1.0, published 2026-09-30. Its tagged package definition declares Python >=3.11 and dependencies including PyTorch, PyG, Lightning, pymatgen-core and huggingface_hub. These declarations are requirements evidence, not a tested installation matrix for every GPU or operating system.

Current documentation is not completely synchronized: the main README places DGL removal under its v3.0 heading, while older changelog entries describe DGL deprecation and removal in v4. Do not resolve the historical boundary by guessing. For a v4.1.0 setup, use tagged source/configuration and PyG instructions; do not advertise an older DGL checkpoint as load-compatible. The inconsistency is retained in the review notes.

A version upgrade can change numerical meaning

MatGL’s tagged changelog records a v3 message-passing correction and replacement pretrained weights. It also records a v4.1.0 M3GNet fix affecting three-body message routing when threebody_cutoff < cutoff, with refitted models. These are upstream statements, not corrections independently benchmarked for this article.

Therefore, “same architecture” and “loads without an exception” are insufficient migration checks. Save the original environment and file hashes. Select a new checkpoint explicitly, read its provenance and training reference, and compare outputs on an agreed reference set. Do not overwrite an old result or silently substitute a retrained model. Old and corrected calculations may answer different reproducibility questions.

Choose weights by the scientific task

For property screening, verify the target definition, units, intensive/extensive convention and training domain. For relaxation or dynamics, require a potential trained/configured for an energy surface and a documented derivative/calculator interface. Check element coverage, geometry range, periodic boundaries, charge assumptions and reference electronic-structure settings. Element inclusion alone does not establish coverage of phases, defects or reactive trajectories.

The current MatGL README identifies the materialyze Hugging Face organization as the canonical weight source and describes removal of the legacy GitHub model-download fallback. That is not evidence that any remembered model alias remains valid. Record model repository, immutable revision, configuration, checkpoint hash and required code version before loading. For offline use, obtain approved assets first and test an explicit local path; do not infer offline operation from a previously populated cache.

Use a compatibility worksheet before executing

  1. Write the task and required outputs: property, total energy, per-atom energy, force or stress, with units and reference conventions.
  2. Identify the original implementation and its full environment; keep legacy and target environments separate.
  3. Select one tagged target release and one identifiable checkpoint. Check licence and data provenance separately from the library’s BSD-3-Clause code licence.
  4. Check graph conversion, cutoffs, element encoding, precision/device, dependencies and the supported public loading interface for that release.
  5. Propose a small reference calculation: preserve atom order, compare like units, test the selected output and log failures. Only claim numerical equivalence after executing and reviewing it.

No installation, checkpoint loading, relaxation or numerical migration comparison was performed for this article. Code status is not applicable: this is a version/selection guide with an operational worksheet, not an untested copy-paste loader.

How this complements the other materials Guides

Use the existing ML interatomic-potential selection Guide for the broader model shortlist, the CHGNet/Matbench Discovery Guide for benchmark interpretation, and the ASE Guide for unit/convergence checks. Here the deliverable is an explicit architecture–implementation–weight identity and a migration decision. A future Recipe could automate parts of that manifest review, but no MatGL migration adapter or CARS compatibility is claimed.

Related ChemAI Atlas resources and workflows

MEGNet · M3GNet · MatGL · Pymatgen

Selecting ML Interatomic Potentials: MACE, SevenNet, CHGNet, and MatGL · CHGNet and Matbench Discovery: A Materials Model Evaluation Checklist · ASE with ML Potentials: Units, Optimization, and Validation

Materials Research Starter Stack

CARS

Sources and evidence status

Sources inspected on 2026-10-18. Primary documentation supports capability/API statements. Audit protocols are editorial proposals; no scientific validation or measured performance is reported.