Text Classification
Transformers
ONNX
Safetensors
Transformers.js
English
modernbert
llm-routing
prompt-complexity
routellm
agent-observability
cost-optimization
ettin
model-routing
prompt-routing
litellm
text-embeddings-inference
Instructions to use Tamarillo/prompt-complexity-router-tiny-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/prompt-complexity-router-tiny-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Tamarillo/prompt-complexity-router-tiny-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/prompt-complexity-router-tiny-en") model = AutoModelForSequenceClassification.from_pretrained("Tamarillo/prompt-complexity-router-tiny-en", device_map="auto") - Transformers.js
How to use Tamarillo/prompt-complexity-router-tiny-en with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Tamarillo/prompt-complexity-router-tiny-en'); - Notebooks
- Google Colab
- Kaggle
Download calibration.json from Tamarillo/prompt-complexity-router-tiny-en: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/Tamarillo/prompt-complexity-router-tiny-en/resolve/main/calibration.json
- Command line
-
hf download hf://Tamarillo/prompt-complexity-router-tiny-en/calibration.json
-
curl -L -o calibration.json https://huggingface.co/Tamarillo/prompt-complexity-router-tiny-en/resolve/main/calibration.json
293 Bytes
| { | |
| "temperature": 0.9285, | |
| "calibrated_ece_strong": 0.04558, | |
| "thr_25pct_strong_val": 0.63526, | |
| "thr_50pct_strong_val": 0.29926, | |
| "thr_75pct_strong_val": 0.11663, | |
| "calibrated_thr_25pct_strong": 0.65464, | |
| "calibrated_thr_50pct_strong": 0.2961, | |
| "calibrated_thr_75pct_strong": 0.10597 | |
| } |