Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchtitan/components/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _get_state_dict(self) -> dict[str, Any]:
return state_dict

def state_dict(self) -> dict[str, Any]:
return self.cache_state_dict
return self._get_state_dict()

def load_state_dict(self, state_dict: dict[str, Any]) -> None:
func = functools.partial(
Expand Down