Skip to content

Commit

Permalink
Update content/support/where_are_artifacts_downloaded_and_how_can_i_c…
Browse files Browse the repository at this point in the history
…ontrol_that.md

Co-authored-by: Matt Linville <[email protected]>
  • Loading branch information
luisbergua and mdlinville authored Feb 6, 2025
1 parent f601a75 commit 430dbb2
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ tags:
- environment variables
---

By default, artifacts download to the `artifacts/` folder. You can change this by:
By default, artifacts download to the `artifacts/` folder. To change the location:

```python
wandb.Artifact().download(root="<path_to_download>")
```
- Pass it to [`wandb.Artifact().download`]({{< relref "/ref/python/public-api/api.md" >}}):

Or by setting an environment variable:
```python
wandb.Artifact().download(root="<path_to_download>")
```

```python
import os
os.environ["WANDB_ARTIFACT_DIR"] = "<path_to_download>"
```
- Set the `WANDB_ARTIFACT_DIR` [environment variable]({{< relref "/guides/track/environment-variables.md" >}}):

```python
import os
os.environ["WANDB_ARTIFACT_DIR"] = "<path_to_download>"
```

0 comments on commit 430dbb2

Please sign in to comment.