Skip to content

Commit

Permalink
Fix missing best_metric in the temporary PET checkpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
abmazitov committed Nov 27, 2024
1 parent af0b280 commit 6a7f4c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/metatrain/experimental/pet/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,11 @@ def train(
else:
lora_state_dict = None
last_model_checkpoint = {
"architecture_name": "experimental.pet",
"trainer_state_dict": trainer_state_dict,
"model_state_dict": last_model_state_dict,
"best_model_state_dict": self.best_model_state_dict,
"best_metric": self.best_metric,
"hypers": self.hypers,
"epoch": self.epoch,
"dataset_info": model.dataset_info,
Expand Down

0 comments on commit 6a7f4c5

Please sign in to comment.