Multi-gpu improvements (#799)

* initial commit

* minor changes

* small changes

* ddp seems to be working

* remove commented out code
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-10-20 01:11:40 -07:00
1 parent 863fc77ab5
commit 6f4fb506e2
8 files changed
+93 -107

No files matched your search

+1 -3
View File
@@ -227,9 +227,7 @@ class VanillaPipeline(Pipeline):
self.world_size = world_size
if world_size > 1:
self._model = typing.cast(
Model, typing.cast(Model, DDP(self._model, device_ids=[local_rank], find_unused_parameters=True))
)
self._model = typing.cast(Model, DDP(self._model, device_ids=[local_rank], find_unused_parameters=True))
dist.barrier(device_ids=[local_rank])
@property