# Retrieving Models (Aliases) held in the Model Registry

**URL:** <https://community.wandb.ai/t/retrieving-models-aliases-held-in-the-model-registry/2700>\
**Category:** W&B Help\
**Tags:** artifacts\
**Created:** [July 5, 2022, 8:51am UTC](https://community.wandb.ai/t/retrieving-models-aliases-held-in-the-model-registry/2700 "2022-07-05T08:51:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kayvane](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kayvane](https://community.wandb.ai/u/kayvane)\
**Post date:** [July 5, 2022, 8:51am UTC](https://community.wandb.ai/t/retrieving-models-aliases-held-in-the-model-registry/2700/1 "2022-07-05T08:51:12Z")

</div>

I’m trying a new model management set-up leveraging the model registry. My previous model management loop would go and check for any new aliases in a model which contained the word ‘challenger’, these models would then be pulled through to an evaluation job against the current ‘champion’ model to check whether any new challenger models should be staged for evaluation by a ML Eng to decide whether it should be promoted to production.

The previous code used to do this was leveraging `api.artifact_versions`:

```auto
api = wandb.Api(overrides={"project": "test-project"})
artifacts = api.artifact_versions("model", "model-name")

```

This returns the different versions of that model which exist (with all the alias names) as a list of lists of aliases

When applying this same logic against a model-registry (collection) the api no longer works / isn’t able to resolve the items held in the model registry.

Is there a different way to access the items held in the model registry?

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [July 7, 2022, 3:42pm UTC](https://community.wandb.ai/t/retrieving-models-aliases-held-in-the-model-registry/2700/2 "2022-07-07T15:42:58Z")

</div>

Hi @kayvane,  
It looks like this doesn’t exist currently in the same way that it would for a standard Artifact. You can use `wandb.use_artifact()` which will return an Artifact object. The Artifact will have an attribute `.aliases` that you could check to automate calling an evaluation job. I may be misunderstanding exactly how you intent to use this though so feel free to clarify if this isn’t the solution you are looking for.

As a side note, I’d encourage you to check out our [Launch](https://docs.wandb.ai/guides/launch) feature that is currently in Beta. Some of the functionality of this is not yet built out but in the future this will be a solution for triggering these types of jobs automatically.

Thank you,  
Nate

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [July 15, 2022, 3:49pm UTC](https://community.wandb.ai/t/retrieving-models-aliases-held-in-the-model-registry/2700/3 "2022-07-15T15:49:25Z")

</div>

@kayvane I wanted to see if I was able to answer your question or if you still had questions around this?

Thank you,  
Nate

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [September 13, 2022, 3:50pm UTC](https://community.wandb.ai/t/retrieving-models-aliases-held-in-the-model-registry/2700/4 "2022-09-13T15:50:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
