huggingface/setfit
Efficient few-shot learning with Sentence Transformers
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.
Stars
2,699
Forks
255
Language
Jupyter Notebook
License
Apache-2.0
Category
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.
Related tools
YujiaBao/Distributional-Signatures
"Few-shot Text Classification with Distributional Signatures" ICLR 2020
zhongyuchen/few-shot-text-classification
Few-shot binary text classification with Induction Networks and Word2Vec weights initialization
ELM-Research/ECG-Language-Models
A Training and Evaluation Framework for ECG-Language Models (ELMs)
StefanHeng/ECG-Representation-Learning
Self-supervised pre-training for ECG representation with inspiration from transformers & computer vision
cloudera/CML_AMP_Few-Shot_Text_Classification
Perform topic classification on news articles in several limited-labeled data regimes.