Text Classification
Transformers
Safetensors
ONNX
multilingual
modernbert
routing
llm-routing
prompt-classification
complexity-estimation
text-embeddings-inference
Instructions to use scombat/s1d1-router with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scombat/s1d1-router with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="scombat/s1d1-router")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("scombat/s1d1-router") model = AutoModelForSequenceClassification.from_pretrained("scombat/s1d1-router", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
library_name: transformers
|
|
|
|
| 4 |
base_model: jhu-clsp/mmBERT-base
|
| 5 |
base_model_relation: finetune
|
| 6 |
inference: false
|
|
@@ -13,6 +14,7 @@ tags:
|
|
| 13 |
- text-classification
|
| 14 |
- complexity-estimation
|
| 15 |
- modernbert
|
|
|
|
| 16 |
- multilingual
|
| 17 |
---
|
| 18 |
|
|
@@ -323,6 +325,24 @@ repository: judge files, classifier files, `bench run`, `bench report`.
|
|
| 323 |
|
| 324 |
*The same agreement for every candidate and witness, with the judges' ceiling (mean and per judge) and the floors (length, constant, random).*
|
| 325 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 326 |
## Limitations (read before relying on it)
|
| 327 |
|
| 328 |
- **Labels are model judgments.** The router learns the judge's idea of complexity, with its noise (11.5 % of the 200
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
library_name: transformers
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
base_model: jhu-clsp/mmBERT-base
|
| 6 |
base_model_relation: finetune
|
| 7 |
inference: false
|
|
|
|
| 14 |
- text-classification
|
| 15 |
- complexity-estimation
|
| 16 |
- modernbert
|
| 17 |
+
- onnx
|
| 18 |
- multilingual
|
| 19 |
---
|
| 20 |
|
|
|
|
| 325 |
|
| 326 |
*The same agreement for every candidate and witness, with the judges' ceiling (mean and per judge) and the floors (length, constant, random).*
|
| 327 |
|
| 328 |
+
Agreement with the judges' median (`truth_all`) on the 360 prompts, 95 % intervals by bootstrap over the 90 base prompts;
|
| 329 |
+
"exact tier" is the share of prompts whose tier is the median's (`s1d1-bench`, `report/base-v1/tables`):
|
| 330 |
+
|
| 331 |
+
| candidate | QWK [95 % CI] | exact tier [95 % CI] |
|
| 332 |
+
|---|---|---|
|
| 333 |
+
| s1d1 full int8 | 0.807 [0.734; 0.852] | 0.656 [0.569; 0.733] |
|
| 334 |
+
| s1d1 small int8 | 0.772 [0.700; 0.822] | 0.650 [0.561; 0.731] |
|
| 335 |
+
| ceiling (mean of the three judges, each against the other two) | 0.774 [0.718; 0.815] | 0.600 [0.523; 0.671] |
|
| 336 |
+
| prompt length (witness) | 0.543 [0.424; 0.647] | 0.394 [0.300; 0.483] |
|
| 337 |
+
| Laya english | 0.405 [0.314; 0.490] | 0.311 [0.247; 0.386] |
|
| 338 |
+
| Laya multilingual | 0.119 [−0.040; 0.264] | 0.278 [0.203; 0.353] |
|
| 339 |
+
| LiteLLM built-in heuristic | 0.089 [0.026; 0.172] | 0.342 [0.250; 0.436] |
|
| 340 |
+
|
| 341 |
+
The bench does not separate `small` from `full` (paired difference +0.035 [−0.004; 0.076]); `small` weighs 56 MB
|
| 342 |
+
against 310 and answers in 5.8 ms against 9.1 per prompt (M4 Max, batch 1, CPU). Laya and the heuristic are the two
|
| 343 |
+
options LiteLLM documents for a self-hosted classifier, read zero-shot on this rubric with LiteLLM's four tiers mapped
|
| 344 |
+
name to name.
|
| 345 |
+
|
| 346 |
## Limitations (read before relying on it)
|
| 347 |
|
| 348 |
- **Labels are model judgments.** The router learns the judge's idea of complexity, with its noise (11.5 % of the 200
|