Add alias `"best"` for the model checkpoint artifact (#3558)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
single_channel
Soumik Rakshit 1 year ago committed by GitHub
parent ad99246ff1
commit 3821d4a72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ def on_train_end(trainer):
art = wb.Artifact(type='model', name=f'run_{wb.run.id}_model') art = wb.Artifact(type='model', name=f'run_{wb.run.id}_model')
if trainer.best.exists(): if trainer.best.exists():
art.add_file(trainer.best) art.add_file(trainer.best)
wb.run.log_artifact(art) wb.run.log_artifact(art, aliases=['best'])
callbacks = { callbacks = {

Loading…
Cancel
Save