Open-Source Libraries for the Small-Classifier Loop: The Right One Depends on Where Your Labels Come From
tinydistill fits LLM labels, a Label Studio stack fits human reviewers, and Parsec's open-jev fits logged outcomes. A worked cost example shows what owning the loop saves.
The open-source library that fits the whole small-classifier loop depends on who supplies the correct answers. If an LLM already makes the decision, tinydistill covers collect, relabel, retrain, evaluate and deploy with one command per step. If people review the decisions, a stack of Label Studio, cleanlab, Evidently and MLflow covers the loop, but you write the retrain trigger and the deferral logic. If your logs record actions and outcomes, Parsec's open-jev reads them directly but has no relabelling step.
The label source decides which option fits
Every loop for a small classifier repeats the same five steps. It collects production decisions, relabels the doubtful ones, retrains, evaluates the new model against the deployed one and deploys behind a confidence threshold. The tools differ mostly in where the labels in step two come from. An LLM teacher can supply them, human reviewers can supply them, or the business can supply them through outcomes such as a reassigned ticket.
The table compares the options on three points that affect the choice.
| Option | Where labels come from | What starts a retrain | Deferral of uncertain cases |
|---|---|---|---|
| tinydistill, MIT | LLM teacher, optional human labels | refresh on escalated texts |
Cascade to the LLM |
| Label Studio stack, Apache 2.0 | Human reviewers | fit on annotation events |
You write it |
| Parsec's open-jev, MIT | Logged actions and outcomes | You write it | Calibrated threshold in decide |
The table leaves out NVIDIA's distillation blueprint, which is a reference design rather than a library. It also leaves out distill-it, licensed Apache-2.0, which calls itself "early development (pre-v0.1)" and has 2 commits. No one has published a head-to-head test of these tools on the same production-decision dataset, so the benchmark numbers in each README cannot be ranked against each other.
If an LLM already makes the decision, tinydistill covers every step
tinydistill turns an LLM classification prompt into a small model that runs on a CPU. tinydistill label asks a teacher LLM to score every label, and suggest picks texts worth labelling by hand as Label Studio tasks. refresh retrains on texts that the deployed cascade sent to the LLM. eval, compare and report measure each model, and export and serve ship an ONNX model behind an HTTP endpoint.
On Banking77, the author reports that a 23 MB student reached 0.872 accuracy at 1.0 ms per text on two CPU threads. Its 4-bit Qwen2.5-7B teacher reached 0.859 on an RTX 4090. These are the author's own results. The README warns that the student inherits the teacher's mistakes, so this option fits only when the LLM's answers are good enough to copy. The repo has CI, a PyPI package, tests, a changelog and 266 commits, but 0 stars and no GitHub releases.
If people review the decisions, assemble Label Studio, cleanlab, Evidently and MLflow
This route uses four Apache-2.0 projects, each doing one part of the loop.
- Label Studio imports model predictions as pre-annotations, so reviewers correct the model instead of labelling from scratch.
- Label Studio's ML backend calls
fiton annotation events such asANNOTATION_CREATED, which can start a retrain when new labels arrive. - cleanlab flags likely label errors from a model's own predictions through
CleanLearning.find_label_issues. - Evidently turns drift tests and classification metrics into a Test Suite with pass and fail conditions, which can block a worse model.
- MLflow keeps a Model Registry and deploys models to Docker, Kubernetes, SageMaker or Azure ML.
Argilla is another open-source relabelling tool, and its v1 ArgillaTrainer trains SetFit models on reviewers' responses. Its GitHub page now says that no new features will be added, so it is a weaker base for a new loop. Whichever tool you choose, none of these projects describes a confidence threshold that defers uncertain cases to a person or an LLM.
If your logs record actions and outcomes, Parsec's open-jev reads them directly
Parsec publishes open-jev, whose openjev-sdk package fine-tunes small decision models under the MIT licence. episodes_from_traces converts OpenAI-style tool-calling logs into training data, taken= matches the logged action, and each episode carries an outcome for filtering. openjev tod evaluate reports accuracy, calibration error and Brier score, and decide(state, kind, threshold) defers any case below the threshold. On the repo's ticket-routing cookbook, team accuracy rose from 84.2% zero-shot to 97.0%. That is Parsec's own benchmark, it can be re-run from cookbooks/01-ticket-routing, and no independent re-run has been published. The run needs an NVIDIA GPU with 40 GB or more. The repo has 139 stars and CI on three operating systems, but no changelog or tagged release, and it does not mention Label Studio, Argilla or a retraining trigger.
If you need a GPU platform and a reference design, NVIDIA's blueprint shows the full flywheel
NVIDIA's distillation blueprint uses a teacher LLM's answers as labels and fine-tunes students with LoRA on NeMo Customizer. It scores them with NeMo Evaluator and serves them as NIMs. It describes itself as a reference implementation provided "as is." It needs 6 H100 or A100 GPUs for a self-hosted judge or 2 with a remote judge, and NeMo Evaluator and Customizer are under NVIDIA's own software licence.
A worked example shows that the saving shrinks as LLM prices fall
The example assumes 1,000,000 decisions a month, each with 1,000 input tokens and 10 output tokens. It also assumes that the small model defers 20% of cases to the LLM, and that the team retrains four times a month for 2 GPU-hours each run. The deferral rate and retraining time are assumptions, not measurements.
At OpenAI's list price for gpt-5-mini, of $0.25 per million input tokens and $2.00 per million output tokens, the LLM alone costs $250 plus $20, or $270 a month. With the small model in front, the 20% of deferred cases cost $54. Four retraining runs on Together's on-demand HGX H100 clusters, at $3.99 per GPU per hour, cost $31.92. The total is $85.92, a saving of $184.08 a month.
At the gpt-6-luna price of $0.10 input and $0.50 output per million tokens, the LLM alone costs $105 a month. The deferred share costs $21, and with the same $31.92 of retraining the total is $52.92. The saving falls to $52.08 a month.
Both totals leave out the server that runs the small model and the reviewers' time. At tinydistill's reported 1.0 ms per text, a million decisions take about 17 minutes of CPU time a month on the author's hardware. The reviewers' time per label has not been measured for any of these tools. At current small-model API prices, the case for owning the loop rests more on latency, control over labels and the ability to defer than on the API bill.
Sources
- tinydistill: https://github.com/Andreas-Hum/tinydistill
- distill-it: https://github.com/ShouryaKapoor/distill-it
- Label Studio: https://github.com/HumanSignal/label-studio
- Label Studio ML backend: https://github.com/HumanSignal/label-studio-ml-backend
- Argilla: https://github.com/argilla-io/argilla
- Argilla v1, Fine-tune a SetFit model using the ArgillaTrainer: https://docs.v1.argilla.io/en/latest/tutorials_and_integrations/tutorials/feedback/trainer-feedback-setfit.html
- cleanlab: https://github.com/cleanlab/cleanlab
- Evidently: https://github.com/evidentlyai/evidently
- MLflow: https://github.com/mlflow/mlflow
- open-jev README: https://github.com/daseinlabs/open-jev
- open-jev TOD SDK guide: https://github.com/daseinlabs/open-jev/blob/main/docs/tod-sdk.md
- NVIDIA AI model distillation for financial data: https://github.com/NVIDIA-AI-Blueprints/ai-model-distillation-for-financial-data
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- Together, Pricing: https://www.together.ai/pricing