run_from_config

jaxrens.cli.run.run_from_config(ns_config, move_config, backend_config, output_config, initial_positions, initial_types, initial_energies=None, initial_cells=None, initial_max_neighbor_counts=None, symbol_map=None, termination_criteria=None, restart_state=None, initial_walk_config=None, adaptation_config=None, move_descriptors=None, constraint_descriptors=(), base_backend=None, writer_mode='w', ensemble_params=None)[source]

Run NS from typed config objects.

base_backend (preferred): a pre-built EnergyBackend, e.g. the one populated on ResolvedConfig.energy_backend by the resolver via BackendSpec.build_backend(). When provided, it’s used directly — avoids rebuilding via load_backend(backend_type, **backend_kwargs) from the flat BackendConfig, whose checkpoint_path -> pickle_file translation does not match every backend’s create_* kwargs (MACE expects model_path, not pickle_file). The fallback path is kept for legacy callers that only have a BackendConfig.

Parameters:
  • ns_config (NSConfig)

  • move_config (MoveConfig | list[MoveConfig])

  • backend_config (BackendConfig)

  • output_config (OutputConfig)

  • initial_positions (Array)

  • initial_types (Array)

  • initial_energies (Array | None)

  • initial_cells (Array | None)

  • initial_max_neighbor_counts (Array | None)

  • symbol_map (dict[int, str] | None)

  • termination_criteria (list | None)

  • constraint_descriptors (tuple)

  • base_backend (Any)

  • writer_mode (str)

  • ensemble_params (dict | None)

Return type:

dict