Skip to content

GemNet

Johannes Gasteiger, Florian Becker, Stephan Günnemann

GemNet is a PyTorch reference implementation of a geometric message-passing model for molecular energies and atomic forces, with notebooks for training, ASE-based prediction and molecular dynamics.

Catalog updated ·

Overview

GemNet is a geometric message-passing neural network designed to predict a molecule’s overall energy and the forces acting on its atoms. This repository provides the PyTorch reference implementation, rather than the original TensorFlow 2 implementation, which the README links separately. The project connects the model to its NeurIPS 2021 publication and a subsequent paper examining graph neural network potentials in molecular dynamics.

The repository supports a workflow from model training to molecular prediction and simulation examples. Users configure their work through config.yaml or config_seml.yaml. Training is illustrated in train.ipynb, while predict.ipynb demonstrates predictions for a molecule loaded through ASE. The documented outputs are molecular energy and atomic forces; the source excerpts do not specify the complete input schema, supported chemical coverage or training-data requirements. For cluster workflows, train_seml.py integrates training with Sacred and SEML, and ase_example.ipynb illustrates molecular dynamics use.

An additional preparation step concerns activation scaling at initialization. Users can choose the supplied scaling_factors.json or compute factors with fit_scaling.py; the README states that these factors are shared across GemNet variants. The excerpts establish these workflow components but provide no numerical accuracy results, runtime measurements or demonstrated simulation-stability limits. Prospective users should therefore evaluate suitability for their own molecules and simulation conditions rather than treating the examples as validation of a particular application.

Key Features

  • Predicts overall molecular energy and forces on individual atoms using a geometric message-passing neural network.
  • Provides a PyTorch reference implementation, with the original TensorFlow 2 implementation linked separately.
  • Includes `train.ipynb` for training and `predict.ipynb` for predictions on a molecule loaded through ASE.
  • Supports cluster-training workflows through `train_seml.py` with Sacred and SEML.
  • Includes `ase_example.ipynb` to demonstrate using GemNet in molecular dynamics simulations.
  • Offers precomputed activation-scaling factors in `scaling_factors.json` and a calculation workflow through `fit_scaling.py`.

Use Cases

  • Intended evaluation: assess energy and atomic-force predictions for representative molecules using the ASE-based prediction notebook and suitable reference results.
  • Intended evaluation: adapt the training notebook and configuration files to a molecular energy-and-force learning study.
  • Intended evaluation: explore GemNet’s role in an ASE molecular dynamics workflow, checking behavior under the intended simulation conditions.
  • Intended evaluation: assess the Sacred and SEML training workflow for organizing model-training experiments on a cluster.

How to Use

  1. Read the repository README to identify the PyTorch workflow and its distinction from the separately linked TensorFlow 2 implementation. Review the code licence before adoption.
  2. Inspect the package setup and the repository’s dependency requirements. The setup declares Python >=3.8; the source excerpts do not establish a tested environment.
  3. Adjust config.yaml for the notebook workflow, or config_seml.yaml for the documented cluster-training route. Consult train.ipynb or train_seml.py in the repository.
  4. Choose the provided scaling_factors.json or follow fit_scaling.py to compute initialization scaling factors, as described in the README.
  5. Use predict.ipynb to examine predictions for an ASE-loaded molecule. If simulation is your goal, inspect ase_example.ipynb next. As an intended evaluation step, compare outputs with appropriate reference data before relying on them.

Related resources

TorchMD-Net implements trainable neural network potentials as PyTorch modules, with TensorNet architectures, custom molecular datasets, pretrained checkpoint loading and molecular dynamics integrations.

Open sourcePython

Molecular Property Prediction · Computational Chemistry

Allegro

Model

Allegro implements an E(3)-equivariant interatomic potential as a NequIP extension, with documented GPU acceleration options and a separate plugin for LAMMPS simulations.

Open sourcePython

Computational Chemistry · Materials Discovery

ASE

Open Source

ASE is a Python atomistic simulation library connecting conventional codes and external machine learning potentials through a common calculator interface.

Open sourcePython

Computational Chemistry

An ASE routing Skill in the computational-chemistry-agent-skills collection that separates workflow preparation from calculator configuration and delegates execution elsewhere.

Computational Chemistry · Materials Discovery

Cantera Skill (K-Dense) provides instructions and a Python helper for homogeneous ignition calculations, with mechanism provenance, conservation diagnostics, and numerical refinement checks.

Open sourcePython

Computational Chemistry · Process Optimization

ChemAgent (AI4Chem) is a research framework for chemistry and materials tool use, linked to the CheMatAgent paper on tree-search planning, tool execution and ChemToolBench-based training.

Computational Chemistry · Materials Discovery

Related guides

Licensing

Reading Code, Weight and Data Licences Separately

Build a component-by-component licensing record for chemistry AI workflows, separating software, model weights, datasets and hosted services while keeping missing evidence and unresolved conditions visible.