Using setfit with the Hugging Face API
Hi, thank you so much for this amazing library!
I have trained my model and pushed it to the Hugging Face hub.
Since the output is a text-classification task, and the model card uploaded is for the sentence transformers, how should I use the model to run the classification model through the Hugging Face API?
Thank you!
Hi @kwen1510 thanks the kind words 🤗 !
We have a PR to fix the model card in #252 which will clean up some of the confusion about sentence-transformers vs setfit.
Would you mind clarifying a bit what you mean by "Hugging Face API"? Are you referring to the Inference API / widget one sees on the model page?
To add on to Lewis' comment: If you are looking for a tutorial on how a SetFit text classificatrion model can be deployed on Hugging Face Inference Endpoints API, then I would like to point you to a great workshop that covers exactly that (among other things). See the timestamped livestream here: https://youtu.be/FKsARHV3ZTI?t=3313.
- Tom Aarsen
@lewtun thanks for the reply! I am referring to both the Inference API and the widget that we see on the model page.
@tomaarsen thank you for the link! I will check it out!
Happy new year to both of you!