This is a SetFit model that can be used for Text Classification on CPU.
The model has been trained using an efficient few-shot learning technique.
1from setfit import SetFitModel
2
3model = SetFitModel.from_pretrained("phospho-small-46f5c4e")
4
5outputs = model.predict(["This is a sentence to classify", "Another sentence"])
6# tensor([1, 0])
Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren (2022). Efficient Few-Shot Learning Without Prompts.