weights_only
default flip for torch.load
#1356
Labels
actionable
Items in the backlog waiting for an appropriate impl/fix
enhancement
New feature or request
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Describe the bug
We've flipped the default for the
weights_only
argument intorch.load
toTrue
inpytorch/pytorch
, see here for details + documentation and this is coming intorch 2.6
.This is expected to be quite a BC-breaking change, especially if any
torch.load
calls intorchchat
are not loading state_dicts of plain tensors.We should make sure that all the
torch.load
calls intorchchat
are still working.For example, this one does not explicitly set
weights_only
so might now be failing sincetorchchat
doesn't use pytorch nightlies in CIcc @Jack-Khuu
Versions
main
The text was updated successfully, but these errors were encountered: