Skip to content

Commit dfc1f38

Browse files
committed
fix
1 parent 8f2cf0c commit dfc1f38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

torchtitan/components/checkpoint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,10 @@ def _save_last_step(self, curr_step: int) -> None:
699699
else:
700700
logger.info(f"Saving a full checkpoint at last step, step {curr_step}.")
701701

702-
self.save_with_gc(
703-
self.states, checkpoint_id=self._create_checkpoint_id(curr_step)
702+
save_with_gc(
703+
self.states,
704+
checkpoint_id=self._create_checkpoint_id(curr_step),
705+
hf_safetensors_format=self.enable_hf_safetensors_format,
704706
)
705707

706708
def _should_save(self, curr_step: int, last_step: bool = False) -> bool:

0 commit comments

Comments
 (0)