Run this model with HF Jobs

Run Salesforce/blip-image-captioning-large 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 to fine-tune https://huggingface.co/Salesforce/blip-image-captioning-large. 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/Salesforce/blip-image-captioning-large 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.

How do I create an Inference Endpoint with this model?

#22
by pdich2085 - opened

Hi all,
I am a newbie - so I would like to generate an inference Endpoint with this model, but everytime I try doing that I get an error saying that the repo doesn't have a "handler.py" file hence it won't work.
I know that I can create my own custom "handler.py" file, but when I do I get all sort of errors in the repo - mainly is because I am not sure how to include all other pytorch bin files that are needed in the repo.

Any help is highly appreciated.

Thank you.

Paulo

Hi @pdich2085
A while back, @florentgbelidji made an endpoint using HF implementation here: https://huggingface.co/florentgbelidji/blip_vqa/tree/main
Can you adapt it to use the image captioning model and let us know how it goes?

Sign up or log in to comment