API Reference¶
This section contains the selected public API reference for AIMNet2. Lower-level kernels, tensor operators, and training internals are documented through source code and focused guides where they are intended for extension.
Package Structure¶
- Calculators - Calculator interfaces for molecular simulations
- Modules - Neural network modules and model components
- Data - Dataset handling and data loading utilities
- Config - Configuration and model building utilities
Supported Public Imports¶
| Import path | Public surface |
|---|---|
aimnet.calculators |
AIMNet2Calculator, AIMNet2ASE, AIMNet2Pysis, AIMNet2TorchSim |
aimnet.data |
DataGroup, SizeGroupedDataset, SizeGroupedSampler |
aimnet.models |
AIMNet2, model loading helpers |
aimnet.modules |
Model building blocks intended for configuration and extension |
aimnet.config |
YAML/module construction helpers |
The aimnet.ops, aimnet.nbops, aimnet.kernels, aimnet.train, and aimnet.cli modules are importable but are primarily advanced or internal extension points. Their contracts may be narrower than the calculator and model APIs.
Serialization ABI¶
Released model files embed a YAML configuration with fully qualified class paths (for example aimnet.models.AIMNet2, aimnet.modules.Output, torch.nn.GELU). Loading a checkpoint resolves these strings by import, so every class name and location reachable from aimnet.models and aimnet.modules is a frozen serialization contract: renaming or moving one of these classes breaks every published checkpoint that references it. Renames require a deprecation alias at the old import path plus a model-format migration; tests/test_serialization_abi.py pins the currently frozen names.
Quick Links¶
Calculators¶
The main entry points for using AIMNet2:
AIMNet2Calculator- Core calculator for inferenceAIMNet2ASE- ASE calculator interface (requiresaimnet[ase])AIMNet2Pysis- PySisyphus calculator interface (requiresaimnet[pysis])AIMNet2TorchSim- TorchSim model interface (requires Python 3.12+ andaimnet[torchsim])
Command Line Interface¶
aimnet --help