# Wandb agent creates new IDs instead of using the ID provided

**URL:** <https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097>\
**Category:** W&B Help\
**Created:** [September 19, 2023, 9:48am UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097 "2023-09-19T09:48:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![liutiming](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@liutiming](https://community.wandb.ai/u/liutiming)\
**Post date:** [September 19, 2023, 9:48am UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/1 "2023-09-19T09:48:00Z")

</div>

in wandb, why is it creating a new sweep id `grj782il` and not using the ID `qmi88fp4 `?

```auto
CUDA_VISIBLE_DEVICES=4 wandb agent organisation_name/sweep_project/qmi88fp4                                                                    
wandb: Starting wandb agent 🕵️                                                                 
2023-09-17 17:33:59,952 - wandb.wandb_agent - INFO - Running runs: []                         
2023-09-17 17:34:00,599 - wandb.wandb_agent - INFO - Agent received command: run              
2023-09-17 17:34:00,599 - wandb.wandb_agent - INFO - Agent starting run with config:          
        batch_size: 8                                                                         
        densenet_depth: 121                                                                   
        lr: 0.0001                                                                            
        n_epochs: 10                                                                          
2023-09-17 17:34:00,601 - wandb.wandb_agent - INFO - About to run command: /usr/bin/env python
 3d_training.py --batch_size=8 --densenet_depth=121 --lr=0.0001 --n_epochs=10                 
2023-09-17 17:34:05,612 - wandb.wandb_agent - INFO - Running runs: ['ofr52kq1']               
Create sweep with ID: grj782il                                                                
Sweep URL: https://wandb.ai/organisation_name/sweep_project/sweeps/grj782il 

```

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [September 21, 2023, 8:23pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/2 "2023-09-21T20:23:00Z")

</div>

Hi @liutiming !

Thank you for writing in!

Could you please talk a bit about your experiment setup? Are you interested in resuming your previous sweep? Are you changing your sweep config in between ending your old one and starting a new one?

Warmly,  
Artsiom

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [September 25, 2023, 9:12pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/3 "2023-09-25T21:12:42Z")

</div>

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

Cheers!

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [September 27, 2023, 6:13pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/4 "2023-09-27T18:13:31Z")

</div>

Hi @liutiming , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

Warmly,  
Artsiom

---

<div class="post-metadata">

**Author:** ![liutiming](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@liutiming](https://community.wandb.ai/u/liutiming)\
**Post date:** [September 28, 2023, 4:49pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/5 "2023-09-28T16:49:05Z")

</div>

> [@artsiom](#):
>
> you we are going to close this request. If you would like to re-open the conversation, please let us know!

Thank you @artsiom! Sorry I did not get email notification on this.

The command is as `CUDA_VISIBLE_DEVICES=4 wandb agent organisation_name/sweep_project/qmi88fp4`. What I am hoping to achieve with this command is to use another GPU to contribute to sweep `qmi88fp4`, but the output shows that instead of creating runs under `qmi88fp4`, the command created a new sweep with ID `grj782il`

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [October 2, 2023, 9:29pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/6 "2023-10-02T21:29:26Z")

</div>

Gotcha, so you are interested in being able to use multiple GPUs to on one single run instead of multiple different runs?

Are you launching a sweep, and then trying to connect a gpu to it, or are you trying to launch a sweep with 2 gpus from the beginning?

---

<div class="post-metadata">

**Author:** ![liutiming](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@liutiming](https://community.wandb.ai/u/liutiming)\
**Post date:** [October 3, 2023, 8:20am UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/7 "2023-10-03T08:20:31Z")

</div>

> [@liutiming](#):
>
> CUDA\_VISIBLE\_DEVICES=4 wandb agent organisation\_name/sweep\_project/qmi88fp4

Thanks @artsiom If this is the command, then I think it is connecting a GPU to a newly lauched sweep run, but it should uses the existing sweep config and ID?

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [October 6, 2023, 8:14pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/8 "2023-10-06T20:14:09Z")

</div>

Thank you for your swift response!

The command should look something like this:  
`CUDA_VISIBLE_DEVICES=4 wandb agent sweep_ID`

Could you send me a link to the project and a sweep you are trying to launch using distributed resources?

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [October 10, 2023, 10:10pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/9 "2023-10-10T22:10:32Z")

</div>

Hi there, I wanted to follow up on this request!

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [October 13, 2023, 3:15pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/10 "2023-10-13T15:15:06Z")

</div>

Hi, since we have not heard back from you, we are going to close this request. If you would like to reopen the conversation, please let us know! Unfortunately, at the moment, we do not receive notifications if a thread reopens on Discourse. So, please feel free to create a new ticket regarding your concern if you’d like to continue the conversation.

---

<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:** [December 12, 2023, 3:15pm UTC](https://community.wandb.ai/t/wandb-agent-creates-new-ids-instead-of-using-the-id-provided/5097/11 "2023-12-12T15:15:32Z")

</div>

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