Endpoint compilation error "Unrecognized model in repository"
I am receiving an unusual error when trying to build an endpoint for the “yiyanghkust/finbert-tone” model. I’ve tried compiling multiple endpoints using different cloud services and gpu/cpu sizes all of which have failed presumably due to the following error in the logs:“ValueError: Unrecognized model in /repository. Should have amodel_typekey in its config.json, or contain one of the following strings in its name”Not sure why this is happening as I am simply trying to use it out of the box with zero customization.Any help would be appreciated greatly!
2023-02-16T07:40:24Z
Hello@ldeb,Yes, theconfig.jsonis missing a parameter formodel_typeto load it with theAutoModelclass correctly. I opened a PR in November to fix this:yiyanghkust/finbert-tone · add missing model typeThe easist would be if you “duplicate” the repository withRepo_duplicator - a Hugging Face Space by osansevieroand make the change yourself too