Skip to content

Commit 4e833e2

Browse files
committed
Refactor collective functions, call training_type_plugin directly
1 parent 12d5543 commit 4e833e2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pytorch_lightning/plugins/training_type/deepspeed.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,6 @@ def setup_distributed(self):
342342

343343
self._init_deepspeed_distributed()
344344

345-
# set the ranks and devices
346-
self.dist.rank = self.global_rank
347-
self.dist.device = self.root_device
348345
if not self._config_initialized:
349346
self._format_config()
350347
self._config_initialized = True

0 commit comments

Comments
 (0)