# Wandb tracker run and project specifier

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-tracker-run-and-project-specifier%2F19401%3E%5C
**Category:** 🤗Accelerate\
**Created:** [June 20, 2022, 10:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-tracker-run-and-project-specifier%2F19401 "2022-06-20T22:08:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aclifton314](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aclifton314/32/55465_2.png) [@aclifton314](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Faclifton314)%5C
**Post date:** [June 20, 2022, 10:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-tracker-run-and-project-specifier%2F19401%2F1 "2022-06-20T22:08:15Z")

</div>

When not using the HF accelerate library, I can control the project and run name in wandb in the following way:

```python
wandb.init(project='my_research')
wandb.run.name = 'dogs_are_awesome_' + str(experiment_number) 

```

Is there a way to do this using the experiment tracker objects in Accelerate?

---

<div class="post-metadata">

**Author:** ![morgan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/morgan/32/2293_2.png) [@morgan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmorgan)%5C
**Post date:** [June 22, 2022, 10:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-tracker-run-and-project-specifier%2F19401%2F2 "2022-06-22T10:02:23Z")

</div>

Not sure about Accelerate, but if there is a wandb process running on your machine you can probably still just call `wandb.run.name`, without having to use the Accelerate experiment tracker object

---

<div class="post-metadata">

**Author:** ![muellerzr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/muellerzr/32/21583_2.png) [@muellerzr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmuellerzr)%5C
**Post date:** [June 23, 2022, 8:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-tracker-run-and-project-specifier%2F19401%2F3 "2022-06-23T20:21:41Z")

</div>

> [@aclifton314](#):
>
> Is there a way to do this using the experiment tracker objects in Accelerate?

Assuming that wandb is the only tracker, you can do:

```python
accelerate = Accelerator(log_with="wandb")
accelerate.init_trackers("my_research")

accelerate.trackers[0].run.name = f'dogs_are_awesome_{experiment_number}'

```

@morgan do we think that it should be easier to access `.run` in the wandb tracker specifically in Accelerate? (do people modify/use it often?)

---

<div class="post-metadata">

**Author:** ![morgan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/morgan/32/2293_2.png) [@morgan](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmorgan)%5C
**Post date:** [June 23, 2022, 9:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-tracker-run-and-project-specifier%2F19401%2F4 "2022-06-23T21:17:37Z")

</div>

Yeah I think so, i do see it used for things like the above that it would be handy to have easy access to it

---

<div class="post-metadata">

**Author:** ![aclifton314](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aclifton314/32/55465_2.png) [@aclifton314](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Faclifton314)%5C
**Post date:** [June 27, 2022, 3:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-tracker-run-and-project-specifier%2F19401%2F5 "2022-06-27T15:36:29Z")

</div>

@morgan@muellerzr to give you an idea of my usecase, being able to change the run name helps me when running multiple experiments. Basically, I read in several config json files and I associate those files with the run name. That way when I launch wandb I can track the config file and respective experiment.

Thanks for the response!
