Skip to main content

PyPI Release Python Build status License

AIMNet2

Fast neural-network interatomic potentials for organic, elemental-organic, open-shell, reactive, and palladium chemistry.

What It Does

AIMNet2 predicts energies, forces, atomic charges, stress tensors, and Hessians for molecules and periodic systems. Pretrained models cover general organic chemistry, open-shell and reactive chemistry, and palladium catalysis.

  • One calculator, AIMNet2Calculator, for single molecules, batches, and periodic cells
  • ASE, PySisyphus, Sella, TorchSim, Hugging Face Hub, and command-line workflows
  • Long-range Coulomb (DSF, Ewald, PME) and DFT-D3(BJ) dispersion on GPU
  • Optional CUDA-graph replay and torch.compile for repeated evaluations
  • Python 3.11 to 3.14 and PyTorch 2.10 or newer

Install

pip install aimnet

On Linux the default PyTorch wheel from PyPI includes CUDA. To pick a specific CUDA build, install PyTorch first, then AIMNet2:

pip install torch --index-url https://download.pytorch.org/whl/cu126
pip install aimnet

Optional integrations:

pip install "aimnet[ase]"              # ASE calculator
pip install "aimnet[pysis]"            # PySisyphus reaction paths
pip install "aimnet[sella]"            # Sella transition-state search, includes ASE
pip install "aimnet[hf]"               # Hugging Face Hub model loading
pip install "aimnet[torchsim,ase]"     # TorchSim, Python 3.12+
pip install "aimnet[train]"            # training and export commands

For offline or HPC clusters, see Offline and HPC installation.

Quick Start

from aimnet.calculators import AIMNet2Calculator

calc = AIMNet2Calculator("aimnet2")  # downloads the model on first use

water = {
    "coord": [[0.000, 0.000, 0.119], [0.000, 0.763, -0.477], [0.000, -0.763, -0.477]],
    "numbers": [8, 1, 1],
    "charge": 0.0,
}
result = calc(water, forces=True)

print(result["energy"])   # eV
print(result["forces"])   # eV/Å
print(result["charges"])  # e

ASE

from ase.io import read
from aimnet.calculators import AIMNet2ASE

atoms = read("molecule.xyz")
atoms.calc = AIMNet2ASE("aimnet2", charge=0)

energy = atoms.get_potential_energy()
forces = atoms.get_forces()

TorchSim

import ase.io
import torch_sim as ts

from aimnet.calculators import AIMNet2Calculator, AIMNet2TorchSim

atoms = ase.io.read("molecule.xyz")
model = AIMNet2TorchSim(AIMNet2Calculator("aimnet2"))

results = ts.static(system=atoms, model=model)
print(results[0]["potential_energy"], results[0]["forces"])

Periodic Systems

calc = AIMNet2Calculator("aimnet2")
calc.set_lrcoulomb_method("ewald", ewald_accuracy=1e-6)

result = calc(
    {
        "coord": coordinates,       # (N, 3), Å
        "numbers": atomic_numbers,  # (N,)
        "charge": 0.0,
        "cell": cell_vectors,       # (3, 3), Å; fully periodic
    },
    forces=True,
    stress=True,
)

See the periodic systems tutorial and long-range methods for choosing a Coulomb method.

Performance

compile_model=False and cuda_graph=False are the defaults. For many repeated evaluations of the same system size on a GPU, such as MD or geometry optimization, cuda_graph=True replays captured CUDA graphs and is often several times faster for small and medium molecules. See CUDA-graph inference for supported models and memory costs, and performance tuning for batching and torch.compile.

Model Families

Model Elements Best for
aimnet2 H, B, C, N, O, F, Si, P, S, Cl, As, Se, Br, I General organic and elemental-organic chemistry, wB97M-D3
aimnet2-2025 H, B, C, N, O, F, Si, P, S, Cl, As, Se, Br, I B97-3c with improved intermolecular interactions
aimnet2-b973c H, B, C, N, O, F, Si, P, S, Cl, As, Se, Br, I Legacy B97-3c reproducibility
aimnet2-nse H, B, C, N, O, F, Si, P, S, Cl, As, Se, Br, I Open-shell systems and radicals
aimnet2-pd H, B, C, N, O, F, Si, P, S, Cl, Se, Br, Pd, I Pd catalysis with B97-3c/CPCM(THF) reference data
aimnet2-rxn H, C, N, O Reactive chemistry, transition states, NEB, IRC; net-neutral systems only

Each family has four ensemble members, 0 to 3; short aliases load member 0. Previously published names such as aimnet2_2025, aimnet2nse, and aimnet2pd still resolve.

The model selection guide covers known limitations, aliases, citations, and download links.

Hugging Face Models

With the hf extra installed, pass a repository ID directly:

from aimnet.calculators import AIMNet2Calculator

