OSError: HuggingFaceM4/idefics2-8b does not appear to have a file named config.json
I try to use idefics2 with the example code in its model card. I can load theHuggingFaceM4/idefics2-8b-basemodel without a problem. However, I get the following error when usingHuggingFaceM4/idefics2-8b. What could be the issue?Tried transformer version 4.40.0, 4.40.2, and 4.41.1 and encountered the same error.The full error log is attached:Traceback (most recent call last):File “/export/home/xxx.py”, line 19, inprocessor = AutoProcessor.from_pretrained(“HuggingFaceM4/idefics2-8b”)File “/root/miniconda3/envs/eval/lib/python3.10/site-packages/transformers/models/auto/processing_auto.py”, line 287, in from_pretrainedconfig = AutoConfig.from_pretrained(File “/root/miniconda3/envs/eval/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py”, line 934, in from_pretrainedconfig_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)File “/root/miniconda3/envs/eval/lib/python3.10/site-packages/transformers/configuration_utils.py”, line 632, in get_config_dictconfig_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)File “/root/miniconda3/envs/eval/lib/python3.10/site-packages/transformers/configuration_utils.py”, line 689, in _get_config_dictresolved_config_file = cached_file(File “/root/miniconda3/envs/eval/lib/python3.10/site-packages/transformers/utils/hub.py”, line 370, in cached_fileraise EnvironmentError(OSError: HuggingFaceM4/idefics2-8b does not appear to have a file named config.json. Checkout ‘https://huggingface.co/HuggingFaceM4/idefics2-8b/tree/None’ for available files.
2024-05-26T06:03:59Z
@VictorSanh@LeyoAny suggestions? Thanks!