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.

Model is incompatible with Inference Endpoints

#23
by sebbyjp - opened
2024/04/18 15:56:07 ~   File "/usr/local/lib/python3.10/dist-packages/transformers/models/auto/configuration_auto.py", line 1130, in from_pretrained
2024/04/18 15:56:07 ~     raise ValueError(
2024/04/18 15:56:07 ~ ValueError: The checkpoint you are trying to load has model type `idefics2` 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.
- 2024-04-18T19:56:07.898+00:00 
2024/04/18 15:56:07 ~ Application startup failed. Exiting.

Has the transformer version on the Inference Endpoints not been updated?

hi @sebbyjp
let me circle back. transformers 4.40.0 was released just a few hours ago.

Hi @sebbyjp ,
Here's the answer from the team:

We don't support multimodal pipelines in the toolkit wihtout a custom handler. So they need to create a handler.py and can add a requirements.txt.
They should see this warning message before deploying, that references the need for a custom handler

hfe message.png

reference doc: https://huggingface.co/docs/inference-endpoints/guides/custom_handler

Sign up or log in to comment