Hi all,
I have a question about the integration of HF in Databricks.
I'm struggling to save the models and datasets:
For instance, for the code below, I got this error:ValueError: Could not load model nickwong64/bert-base-uncased-poems-sentiment with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForSequenceClassification'>, <class 'transformers.models.bert.modeling_bert.BertForSequenceClassification'>). See the original errors:
Does anyone know how I can solve this issue?
from transformers import pipeline
sentiment_classifier = pipeline(
task="text-classification",
model="nickwong64/bert-base-uncased-poems-sentiment",
model_kwargs={'cache_dir': '/Volumes/dsa_development/belgium_data/model_dir/hf_cache'}
)