Examples#

Every notebook of the repository’s examples/ directory, rendered with its executed outputs. 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.

PhysNet (dnn)#

Training and MD against the original TensorFlow PhysNet.

SchNet (gnn)#

The paper architecture 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., ICLR 2020 and NeurIPS-W 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., NeurIPS 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., ICML 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).

3D steerable CNN (cnn)#

The Tetris experiment of the 3D steerable CNN paper (Weiler et al., NeurIPS 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., ICLR 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 (gnn)#

Dispersion: DFT-D4 (common)#

Reproductions of the D4 paper’s examples, 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: DFT-D3 (common)#

Reproductions of the two Grimme papers and a benchmark against simple-dftd3 for every damping function.

BAMBOO (hybrid)#

SpookyNet (hybrid)#

The SpookyNet paper (Unke et al., Nat. Commun. 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).

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 1996 paper from relaxed dihedral scans, then the L-OPLS hexane torsion re-derived by gradient descent to the published coefficients.

DREIDING (ffnn)#

Tables XI and XII of the 1990 paper from relaxed scans, then the generators refit on benzene and tested for transfer to naphthalene and toluene.

Semiempirical methods (sqmnn)#

The tables of the PM3, PM6, PM7 and PM6-ORG papers 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.

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.