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'
See the discussion here: https://huggingface.co/Alibaba-NLP/gte-multilingual-reranker-base/discussions/12
That discussion isn't helpful. I have the same issue.
The main branch file has been updated to fix this problem.
NghiemAbe
changed discussion status to
closed