Examples#

Every notebook of the repository’s notebooks/ directory, rendered with its executed outputs. Its examples/, fidelity_checks/ and parity_checks/ folders each follow the package layout (<family>/<model>/). To run one yourself, see Run the Example Notebooks for the environments. Entries marked coming soon are being reviewed and become links as they are published.

Data#

The data hub: load_dataset(), splits, units, caching.

Models#

The model hub: foundation models, xnn-trained models and Zenodo uploads under one from_pretrained() call, the cache layout and sharing your own.

ANI (dnn)#

ANI from scratch on rMD17, then the four published ANI datasets, each paired with its model preset.

HDNNP (dnn)#

The four generations of high-dimensional neural network potentials: their defining properties on untrained models, first and second generation on rMD17, and the 2G / 3G / 4G comparison of the fourth-generation paper (Ko et al., Nat. Commun. 12, 398 (2021)).

PhysNet (dnn)#

Training and MD against the original TensorFlow PhysNet.

QRNN (dnn)#

Charges that follow the net charge of a molecule, trained with learned loss weights.

SchNet (gnn)#

The architecture of Schütt et al., Adv. Neural Inf. Process. Syst. 30 (2017) trained on rMD17 ethanol, then thermostat-free NVE dynamics to show energy conservation by construction.

DimeNet and DimeNet++ (gnn)#

The directional message passing papers (Gasteiger et al., Int. Conf. Learn. Represent. (2020) and Gasteiger et al., NeurIPS Workshop on Machine Learning for Molecules (2020)) checked with untrained models: the Bessel and spherical Fourier-Bessel bases, the envelope, twice continuous differentiability across the cutoff, the distinguishability argument and the DimeNet++ speed-up. Then the MD17 experiment of the paper on rMD17 ethanol: DimeNet, DimeNet++ and SchNet trained on 1000 structures, with the learned 2D filters.

GemNet (gnn)#

The geometric message passing paper (Gasteiger et al., Adv. Neural Inf. Process. Syst. 34, 6790 (2021)) checked with untrained models: the three bases, triplets and quadruplets, what the dihedral angle adds, the variance scaling of Fig. 3, smoothness at both cutoffs, direct versus conservative forces and the cost of the variants. Then GemNet-T, -Q and -dT trained on rMD17 ethanol, with NVE energy conservation.

PaiNN (gnn)#

The equivariant message passing paper (Schütt et al., Proc. Mach. Learn. Res. 139, 9377 (2021)): the architecture and its claims checked with untrained models, the MD17 experiments and ablations of Tables III and IV, the rotational profile of substituted ferrocene at short cutoffs (Fig. 4), and the infrared and Raman spectra of ethanol from classical and ring-polymer dynamics (Fig. 5).

TensorNet (gnn)#

The Cartesian tensor network of TorchMD-Net 2.0 (Simeon and De Fabritiis, Adv. Neural Inf. Process. Syst. 36, 37334 (2023); Pelaez et al., J. Chem. Theory Comput. 20, 4076 (2024)): the irreducible decomposition, O(3) against SO(3) on enantiomers, the total-charge coupling, smoothness and the cost of 0 to 3 layers. Then TensorNet on rMD17 aspirin, and TensorNet against ET on a QM9 subset at a short budget.

CGCNN (gnn)#

CGCNN on the Materials Project crystals of the MEGNet paper: training on formation energies at a short budget, next to the authors’ pretrained model, then their pretrained bulk-modulus model and metal/semiconductor classifier.

QET (gnn)#

The charge-equilibrated TensorNet of Ko et al., arXiv:2511.07249 (2025), with MatGL’s MatPES potential: the charges of a crystal, a charged vacancy and an applied potential.

3D steerable CNN (cnn)#

The Tetris experiment of the 3D steerable CNN paper (Weiler et al., Adv. Neural Inf. Process. Syst. 31 (2018)): steerable and conventional kernels trained on the eight pieces in one orientation and tested under random rotations, with the paper’s low-pass ablation, the kernel-basis figure and the equivariance of the internal fields. Then the same comparison for interatomic potentials: the steerable and the conventional 3D CNN trained on rMD17 ethanol and evaluated on rotated structures.

Spherical CNN (cnn)#

The QM7 experiment of the spherical CNN paper (Cohen et al., Int. Conf. Learn. Represent. (2018)): atomization energies from the potentials of the atoms sampled on spheres, with the Table 3 network and the DeepSet readout, and the rotation invariance of the energy.

NequIP, MACE, Allegro, CACE, AIMNet2 (gnn)#

The argon train, evaluate and MD series, one pair of notebooks per model against its reference code; a block-by-block walkthrough of the MACE architecture; the MACE-OFF23 and MACE-MP foundation models on organic chemistry and materials; the fine-tuning strategies (naive, readout-only, LoRA, multi-head replay) side by side; and the published AIMNet2 models on neutral, charged and open-shell molecules.

Long-range: Latent Ewald Summation (common)#

Dispersion: D4 (common)#

Reproductions of the examples of the D4 paper (Caldeweyher et al., J. Chem. Phys. 150, 154122 (2019)), a benchmark against the reference dftd4 with deployment through every channel, and the large-system regime pushed to the memory limit of one GPU.

Dispersion: D3 (common)#

Reproductions of the two Grimme papers (Grimme et al., J. Chem. Phys. 132, 154104 (2010); Grimme et al., J. Comput. Chem. 32, 1456 (2011)) and a benchmark against simple-dftd3 for every damping function.

ET (trfnn)#

