huggingface/setfit

Efficient few-shot learning with Sentence Transformers

64
/ 100
Established

SetFit helps you quickly train highly accurate text classification models, even if you only have a few labeled examples per category. You provide a small set of text examples with their correct categories, and it outputs a model that can automatically classify new, unseen texts. This is ideal for machine learning engineers and data scientists working with limited data.

2,699 stars. Used by 3 other packages. Available on PyPI.

Use this if you need to classify text and have very little labeled data, want fast training and inference, and prefer to avoid complex prompt engineering.

Not ideal if you have a very large, well-labeled dataset, as other methods might offer marginal gains in accuracy.

text-classification natural-language-processing few-shot-learning sentiment-analysis data-labeling
Maintenance 6 / 25
Adoption 13 / 25
Maturity 25 / 25
Community 20 / 25

How are scores calculated?

Stars

2,699

Forks

255

Language

Jupyter Notebook

License

Apache-2.0

Last pushed

Dec 11, 2025

Commits (30d)

0

Dependencies

7

Reverse dependents

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/huggingface/setfit"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.