Skip to content

Commit

Permalink
set find_unused_parameters to True for DDP
Browse files Browse the repository at this point in the history
  • Loading branch information
sangkeun00 committed Apr 9, 2023
1 parent 831b8d6 commit fe27d97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions betty/problems/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def patch_module(self):
self.module = torch.nn.parallel.DistributedDataParallel(
module=self.module,
gradient_as_bucket_view=True,
find_unused_parameters=True,
)
elif self._strategy == "fsdp":
if self.is_rank_zero():
Expand Down

0 comments on commit fe27d97

Please sign in to comment.