Skip to content

Commit

Permalink
best_val_mae_both_model is not written if do_forces = MLIP_SETTINGS.U…
Browse files Browse the repository at this point in the history
…SE_FORCES = False
  • Loading branch information
DavideTisi committed Nov 21, 2024
1 parent 4493189 commit f3525ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metatrain/experimental/pet/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f3525ed

Please sign in to comment.