error load model

#13
by NghiemAbe - opened

Hello, when I load the model, I have this error, can you help me fix it?

Traceback (most recent call last):
  File "/home/tungnk/workings/nvn/soict/soict2024/src/dummy.py", line 100, in <module>
    model = AutoModelForSequenceClassification.from_pretrained(
  File "/home/tungnk/miniconda3/envs/vit5/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 559, in from_pretrained
    return model_class.from_pretrained(
  File "/home/tungnk/miniconda3/envs/vit5/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3792, in from_pretrained
    if metadata.get("format") == "pt":
AttributeError: 'NoneType' object has no attribute 'get'

That discussion isn't helpful. I have the same issue.

Alibaba-NLP org

The main branch file has been updated to fix this problem.

NghiemAbe changed discussion status to closed

Sign up or log in to comment