Skip to content

Commit ff0f31f

Browse files
committed
Typing fix
1 parent 1115a37 commit ff0f31f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchft/checkpointing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def load_from_address(cls, address: str, timeout: timedelta) -> T:
172172
data = f.read()
173173

174174
reader = io.BytesIO(data)
175-
# We have to set weights_only to True as there are some non-tensor
175+
# We have to set weights_only to False as there are some non-tensor
176176
# states like lr_scheduler.
177177
return torch.load(reader, weights_only=False)
178178

torchft/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def __init__(
225225
self._participating_world_size: int = 0
226226

227227
def set_state_dict_fns(
228-
self, load_state_dict: Callable[T, None], state_dict: Callable[[], T]
228+
self, load_state_dict: Callable[[T], None], state_dict: Callable[[], T]
229229
) -> None:
230230
self._load_state_dict = load_state_dict
231231
self._user_state_dict = state_dict

0 commit comments

Comments
 (0)