You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
External torch.hub.load('pytorch/fairseq:main', 'xlmr.large') causes WeightsUnpickler error for PyTorch version >= 2.6.
The error occurs in the torch.load() calls in the file fairseq/checkpoint_utils.py. The error appears in PyTorch >= 2.6 as the default value for torch.load() argument weights_only was changed from False to True.