Text Classification
Scikit-learn
Joblib
English
llm-routing
model-selection
budget-optimization
nearest-neighbor
Instructions to use JiaqiXue/R2-Router-RouterArena with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use JiaqiXue/R2-Router-RouterArena with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("JiaqiXue/R2-Router-RouterArena", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
| { | |
| "router_name": "R2-Router", | |
| "method": "Global KNN (cosine, distance-weighted)", | |
| "embedding_model": "Qwen/Qwen3-0.6B", | |
| "embedding_dim": 1024, | |
| "knn_k": 80, | |
| "lambda": 0.999, | |
| "models": { | |
| "235b": { | |
| "full_name": "qwen/qwen3-235b-a22b-2507", | |
| "output_price_per_million": 0.463, | |
| "input_price_per_million": 0.071, | |
| "type": "vllm" | |
| }, | |
| "80b": { | |
| "full_name": "qwen/qwen3-next-80b-a3b-instruct", | |
| "output_price_per_million": 1.1, | |
| "input_price_per_million": 0.09, | |
| "type": "vllm" | |
| }, | |
| "30b": { | |
| "full_name": "qwen/qwen3-30b-a3b-instruct-2507", | |
| "output_price_per_million": 0.33, | |
| "input_price_per_million": 0.08, | |
| "type": "vllm" | |
| }, | |
| "coder-next": { | |
| "full_name": "Qwen/Qwen3-Coder-Next", | |
| "output_price_per_million": 0.3, | |
| "input_price_per_million": 0.07, | |
| "type": "vllm" | |
| }, | |
| "gemini-flash": { | |
| "full_name": "gemini-2.5-flash", | |
| "output_price_per_million": 2.5, | |
| "input_price_per_million": 0.3, | |
| "type": "api" | |
| }, | |
| "haiku": { | |
| "full_name": "claude-3-haiku-20240307", | |
| "output_price_per_million": 1.25, | |
| "input_price_per_million": 0.25, | |
| "type": "api" | |
| } | |
| }, | |
| "budgets": { | |
| "concise": 100, | |
| "budget_200": 200, | |
| "budget_400": 400, | |
| "budget_800": 800 | |
| }, | |
| "training_size": 809, | |
| "training_source": "RouterArena sub_10 (10% official split)" | |
| } |