Skip to content

Commit

Permalink
save best model saving scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
davebulaval committed Mar 9, 2024
1 parent 5414c58 commit 8957e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/training/few_shot_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
log.propagate = False
log.setLevel(logging.ERROR)

num_epoch = 250
num_epoch = 500

parser = argparse.ArgumentParser()
parser.add_argument(
Expand Down Expand Up @@ -124,4 +124,4 @@ def tokenize_function(example):
metric_key_prefix="test/unrelated_sentences",
)

trainer.save_model(f"meaningbert_best_model")
trainer.save_model(f"meaningbert_best_model_{seed}")

0 comments on commit 8957e81

Please sign in to comment.