LAMMPS¶
Status: not currently supported.
LAMMPS exposes TorchScript-based ML potentials via pair_style mliap with the mliappy model (built into LAMMPS; requires the ML-IAP and PYTHON packages at build time). LAMMPS supplies the neighbor list to the Python/TorchScript model rather than the model building its own.
AIMNet2 cannot currently produce a .pt that this route accepts, for the same reasons documented in GROMACS NNPot:
- The shipped v2
.ptfiles are state-dict archives, not TorchScript. torch.jit.scripton the coreAIMNet2module fails ontensor.data_ptr()inaimnet/nbops.py.torch.jit.scripton the externalDFTD3module fails on its custom autograd signature.
In addition, LAMMPS expects the scripted model to accept a LAMMPS-supplied neighbor list (atom indices, and for some pair styles edge-index + cell-shift tensors) rather than build its own. The all-pairs neighbor list used in the parked GROMACS wrapper would not be performant for typical LAMMPS box sizes. A LAMMPS-targeted wrapper would need to consume the engine-supplied neighbor list inside the scripted module instead.
The shared remediation plan lives at docs/superpowers/plans/2026-04-26-torchscript-export.md.
A future LAMMPS wrapper must include AIMNet2's D3 dispersion to match the published wb97m-d3 level of theory. A no-dispersion shortcut would silently shift conformer rankings, intermolecular binding, and torsion barriers by 1-10 kcal/mol vs the published numbers.