cannot load model with AutoModel.from_pretrained
#4
by
PedroT
- opened
python version : 3.10
transformers version: 4.37.2
from transformers import AutoModel
model_name = 'google/vit-hybrid-base-bit-384'
model = AutoModel.from_pretrained(model_name)
ValueError: The checkpoint you are trying to load has model type vit-hybrid
but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
Thanks for reporting, also reported here: https://github.com/huggingface/transformers/issues/29862.
Will be fixed soon.