Skip to content

Commit

Permalink
fix logging in multigpu training
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Jul 20, 2024
1 parent b348ee6 commit 95e5a82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/water_train_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def main():
correlation=3,
max_L=1,
num_channels=16,
max_num_epochs=20,
swa=False,
)

train, valid = data.split(0.9, shuffle=True)
Expand Down
2 changes: 1 addition & 1 deletion psiflow/models/mace_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def run(rank: int, args: argparse.Namespace, world_size: int) -> None:

# Setup
tools.set_seeds(args.seed)
tools.setup_logger(level=args.log_level, tag=tag, directory=args.log_dir)
tools.setup_logger(level=args.log_level, tag=tag, directory=args.log_dir, rank=rank)
try:
logging.info(f"MACE version: {mace.__version__}")
except AttributeError:
Expand Down

0 comments on commit 95e5a82

Please sign in to comment.