JeffyBench

Local LLMs, decision models, few-shot classifiers, and bag-of-words models. On structured classification, a trained embedding + logistic regression beats them all. The more classes, the bigger the gap.

94.3%
Jeffy on 77 classes
85.9%
Best competitor (77 cls)
130x
Faster (banking77)
15
Competitors tested

Correction, 26 Oct 2026: we re-ran our own baselines and they were too weak

The SetFit and FastText numbers published here on 11 Oct did not reproduce. They were misconfigured in our favour, and the corrected numbers are much stronger:

So the lead on banking77 is 8.4 points, not 40. The charts below use the corrected numbers. The cause was publishing results with no runner script, so for two weeks nobody could re-run them, including us. Full detail and the rules adopted since: benchmarks/CHANGELOG.md · the runner · the results file

Accuracy vs. speed

Every model on two axes at once. Up is more accurate, left is faster, so the top-left corner is where you want to be. Latency is a log scale, because the spread runs from a tenth of a millisecond to seventeen seconds.

The budgets are not equal, and that matters. SetFit's contrastive training is quadratic in training-set size, so it gets 1,540 banking77 examples (20 per class) where Jeffy gets 10,003. Comparing those two confuses "does adapting the encoder help" with "does more data help". Run Jeffy's frozen head at SetFit's own budget, stratified over 5 seeds, and it scores 91.5% against SetFit's 85.0%, training in seconds rather than 982. At 5 examples per class it already reaches 85.9%, above SetFit's 20-shot number. Caveat: different encoder and test subset from the rows below, so treat it as a strong signal rather than a benchmark row (data, script)
Read the corners. The big LLMs sit far right: slow, and on 77 classes not even accurate. FastText is the fastest thing here by two orders of magnitude and, tuned, it is genuinely competitive on accuracy, but it ships an 800 MB model for one task. Jeffy and SetFit sit upper-left, and Jeffy serves all 70 heads from one shared encoder. Jev is close on both axes and is a hosted API, so your text leaves your machine and you pay per call.

Accuracy vs. number of classes

On binary sentiment (2 classes), Jev leads at 96%, with LLMs and GLiNER close behind. By 4 classes Jeffy pulls ahead. At 77, everything else collapses.

The crossover: Between 2 and 4 classes, Jeffy overtakes every LLM and decision model tested. By 77 classes, even Jev, the leading hosted decision model, scores 80% vs Jeffy's 94.3%. Open-source decision models fare worse: GLiNER 56%, Laya 38%. The two trained classifiers hold up far better than the rest: tuned FastText 85.9% and SetFit 85.0%, which is an 8.4 point gap rather than a collapse.

Latency: wall-clock p50

On banking77, the hardest task. Jeffy runs on CPU; LLMs via Ollama; Jev via hosted API; others via Python APIs.

118ms
Jeffy (local, CPU)
134ms
Jev (hosted API, 80%)

Full results by task

16 models: Jeffy, 10 LLMs (0.5B–32B via Ollama), 3 decision models (Jev, Laya, GLiNER2.5), SetFit, and FastText. 3 tasks, 100 samples each. LLMs prompted zero-shot at temperature 0. Jev via hosted API. Decision models given the label set at call time. FastText trained on the same split as Jeffy; SetFit on 20 examples per class, because its contrastive stage is quadratic in training-set size. Classifier baselines are benchmark v2 (2026-10-26); LLM and decision-model rows are v1.

Every test sample

Each square is one test sample. Green = correct, red = wrong. Hover for the input text, expected label, and prediction. Watch how the green squares disappear as class count grows — for LLMs and other classifiers.

Correct Wrong

Jeffy benchmark suite

13 tasks spanning 2 to 151 classes, all on held-out test sets.

TaskClassesAccuracyLatency p50

Run it yourself

JeffyBench is a reproducible benchmark. Clone the repo, install, and verify every number.

# Install Jeffy
pip install jeffy-classify datasets

# Pull the LLM you want to test
ollama pull phi4

# Run the full benchmark
python benchmarks/jeffybench.py --models phi4,mistral,llama3.1

# Or test on a single task
python benchmarks/jeffybench.py --tasks banking77 --models phi4

# Results are printed as tables and saved to JSON