create_neuralil¶
- jaxrens.backends.neuralil.create_neuralil(pickle_file=None, supercell_trafo=(1, 1, 1), softcore=None, softcore_kwargs=None, **kwargs)[source]¶
Create a NeuralIL energy backend.
Auto-detects whether the pickle is a single
NeuralIL[withMorse]or aPlainEnsemble[withMorse]from the saved params layout, and builds the matching dynamics model.The soft-core augmentation (a fixed repulsive Morse term that smoothly switches off between
r_core_switchandr_core_cut) is not auto-detectable from the saved params since it carries no trainable parameters. It is opt-in via the pickle’sconstructor_kwargs['softcore']or via an explicitsoftcore=Trueoverride here;softcore_kwargsoverrides the pickle-stored kwargs (merged on top of the package defaults).- Parameters:
pickle_file (str | None) – Path to NeuralIL model pickle (
NeuralILModelInfo). Either single-model or ensemble checkpoints are accepted.supercell_trafo (Sequence[int]) – Supercell diagonal transformation (s_a, s_b, s_c).
softcore (bool | None) – If True, wrap the model with a fixed repulsive Morse soft-core term.
None(default) means “use whatever the pickle says”; explicitTrue/Falseoverrides the pickle. Mutually exclusive with a trainable Morse model.softcore_kwargs (dict[str, float] | None) – Optional override of the soft-core hyperparameters (
a0,b0,d0,r_core_cut,r_core_switch). Merged on top of the package defaults (DEFAULT_SOFTCORE_KWARGS) and on top of any kwargs read from the pickle.kwargs (Any)
- Returns:
NeuralILBackend instance.
- Return type: