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 7d6174a commit 906e52eCopy full SHA for 906e52e
src/lightning/fabric/utilities/cloud_io.py
@@ -56,7 +56,7 @@ def _load(
56
weights_only=weights_only,
57
)
58
if str(path_or_url).startswith("http"):
59
- if weights_only is None:
+ if weights_only is None and _TORCH_GREATER_EQUAL_2_6:
60
weights_only = True
61
log.debug(f"Default to `weights_only=True` for remote checkpoint: {path_or_url}")
62
return torch.hub.load_state_dict_from_url(
0 commit comments