calc = AIMNet2Calculator("isayevlab/aimnet2-wb97m-d3")
calc = AIMNet2Calculator("isayevlab/aimnet2-wb97m-d3", ensemble_member=2)
calc = AIMNet2Calculator("isayevlab/aimnet2-wb97m-d3", revision="v1.0")
HF repo Alias Use
isayevlab/aimnet2-wb97m-d3 aimnet2 General organic chemistry
isayevlab/aimnet2-2025 aimnet2-2025 Improved intermolecular interactions
isayevlab/aimnet2-nse aimnet2-nse Open-shell chemistry
isayevlab/aimnet2-pd aimnet2-pd Palladium chemistry
isayevlab/aimnet2-rxn aimnet2-rxn Reactive paths and transition states

Private repositories load with token= or the HF_TOKEN environment variable. Local directories with config.json and ensemble_N.safetensors also work.

Outputs

Key Shape Units
energy (B,) eV
forces (N, 3) or (B, N, 3) eV/Å
charges (N,) or (B, N) e
stress (3, 3) or (B, 3, 3) eV/Å^3
hessian (N, 3, N, 3) or (B, N, 3, N, 3) eV/Å^2

B is the number of systems (1 for a single molecule) and N the number of atoms. Stress uses the ASE sign convention. Batched Hessians are evaluated per system and returned as a list when the systems differ in size. The calculator reference documents input layouts, batching, and the derivative support of each long-range method.

Training

pip install "aimnet[train]"
aimnet train data.train=dataset.h5 data.sae.energy.file=dataset_sae.yaml run_name=firstrun

The aimnet command is installed with the core package; training, export, and self-atomic-energy commands need the train extra. The training guide covers datasets, configuration, compiled training, stress training, and exporting models.

Development

git clone https://github.com/isayevlab/aimnetcentral.git
cd aimnetcentral
make install     # uv environment with all extras and pre-commit hooks
make check       # formatting, linting, dependency checks
make test        # pytest suite
make docs        # serve the docs locally

CI tests Python 3.11, 3.13, and 3.14, PyTorch 2.10 to 2.15, and each optional integration. Contributions are welcome; see CONTRIBUTING.md.

Citation

If AIMNet2 is useful in your work, please cite the relevant model papers:

AIMNet2

@article{aimnet2,
  title={AIMNet2: A Neural Network Potential to Meet Your Neutral, Charged, Organic, and Elemental-Organic Needs},
  author={Anstine, Dylan M and Zubatyuk, Roman and Isayev, Olexandr},
  journal={Chemical Science},
  volume={16},
  pages={10228--10244},
  year={2025},
  doi={10.1039/D4SC08572H}
}

AIMNet2-2025

If you use AIMNet2-2025 (aimnet2-2025), please also cite the AIMNet2-2025 paper:

@article{nayal2026critical,
  title={Critical benchmarking of machine-learned interatomic potentials for intermolecular and noncovalent interactions},
  author={Nayal, Kamal and Cho, IlKwon and Isayev, Olexandr},
  journal={Machine Learning: Science and Technology},
  year={2026},
  doi={10.1088/2632-2153/aea39f}
}

AIMNet2-NSE: Kalita, B.; Zubatyuk, R.; Anstine, D. M.; Bergeler, M.; Settels, V.; Stork, C.; Spicher, S.; Isayev, O. AIMNet2-NSE: A Transferable Reactive Neural Network Potential for Open-Shell Chemistry. Angew. Chem. Int. Ed. 2026. DOI: 10.1002/anie.202516763

AIMNet2-Pd: Anstine, D. M.; Zubatyuk, R.; Gallegos, L.; Paton, R.; Wiest, O.; Nebgen, B.; Jones, T.; Gomes, G.; Tretiak, S.; Isayev, O. Transferable Machine Learning Interatomic Potential for Pd-Catalyzed Cross-Coupling Reactions. ChemRxiv 2025. DOI: 10.26434/chemrxiv-2025-n36r6

License

MIT; see LICENSE.

Metadata

Release files for aimnet 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aimnet 0.2.6
File Size Uploaded Provenance Actions
aimnet-0.2.6.tar.gz 657.3 kB Without provenance Details for aimnet-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aimnet 0.2.6
File Interpreter ABI Platform Actions
aimnet-0.2.6-py3-none-any.whl Python 3 none any Details for aimnet-0.2.6-py3-none-any.whl

Total release size: 1.4 MB

Release files / aimnet-0.2.6.tar.gz

Download URL aimnet-0.2.6.tar.gz
Size 657.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c69e39e205598f912d67f037a8da0dceb4490eff5e3b7e4a49bc15eb25652625
BLAKE2b-256 checksum
How to use checksums
812c5b15b0cc8e4ad2e8ce3c46694d846ac72b87f8ffd27a4878f8d2515d6567
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / aimnet-0.2.6-py3-none-any.whl

Download URL aimnet-0.2.6-py3-none-any.whl
Size 698.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a847bed8e908953cbe0c185d579f81488089ac83821632e12cd9f382fd64ebc
BLAKE2b-256 checksum
How to use checksums
26ccb3b28ce99ffc609e77988b6cf2766e923dc14a6d1026a1f7562aae1f283b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for aimnet 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page