Skip to content

Commit

Permalink
exist ok diag subf
Browse files Browse the repository at this point in the history
  • Loading branch information
daviswer committed Feb 6, 2025
1 parent 763f60e commit 476c5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ibm_rescaling/rescaling_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
vals = dist.tensor.DTensor.from_local(vals, mesh, placement).full_tensor()

# Diag save
os.makedirs(os.path.join(args.ckpt_path, "diag"))
os.makedirs(os.path.join(args.ckpt_path, "diag"), exist_ok=True)
torch.save(data.state_dict(), os.path.join(args.ckpt_path, "diag", f"loader_state_{rank}.pth"))
time.sleep(10)

Expand Down

0 comments on commit 476c5a6

Please sign in to comment.