Skip to content

Commit

Permalink
enable ddp find_unused_parameterse
Browse files Browse the repository at this point in the history
  • Loading branch information
yurujaja committed Oct 27, 2024
1 parent 3fdd72b commit 644f015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pangaea/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def main(cfg: DictConfig) -> None:
)
decoder.to(device)
decoder = torch.nn.parallel.DistributedDataParallel(
decoder, device_ids=[local_rank], output_device=local_rank
decoder, device_ids=[local_rank], output_device=local_rank, find_unused_parameters=True
)
logger.info(
"Built {} for with {} encoder.".format(
Expand Down

0 comments on commit 644f015

Please sign in to comment.