jaxrens.backends.neuralil¶
NeuralIL backend wrapper.
Wraps NeuralIL behind the EnergyBackend interface. Supports both single
NeuralIL / NeuralILwithMorse models and PlainEnsemble /
PlainEnsemblewithMorse ensembles; the layout is auto-detected from
the saved params at load time. NeuralIL computes neighbors implicitly
via supercell expansion during descriptor calculation — no explicit
neighbor list. The dynamics model is built once at construction
time and reused; max_neighbors is passed at call time as a
buffer-shape argument (mirroring the MACE backend’s design). Different
max_neighbors values trigger a JIT retrace because of the static
shape, but no Python-side model rebuild.
If the saved model carries a per-atom energy baseline (under
model_info.specific_info["energy_shift_per_atom"]), the backend
adds shift * n_real_atoms back to the predicted total energy so
calling code sees absolute energies. Training scripts subtract this
shift from targets for numerical stability.
NeuralIL is an optional dependency. All imports are guarded.
Functions
Create a NeuralIL energy backend. |
|
Classes
Re-exported constant; see |
|
NeuralIL energy backend for jaxrens. |