# Downloading model? cant find model file?

**URL:** <https://community.wandb.ai/t/downloading-model-cant-find-model-file/4487>\
**Category:** W&B Help\
**Tags:** artifacts\
**Created:** [May 30, 2023, 11:02am UTC](https://community.wandb.ai/t/downloading-model-cant-find-model-file/4487 "2023-05-30T11:02:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![markstent](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@markstent](https://community.wandb.ai/u/markstent)\
**Post date:** [May 30, 2023, 11:02am UTC](https://community.wandb.ai/t/downloading-model-cant-find-model-file/4487/1 "2023-05-30T11:02:12Z")

</div>

Hi There

I have finished training my model and have been adding my model as an artifact to WandB.

I now want to use the model for inference, but when i go to models on WandB, it shows all the versions of my model but there are no saved files?

> **[markstent](https://wandb.ai/markstent/sonic-diffusion/artifacts/model/sonic-diffusion/d0e5f714c1377ee6064d)**
>
> Weights & Biases, developer tools for machine learning

How do I download the latest model file to use?

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [May 31, 2023, 8:26pm UTC](https://community.wandb.ai/t/downloading-model-cant-find-model-file/4487/2 "2023-05-31T20:26:03Z")

</div>

Hello @markstent !

You can download the model using the following code:

```auto
import wandb
run = wandb.init()
artifact = run.use_artifact('<entity>/<project>/<model>:<version>', type='model')
artifact_dir = artifact.download()

```

However, like you mentioned, there is no files in the files tab of the model. Could you share a short code snippet of how you are logging these models to `wandb`?

---

<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:** [July 30, 2023, 8:26pm UTC](https://community.wandb.ai/t/downloading-model-cant-find-model-file/4487/3 "2023-07-30T20:26:17Z")

</div>

Closed on July 30, 2023, 8:26pm UTC

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