Could not load model facebook/bart-large-mnli
Hey! I just wanted to test the facebook/bart-largemnli model but it doesn’t work and I don’t know how to fix it.The code:from transformers import pipelineclassifier = pipeline(“zero-shot-classification”, model=“facebook/bart-large-mnli”)Error message:ValueError: Could not load model facebook/bart-large-mnli with any of the following classes: (<class ‘transformers.models.auto.modeling_tf_auto.TFAutoModelForSequenceClassification’>,)What can I do? I already cleaned the disk space.Thank you a lot!
2022-12-21T11:18:28Z
I had same issue and solution to this is, you didn’t cloned the entire repository of “facebook/bart-large-mnli”. check the size of cloned repo and compare it to one given on hugging face website. Also compare both and check all the files are cloned successfully.