xnn.common.models.hub.loader.PretrainedModel#
- class xnn.common.models.hub.loader.PretrainedModel(model, config, card, cutoff, path)[source]#
Bases:
objectA loaded model with everything known about it.
- Variables:
model (ForceStressOutput) – The ready model (forces, optionally stress), in eval mode.
config (Config) – The configuration it was built from.
card (ModelCard or None) – Its card (
Nonefor a bare checkpoint file).cutoff (float) – Neighbor-list cutoff of the built model, in angstrom (a dispersion wrapper widens it beyond the core model’s radius).
path (pathlib.Path) – The local directory or file it was loaded from.
- Parameters: