Skip to content

Commit

Permalink
Made printing for DDP init debug only
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomDefaultUser committed May 2, 2024
1 parent 36e626c commit d9c7a73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mala/common/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,8 @@ def use_ddp(self):
@use_ddp.setter
def use_ddp(self, value):
if value:
print("initializing torch.distributed.")
if self.verbosity > 1:
print("Initializing torch.distributed.")
# JOSHR:
# We start up torch distributed here. As is fairly standard
# convention, we get the rank and world size arguments via
Expand Down
4 changes: 2 additions & 2 deletions mala/datahandling/data_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def __build_datasets(self):
self.descriptor_calculator,
self.target_calculator,
self.use_ddp,
self.parameters._configuration["device"]
self.parameters._configuration["device"],
)
)
self.validation_data_sets.append(
Expand All @@ -652,7 +652,7 @@ def __build_datasets(self):
self.descriptor_calculator,
self.target_calculator,
self.use_ddp,
self.parameters._configuration["device"]
self.parameters._configuration["device"],
)
)

Expand Down

0 comments on commit d9c7a73

Please sign in to comment.