alan-turing-institute / ARC-LoCoMoSeT

Low-Cost Model Selection for Transformers
MIT License
1 stars 0 forks source link

`transformers` bug with `google/vit-hybrid-base-bit-384` #69

Open jack89roberts opened 10 months ago

jack89roberts commented 10 months ago

Get a key error if using AutoModelForImageClassification.from_pretrained as the config file/model definition of google/vit-hybrid-base-bit-384 defines model_type as vit-hybrid but the class mapping in transformers.models.auto.configuration_auto uses the key vit_hybrid.

Can make an issue/PR about this to transformers at some point but just leaving this here as a reminder for now.