Hello,
I am trying to load an autoNLP model but having an issue.
I tried loading it in a pipeline, in this way:
model = pipeline("text2text-generation", model=“PATH”)
but I am getting the following error.
ValueError: Could not load model with any of the following classes: (<class ‘transformers.models.auto.modeling_auto.AutoModelForSeq2SeqLM’>, <class ‘transformers.models.auto.modeling_tf_auto.TFAutoModelForSeq2SeqLM’>, <class ‘transformers.models.mt5.modeling_mt5.MT5ForConditionalGeneration’>, <class ‘transformers.models.mt5.modeling_tf_mt5.TFMT5ForConditionalGeneration’>).
Is it actually possible to use the pipeline function if the model is not public?
Thanks,
Antoine