Skip to content

Commit 4050014

Browse files
committed
lint
1 parent 83ff853 commit 4050014

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

torchtitan/components/checkpoint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class AsyncMode(str, enum.Enum):
5252
# For now, we will manually pop the freqs_cis buffer, as we made this permanent
5353
# temporarily and we don't want to include it in the exported state_dict.
5454
# Context: https://github.com/pytorch/torchtitan/blob/main/torchtitan/models/llama3/model.py#L404
55-
excluded_parameters_for_model_only = {"freqs_cis"}
55+
excluded_parameters_for_model_only = {}
5656

5757

5858
class ModelWrapper(Stateful):
@@ -633,7 +633,8 @@ def _save_last_step(self, curr_step: int) -> None:
633633
logger.info(f"Saving a full checkpoint at last step, step {curr_step}.")
634634

635635
save_with_gc(
636-
self._flattend_model_states_sd(), checkpoint_id=self._create_checkpoint_id(curr_step)
636+
self._flattend_model_states_sd(),
637+
checkpoint_id=self._create_checkpoint_id(curr_step),
637638
)
638639

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

0 commit comments

Comments
 (0)