Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
llm-routing
prompt-complexity
routellm
agent-observability
cost-optimization
mmbert
model-routing
prompt-routing
litellm
text-embeddings-inference
Instructions to use Tamarillo/prompt-complexity-router-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/prompt-complexity-router-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Tamarillo/prompt-complexity-router-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/prompt-complexity-router-base") model = AutoModelForSequenceClassification.from_pretrained("Tamarillo/prompt-complexity-router-base", device_map="auto") - Transformers.js
How to use Tamarillo/prompt-complexity-router-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Tamarillo/prompt-complexity-router-base'); - Notebooks
- Google Colab
- Kaggle
Document parity-verified Gather-INT8 ONNX (onnx/model_quantized.onnx) and { dtype: 'q8' } usage
Browse files
README.md
CHANGED
|
@@ -249,3 +249,8 @@ Released under the **Apache-2.0 License** by **Tamarillo**. All base models (`jh
|
|
| 249 |
license = {Apache-2.0}
|
| 250 |
}
|
| 251 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
license = {Apache-2.0}
|
| 250 |
}
|
| 251 |
```
|
| 252 |
+
|
| 253 |
+
### Gather-INT8 Quantized ONNX (`onnx/model_quantized.onnx` — `611.36 MB`, `1.92x` smaller)
|
| 254 |
+
|
| 255 |
+
- **Verified Parity (`onnx/quantization_check.json`):** `100.0%` prediction agreement vs. FP32 ONNX (mean abs probability diff `0.00055`, max `0.00145`; `167.73 ms` 4-thread CPU p50 @ 256 tokens).
|
| 256 |
+
- **Browser WASM / Node.js (`@huggingface/transformers` v3):** pass `{ dtype: "q8" }` to load `onnx/model_quantized.onnx` automatically.
|