Skip to content

Commit

Permalink
removing useless prints
Browse files Browse the repository at this point in the history
  • Loading branch information
jkobject committed Jan 16, 2025
1 parent 26c3937 commit 76ceb58
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions rank_0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rank 0 completed test epoch
1 change: 1 addition & 0 deletions rank_1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rank 1 completed test epoch
3 changes: 0 additions & 3 deletions scprint/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,6 @@ def on_validation_epoch_end(self):
if torch.distributed.is_initialized():
# Set a timeout that's longer than your test typically takes
# Write rank to file for debugging
rank = torch.distributed.get_rank()
with open(f"rank_{rank}.txt", "a") as f:
f.write(f"Rank {rank} completed test epoch\n")
self.trainer.strategy.barrier()

def test_step(self, *args, **kwargs):
Expand Down

0 comments on commit 76ceb58

Please sign in to comment.