Run this model with HF Jobs

Run HuggingFaceM4/idefics-9b 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/idefics-9b. 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/idefics-9b 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/idefics-9b. 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/idefics-9b. 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.

replicating evaluation?

#5
by dribnet - opened

Thanks for this amazing project. I'm looking into replicating a subset of the evaluations shown on the model card. Is the code used to run these evals and generate these graphs available somewhere?

I'm actually not interested in replicating the full eval suite, but thought it would be prudent when fine tuning to determine if this is hurting performance elsewhere. So my thought it to adopt some of the key evaluation metrics on a smaller subset of the datasets (eg: maybe VQA-v2 and ImageNet-1k) and run it before and after - or maybe even periodically during the fine tuning process.

Hi!
At the present moment, our codebase to train and evaluate is not public.
There are plans to make it public although the team needs to take a break ;)
Happy to help if you are reproducing the numbers independently of the codebase!
For vqa, we used the open-ended evaluation meaning that we let the model generate a free form text, and use that as generated answer.
For imagenet, we use rank evaluation meaning that we score all 1_000 possibilities via log-probability under the model, and chose as prediction the option with the highest score.

Sign up or log in to comment