Skip to content

Commit

Permalink
fix: don't print devices twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sehoffmann committed Jan 6, 2025
1 parent 39fd5e9 commit 1d2e783
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dmlcloud/core/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,6 @@ def pre_run(self, pipe):

diagnostics = general_diagnostics()

diagnostics += '\n* DEVICES:\n'
devices = all_gather_object(str(pipe.device))
diagnostics += '\n'.join(f' - [Rank {i}] {device}' for i, device in enumerate(devices))

diagnostics += '\n* CONFIG:\n'
diagnostics += '\n'.join(f' {line}' for line in OmegaConf.to_yaml(pipe.config, resolve=True).splitlines())

Expand Down

0 comments on commit 1d2e783

Please sign in to comment.