Skip to content

Commit

Permalink
Fix two small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Dec 8, 2023
1 parent 64bc443 commit 98e9436
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/metatensor/models/soap_bpnn/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ def train(model, train_dataset, hypers=DEFAULT_TRAINING_HYPERS):

# Save the model:
save_model(
ARCHITECTURE_NAME, model, model_hypers, model.all_species, f"model_{epoch}.pt"
ARCHITECTURE_NAME, model, model_hypers, model.all_species, f"model_final.pt"
)
2 changes: 2 additions & 0 deletions src/metatensor/models/utils/model_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def save_model(
hypers (Dict): The hyperparameters used to train the model.
all_species (List[int]): The list of all species that the model can handle.
path (str): The path to the file.
"""
torch.save(
Expand Down

0 comments on commit 98e9436

Please sign in to comment.