Hello,
I am trying to run image classification through Hugging Face’s own inference provider. I was able to run different models classifying images recently, but as of yesterday I keep getting an error when running my code on any image classification model:
HTTP Error 410 error: The requested model is deprecated and no longer supported by provider hf-inference
I am calling the api endpoint “/static-proxy?url=https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2F%E2%80%9D%3C%2Fa%3E. All the models I have tried have HF-INFERENCE listed as a current inference provider. The website model pages’ sample widget returns the same error when I upload a test image for classification.
Similar issue: Inference API stopped working
Help : /
1 Like
I was able to reproduce that error both from the GUI and from the client, but I don’t know whether these models were actually intentionally deprecated or if they’ll be brought back.
What that 410 “model is deprecated” error usually means
Hugging Face now has two related (but different) “410 Gone” situations:
-
Legacy Inference API shutdown (old domain)
If something is still calling /static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2F...%3C%2Fcode%3E%2C Hugging Face returns 410 and tells you to move to the router (router.huggingface.co). This is widely reported across libraries and integrations. (Hugging Face Forums)
-
Model not served by a specific provider anymore (your case)
You are already calling the router with the HF Inference provider:
/static-proxy?url=https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2F%26lt%3BMODEL_ID%26gt%3B%3C%2Fcode%3E%3C%2Fp%3E
The message:
“The requested model is deprecated and no longer supported by provider hf-inference”
means: HF Inference (the provider) has stopped serving that model (or stopped serving it in the way you’re requesting), even if the model repo still exists on the Hub.
This matches how the “new” router world works: a provider serves a catalog, not “every model on the Hub.” Users forcing hf-inference will get errors for models outside that catalog (404/410 are common patterns). (Hugging Face)
Yeah, it seems super weird that all image classification models would be deprecated at once, especially the more popular industry models:
- apple/mobilevit-small
- microsoft/resnet-50
- facebook/convnext-large-224
I can’t find any updates on the Hugging Face blogs or other community pages about this… so I am guessing there must be something going on.
1 Like