# Mp.spawn() and wandb

**URL:** <https://discuss.pytorch.org/t/mp-spawn-and-wandb/96283>\
**Category:** Uncategorized\
**Created:** [September 15, 2020, 12:13am UTC](https://discuss.pytorch.org/t/mp-spawn-and-wandb/96283 "2020-09-15T00:13:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dalisson\_Figueiredo](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dalisson_figueiredo/32/27561_2.png) [@Dalisson\_Figueiredo](https://discuss.pytorch.org/u/Dalisson_Figueiredo)\
**Post date:** [September 15, 2020, 12:13am UTC](https://discuss.pytorch.org/t/mp-spawn-and-wandb/96283/1 "2020-09-15T00:13:29Z")

</div>

I was wondering if anybody run into a problem while trying to train with mp.spawn() and DistributedDataParallel using two gpus (one process per gpu) where wandb gets stuck and wont allow the training to go on.

---

<div class="post-metadata">

**Author:** ![ayalaa2](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ayalaa2/32/21195_2.png) [@ayalaa2](https://discuss.pytorch.org/u/ayalaa2)\
**Post date:** [September 15, 2020, 12:44am UTC](https://discuss.pytorch.org/t/mp-spawn-and-wandb/96283/2 "2020-09-15T00:44:58Z")

</div>

Are you using wandb on both processes or just one? I would suggest having one process handle logging and collecting info from the other processes

---

<div class="post-metadata">

**Author:** ![Dalisson\_Figueiredo](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dalisson_figueiredo/32/27561_2.png) [@Dalisson\_Figueiredo](https://discuss.pytorch.org/u/Dalisson_Figueiredo)\
**Post date:** [September 15, 2020, 12:47am UTC](https://discuss.pytorch.org/t/mp-spawn-and-wandb/96283/3 "2020-09-15T00:47:36Z")

</div>

I am using init in both processes, I tried to run in a single process but it also gets stuck.
