Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model_type 'M-CLIP' is not in CONFIG_MAPPING #19

Open
wxywb opened this issue Jul 18, 2022 · 2 comments
Open

model_type 'M-CLIP' is not in CONFIG_MAPPING #19

wxywb opened this issue Jul 18, 2022 · 2 comments

Comments

@wxywb
Copy link

wxywb commented Jul 18, 2022

from transformers import AutoConfig

kwargs = {'_from_auto': True}
pretrained_model_name_or_path = 'M-CLIP/XLM-Roberta-Large-Vit-L-14'
config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)

Hi, I installed required transformers==4.8.1, and run the above code to get following error.

    config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
  File "/anaconda3/lib/python3.9/site-packages/transformers/models/auto/configuration_auto.py", line 448, in from_pretrained
    config_class = CONFIG_MAPPING[config_dict["model_type"]]
KeyError: 'M-CLIP'

seems like model_type 'M-CLIP' is not in the CONFIG_MAPPING, can anyone help to figure it out?

@leovsferreira
Copy link

leovsferreira commented Dec 13, 2022

Have you found a solution to this problem? I'm running into the same issue

@Wenhan-Tan
Copy link

Hi, I'm having the same issue. Does anyone know a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants