xnn.common.models#

Modules

base

The contract every model obeys.

blocks

Network blocks shared by several model families (PaiNN in gnn, ET in trfnn, ByteFF in gnn and hybnn).

charge_solve

Global charge solve for LES: charge equilibration with the latent Ewald kernel.

compiled

Blocks compiled into fused kernels (the fast paths of Equiformer, EquiformerV2 and SpookyNet).

constants

Model constants that stay exact in float64.

cpu_extension

Optional C++ / OpenMP CPU kernels of some fast paths (D3, D4, the HDNNP symmetry functions).

csr

Compressed rows of a pair list: the pairs sorted by center or by neighbor.

d3

Grimme D3 London dispersion: a geometry-dependent correction for any xnn model.

d4

D4 London dispersion: a charge-dependent correction for any xnn model.

dispersion

Shared machinery of the dispersion add-ons (D3, D4).

dispersion_fast

Fast paths of the dispersion terms (D3, D4).

eeq

Large-system EEQ charges: matrix-free operator, solvers, implicit differentiation.

electrostatics

Point-charge electrostatics shared by the charge-predicting models.

fast

Fast paths: optimized kernels behind the same parameters as the reference code.

hub

Model hub: one-line from_pretrained() loading of pre-trained models.

les

Latent Ewald Summation (LES): long-range interactions for any xnn model.

multilinear

Multilinear blocks: autograd functions that keep only their operands.

ops

Tensor operations shared across model families (gnn / cnn / dnn).

outputs

Differentiate energy to get conservative forces and the stress tensor.

pme

Smooth particle-mesh Ewald reciprocal sums (Essmann and co-workers, 1995).

reciprocal

Reciprocal-space sums through factorized phases (the Ewald fast paths).

recompute

Recomputation blocks whose memory stays bounded through a double backward.

registry

Name -> class registry so new models are added without touching the core.

vibrations

Second derivatives of a model's energy with respect to the positions, and harmonic vibrational analysis.