Skip to content

Commit

Permalink
Time for other ranks to save
Browse files Browse the repository at this point in the history
  • Loading branch information
daviswer committed Feb 6, 2025
1 parent a34a5fc commit 763f60e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/ibm_rescaling/rescaling_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
# Diag save
os.makedirs(os.path.join(args.ckpt_path, "diag"))
torch.save(data.state_dict(), os.path.join(args.ckpt_path, "diag", f"loader_state_{rank}.pth"))
time.sleep(10)

# Perform data coverage check on rank 0 only
if rank == 0:
Expand Down

0 comments on commit 763f60e

Please sign in to comment.