Open SiyaoZheng opened 3 years ago
model_name="vicgalle/xlm-roberta-large-xnli-anli"
tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForSequenceClassification.from_pretrained(model_name)
IndexError Traceback (most recent call last)
Same here for a xlm-roberta-base sentiment analysis model.
xlm-roberta-base
Did anyone managed to solve this problem with xlm-roberta-base?
Is it working for the facebook/bart-large-mnli model
model_name="vicgalle/xlm-roberta-large-xnli-anli"
tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForSequenceClassification.from_pretrained(model_name)
IndexError Traceback (most recent call last)