Run this model with HF Jobs

Run HuggingFaceM4/idefics2-8b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/HuggingFaceM4/idefics2-8b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/HuggingFaceM4/idefics2-8b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/HuggingFaceM4/idefics2-8b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/HuggingFaceM4/idefics2-8b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

OSError: HuggingFaceM4/idefics2-8b does not appear to have a file named config.json.

#60
by zzxslp - opened

I try to use idefics2 with the example code in this model card. I can load the HuggingFaceM4/idefics2-8b-base model without a problem. However, I get the following error when using HuggingFaceM4/idefics2-8b. What could be the issue?

The full error log is attached:

Traceback (most recent call last):
File "/export/home/xxx.py", line 19, in
processor = 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_pretrained
config = AutoConfig.from_pretrained(
File "/root/miniconda3/envs/eval/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 934, in from_pretrained
config_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_dict
config_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_dict
resolved_config_file = cached_file(
File "/root/miniconda3/envs/eval/lib/python3.10/site-packages/transformers/utils/hub.py", line 370, in cached_file
raise 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.

hi @zzxslp
i am not able to reproduce, can you say more about your transformers and huggingface_hub versions?

Hi, turns out I have an empty local folder ./HuggingFaceM4/idefics2-8b created by mistake :-)
Problem solved, thanks!

zzxslp changed discussion status to closed

Sign up or log in to comment