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
Hi:
I got an error when initializing pretrained model by RobertaTokenizer. self.tokenizer = RobertaTokenizer.from_pretrained("roberta-base") self.model = RobertaForMaskedLM.from_pretrained('roberta-base')
OSError: Model name 'roberta-base' was not found in tokenizers model name list (roberta-base, roberta-large, roberta-large-mnli, distilroberta-base, roberta-base-openai-detector, roberta-large-openai-detector). We assumed 'roberta-base' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.json', 'merges.txt'] but couldn't find such vocabulary files at this path or url.
The text was updated successfully, but these errors were encountered:
Gavingx
changed the title
roberta-large not found
roberta-base not found
Apr 21, 2021
Hi:
I got an error when initializing pretrained model by RobertaTokenizer.
self.tokenizer = RobertaTokenizer.from_pretrained("roberta-base") self.model = RobertaForMaskedLM.from_pretrained('roberta-base')
OSError: Model name 'roberta-base' was not found in tokenizers model name list (roberta-base, roberta-large, roberta-large-mnli, distilroberta-base, roberta-base-openai-detector, roberta-large-openai-detector). We assumed 'roberta-base' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.json', 'merges.txt'] but couldn't find such vocabulary files at this path or url.
The text was updated successfully, but these errors were encountered: