BC-Breaking Change: torch.load is being flipped to use weights_only=True by default in the nightlies after #137602
TL;DR After warning of this change since version 2.4, #137602 has been merged which will change the default for the weights_only argument of torch.load from False to True in the nightlies (and version >= 2.6). See this note on torch.load with weights_only=True for a summary what weights_only=True does and all utilities related to weights_only. Background By default, torch.load uses weights_only=False which uses the pickle module provided by Python. This is inherently unsafe as the pickle module...
PyTorch Developer Mailing List