Error deploy on inference endpoints
KeyError: "Unknown task image-text-to-text, available tasks are ['audio-classification', 'automatic-speech-recognition', 'depth-estimation', 'document-question-answering', 'feature-extraction', 'fill-mask', 'image-classification', 'image-feature-extraction', 'image-segmentation', 'image-to-image', 'image-to-text', 'mask-generation', 'ner', 'object-detection', 'question-answering', 'sentiment-analysis', 'summarization', 'table-question-answering', 'text-classification', 'text-generation', 'text-to-audio', 'text-to-speech', 'text2text-generation', 'token-classification', 'translation', 'video-classification', 'visual-question-answering', 'vqa', 'zero-shot-audio-classification', 'zero-shot-classification', 'zero-shot-image-classification', 'zero-shot-object-detection', 'translation_XX_to_YY']"
Hi @yongyi169 ,
Getting an error because the task image-text-to-text
is not among the tasks currently supported by Hugging Face Inference Endpoints. The paligemma2-10b-pt-896 model appears to perform image-to-text
generation based on the image and optional text input. So, the task you should specify for this functionality is likely image-to-text
, which corresponds to generating text based on image inputs.
So, please update endpoint deployment script to as shown below:
"model": "google/paligemma2-10b-pt-896",
"task": "image-to-text"
Thank you.