Train in DDP Multi GPU and launch Validation on Single GPU during training #16336
Replies: 2 comments
-
Usually, we need to keep all GPUs working. Set |
Beta Was this translation helpful? Give feedback.
-
Ultralytics achieves this in their trainers script by creating the validation dataloader on rank zero only, not using distributed sampler for validation and performing the validation loop on rank 0 only. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering if there was a way to launch a validation step on a single Gpu, while training_step is on multiple gpu ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions