Skip to content

Commit

Permalink
Update save sizes into GiB (pytorch#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
joecummings authored and rahul-sarvam committed Dec 23, 2024
1 parent 6bad322 commit 68ddd09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchtune/training/checkpointing/_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def save_checkpoint(
torch.save(state_dict[training.MODEL_KEY], output_path)
logger.info(
"Model checkpoint of size "
f"{os.path.getsize(output_path) / 1000**3:.2f} GB "
f"{os.path.getsize(output_path) / 1024**3:.2f} GiB "
f"saved to {output_path}"
)

Expand Down Expand Up @@ -819,7 +819,7 @@ def save_checkpoint(
)
logger.info(
"Adapter checkpoint of size "
f"{os.path.getsize(output_path) / 1000**3:.2f} GB "
f"{os.path.getsize(output_path) / 1024**3:.2f} GiB "
f"saved to {output_path}"
)
elif adapter_only:
Expand Down

0 comments on commit 68ddd09

Please sign in to comment.