We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2cf0c commit dfc1f38Copy full SHA for dfc1f38
torchtitan/components/checkpoint.py
@@ -699,8 +699,10 @@ def _save_last_step(self, curr_step: int) -> None:
699
else:
700
logger.info(f"Saving a full checkpoint at last step, step {curr_step}.")
701
702
- self.save_with_gc(
703
- self.states, checkpoint_id=self._create_checkpoint_id(curr_step)
+ save_with_gc(
+ self.states,
704
+ checkpoint_id=self._create_checkpoint_id(curr_step),
705
+ hf_safetensors_format=self.enable_hf_safetensors_format,
706
)
707
708
def _should_save(self, curr_step: int, last_step: bool = False) -> bool:
0 commit comments