Closed mukhal closed 4 years ago
Hmm, can you check if the published XLM-R models work?
I just tried with the same sentencepiece version and this worked for me:
>>> import torch
>>> xlmr = torch.hub.load('pytorch/fairseq', 'xlmr.large', force_reload=True)
>>> xlmr.encode('Hello world')
tensor([ 0, 35378, 8999, 2])
I run into the same problem when loading models from torch.hub. It turned out I had the wrong version of sentencepiece. Closing this isssue now.
🐛 Bug
when running
I get the following error
I am using fairseq 0.9.0 and sentencepiece 0.1.85