Skip to content

Commit

Permalink
Final singlefile checkpoint saves one folder up
Browse files Browse the repository at this point in the history
Signed-off-by: Davis Wertheimer <[email protected]>
  • Loading branch information
daviswer committed Jan 14, 2025
1 parent 0e47e93 commit 292b459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fms_fsdp/utils/checkpointing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def save_single_file(
):
# Note: metadata kwargs cannot contain any of:
# (step, model)
save_name = os.path.join(self.ckp_path, "step_" + str(step) + "_ckp.pth")
save_name = os.path.join(self.ckp_path[:-12], "step_" + str(step) + "_ckp.pth")
save_time = time.time()
with FSDP.state_dict_type(
model,
Expand Down

0 comments on commit 292b459

Please sign in to comment.