The equivariant transformer paper (Thölke and De Fabritiis, Int. Conf. Learn. Represent. (2022)): the sizes of Tables 4 and 6, the attention weights of section 3.1, equivariance, and the cutoff discontinuity that TorchMD-Net 2.0 (Pelaez et al., J. Chem. Theory Comput. 20, 4076 (2024)) removed. Then the MD17 protocol of Table 2 on rMD17 aspirin, with and without the fix.

Equiformer (trfnn)#

The equivariant graph attention paper (Liao and Smidt, Int. Conf. Learn. Represent. (2023)): the sizes of Table 6 and section E.1, the irreps and tensor-product paths, SE(3) against E(3) under reflections, the cost of the attention variants and the cutoff. Then the MD17 protocol on rMD17 aspirin, with and without the smooth cutoff.

EquiformerV2 (trfnn)#

The EquiformerV2 paper (Liao et al., Int. Conf. Learn. Represent. (2024)): the sizes of Tables 8 and 13, the eSCN edge frames, the sphere sampling, forces through the frames and liquid argon. Then Equiformer and EquiformerV2 on a QM9 subset, and EquiformerV2 on OC20 S2EF with conservative and direct forces.

BAMBOO (hybnn)#

SpookyNet (hybnn)#

The SpookyNet paper (Unke et al., Nat. Commun. 12, 7273 (2021)): the building blocks checked with untrained models and the published example model, the electronic-state surfaces of Ag3+ / Ag3- and singlet / triplet CH2 (Fig. 4), the dissociation of diatomics with and without nonlocal interactions (Fig. 5), the 4G-HDNNP charge-transfer benchmarks (Table 1) and MD17 (Table 3).

ByteFF and ByteFF-Pol (hybnn)#

The released ByteFF-26 and ByteFF-Pol-25 networks: predicted parameters and their ensemble spread, geometry, a torsion scan and dynamics of a drug-like molecule, electrolyte dimers and a lithium cluster resolved into repulsion, dispersion, electrostatics, polarization and charge transfer, and a periodic electrolyte box with particle-mesh Ewald electrostatics and induction.

ReaxFF / ReaxFF-nn (ffnn)#

A reactive force field fit by gradient descent to rMD17 malonaldehyde, then MD with the trained library: bond orders, EEM charges and a dissociation scan.

OPLS / L-OPLS (ffnn)#

Table 1 of the OPLS-AA paper (Jorgensen et al., J. Am. Chem. Soc. 118, 11225 (1996)) from relaxed dihedral scans, then the L-OPLS hexane torsion (Siu et al., J. Chem. Theory Comput. 8, 1459 (2012)) re-derived by gradient descent to the published coefficients.

DREIDING (ffnn)#

Tables XI and XII of the DREIDING paper (Mayo et al., J. Phys. Chem. 94, 8897 (1990)) from relaxed scans, then the generators refit on benzene and tested for transfer to naphthalene and toluene.

AMBER (ffnn)#

Tables 3, 4 and 11 and the dipeptide maps of Figure 2 of the ff94 paper (Cornell et al., J. Am. Chem. Soc. 117, 5179 (1995)) from relaxed scans, the normal modes of Tables 6 and 7 from the autograd Hessian, then the backbone torsions refit by gradient descent.

CHARMM22 (ffnn)#

The backbone geometries, conformational energies, dipeptide map and NMA interaction energies of the CHARMM22 paper (MacKerell et al., J. Phys. Chem. B 102, 3586 (1998)), the normal modes of NMA and the alanine dipeptide from the autograd Hessian, then the backbone torsions refit by gradient descent.

AMOEBA and HIPPO (ffnn)#

The water dimer and cluster energetics of the AMOEBA and HIPPO water papers (Ren and Ponder, J. Phys. Chem. B 107, 5933 (2003); Rackers et al., J. Chem. Theory Comput. 17, 7056 (2021); the ten Smith dimers with their energy decomposition, the cyclic clusters), the monomer moments, an AMOEBA water model refit to HIPPO reference data by gradient descent, the AMOEBA protein force field (Shi et al., J. Chem. Theory Comput. 9, 4046 (2013)) on capped peptides with the alanine dipeptide map, and a periodic water box with particle-mesh Ewald sums and a short microcanonical run.

Semiempirical methods (sqmnn)#

The tables of the PM3, PM6, PM7 and PM6-ORG papers (Stewart, J. Comput. Chem. 10, 209 (1989); Stewart, J. Mol. Model. 13, 1173 (2007); Stewart, J. Mol. Model. 19, 1 (2013); Stewart and Stewart, J. Mol. Model. 29, 284 (2023)) reproduced with the published parameters: heats of formation, dipoles and ionization potentials, the modified core-core terms, and the S22 / S66 interaction energies; then the parameters refit by gradient descent and written back for MOPAC. The tight-binding methods GFN1-xTB and GFN2-xTB follow with their charges, a geometry optimization, the S22 interaction energies and a parameter refit.

GDML and sGDML (krnn)#

The kernel force fields of Chmiela et al., Sci. Adv. 3, e1603015 (2017) and Chmiela et al., Nat. Commun. 9, 3887 (2018): a closed-form fit on rMD17 ethanol, the test errors, and NVE dynamics.

Deployment: MDI (common)#

A checkpoint served as an MDI engine, driven first from a minimal Python driver and then from LAMMPS fix mdi/qm.

Fidelity checks#

Block-by-block verification of each implementation against its upstream reference (Model Fidelity to Upstream Codes), ending with a weight transplant.

Parity checks#

The fast paths (Run Models on Fused GPU Kernels) against the reference implementations they replace: energies, forces, stress, charges, training gradients and timings.