Hey all - our team has been using Model Registry for a while with no big issue. From last week on, whenever we try to add a new artifact to an existing collection, it just replaces the artifact’s metadata and keep the same version.
For example:
- Add version 0 of artifact “test_artifact” from WandB run “run1” with success
- Try to add version 1 of artifact “test_artifact” from WandB run “run2” and it just replaces “test_artifact” version 0
In our code, we first create an artifact, then we use run.link_artifact() to link it to the right WandB run.
The code goes as follows:
wandb_run: Run = wandb.init(
entity=wandb_team,
project=wandb_project,
id=run_id,
resume="allow",
)
artifact = Artifact(name="test_artifact", type="model", metadata=metadata)
wandb_run.link_artifact(artifact=artifact, target_path="wandb-registry-model/test_artifact")
This did not happen before. The behaviour is also not consistent, as sometimes it works (not very often on the last few days).
Does anybody have an idea on how to fix this?