From f3525edb9a89ec1db4d81343c08ac2878b6cb0ff Mon Sep 17 00:00:00 2001 From: DavideTisi Date: Tue, 19 Nov 2024 20:59:35 +0100 Subject: [PATCH] best_val_mae_both_model is not written if do_forces = MLIP_SETTINGS.USE_FORCES = False --- src/metatrain/experimental/pet/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metatrain/experimental/pet/trainer.py b/src/metatrain/experimental/pet/trainer.py index dbe6f1e1e..73bbd4a9c 100644 --- a/src/metatrain/experimental/pet/trainer.py +++ b/src/metatrain/experimental/pet/trainer.py @@ -721,7 +721,7 @@ def save_model(model_name, model_keeper): if do_forces: load_path = self.pet_dir / "best_val_mae_forces_model_state_dict" else: - load_path = self.pet_dir / "best_val_mae_both_model_state_dict" + load_path = self.pet_dir / "best_val_mae_energies_model_state_dict" state_dict = torch.load(load_path, weights_only=True) ARCHITECTURAL_HYPERS = Hypers(model.hypers)