Tamarillo Prompt Complexity Router
100% client-side in-browser ONNX inference running
Tamarillo/prompt-complexity-router-tiny-en
(32.0M params, Apache-2.0, 2,048-token trained / 8,192-token RoPE, 1-line RouteLLM BERTRouter drop-in).
For multilingual prompts (15+ languages), use small or
base.
Loading Transformers.js & ONNX model (~67 MB Q8 INT8, cached after first load)...
0.30
Routing Decision (P(STRONG) ≥ τ)
0: STRONG_MODEL_NEEDED
0.0%
2: WEAK_MODEL_SUFFICIENT
0.0%
Exact RouteLLM BERTRouter formula: P(STRONG) = 1 - (P[1] + P[2]) = P[0].
Continuous complexity proxy: S = P[0] + 0.5 * P[1] ∈ [0, 1].
Calibrate τ on your own model pair & cost budget for production routing.