create_mace_from_pickle

jaxrens.backends.mace.create_mace_from_pickle(pickle_path, supercell_trafo=(2, 2, 2))[source]

Create a MACE backend from a pickle file with graphdef + state.

This is the simplest loading path — avoids config serialization issues. Use save_mace_test_fixture.py to generate the pickle. create_mace() dispatches .pkl paths here, so a pickle also works from the YAML checkpoint_path; call this directly only when you already know the format.

Parameters:
  • pickle_path (str) – Path to model_bundle.pkl.

  • supercell_trafo (tuple[int, int, int]) – Supercell expansion for neighbor finding.

Returns:

MACEBackend instance.

Return type:

MACEBackend