#6161st of 126 in Training and fine-tuning
setfit
Few-shot text classification by fine-tuning Sentence Transformers, no prompts
Watch puts setfit on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.setfit is on your watch list. Its new releases and problems show there.
- Stars
- 2.9k
- License
- Apache-2.0
- Last commit
- Oct 2026
- Last release
- Sep 2026
- Language
- Jupyter Notebook
2,706 on 2 May 20262,874 on 28 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
SetFit fine-tunes a pretrained Sentence Transformer body plus a classification head (scikit-learn or a differentiable PyTorch SetFitHead) on a few labeled examples per class. It provides SetFitModel and Trainer classes integrated with the Hugging Face Hub for training, saving, pushing and inference. The README example trains on 8 samples per class on SST-2 and reports 0.869 accuracy.
Who it is for: ML engineers building text classifiers with very little labeled data
Strengths
- No prompts or verbalizers needed; works from embeddings of the raw text
- Trains on as few as 8 labeled examples per class
- Works with any Sentence Transformer on the Hub, including multilingual checkpoints
- Trainer and TrainingArguments API with Hub push and load, installed via pip
Weaknesses
- Text classification only; not a general LLM fine-tuning tool
- Built on Sentence Transformers, so results depend on the chosen base checkpoint
- No hardware requirements documented in the README
- README is brief; detailed guides live on the Hugging Face docs site
What it needs
- Needs sentence-transformers, datasets, scikit-learn, PyTorch, Hugging Face Hub
- Models: Sentence Transformers
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Training and fine-tuning
See all 126| Rank | Project | Score |
|---|---|---|
| #59 | automodelPyTorch-native fine-tuning and pretraining for Hugging Face LLMs, VLMs and diffusion | 61 out of 100 |
| #60 | rl-baselines3-zooTraining and tuning scripts with tuned hyperparameters for Stable Baselines3 | 60 out of 100 |
| #62 | rllmRL training framework for language agents, on any harness or sandbox | 58 out of 100 |
| #63 | easyeditPython toolkit for editing facts and behavior in LLMs without retraining | 58 out of 100 |
| #64 | gpt-neoxEleutherAI's Megatron/DeepSpeed library for pretraining large language models | 56 out of 100 |