Neural-Semi-Supervised-Learning-for-Text-Classification icon indicating copy to clipboard operation
Neural-Semi-Supervised-Learning-for-Text-Classification copied to clipboard

roberta-base not found

Open Gavingx opened this issue 4 years ago • 0 comments

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.

Gavingx avatar Apr 21 '21 10:04 Gavingx