Create an artifact alias
less than a minute
Use aliases as pointers to specific versions. By default, Run.log_artifact
adds the latest
alias to the logged version.
An artifact version v0
is created and attached to your artifact when you log an artifact for the first time. W&B checksums the contents when you log again to the same artifact. If the artifact changed, W&B saves a new version v1
.
For example, if you want your training script to pull the most recent version of a dataset, specify latest
when you use that artifact. The proceeding code example demonstrates how to download a recent dataset artifact named bike-dataset
that has an alias, latest
:
You can also apply a custom alias to an artifact version. For example, if you want to mark that model checkpoint is the best on the metric AP-50, you could add the string 'best-ap50'
as an alias when you log the model artifact.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.