Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress authored Dec 17, 2024
1 parent 9103dbd commit 3a7c0f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ def _save_checkpoint(
dist.barrier()

if dist.get_global_rank() == 0:
assert new_model_instance is not None
if upload_to_save_folder:
# This context manager casts the TE extra state in io.BytesIO format to tensor format
# Needed for proper hf ckpt saving.
Expand Down

0 comments on commit 3a7c0f1

Please sign in to comment.