Scikit-learn
Joblib
English
protocol-routing
llm-routing
multi-agent-systems
cost-aware-inference
protocol-selection
calibration
reasoning
reproducibility
emnlp2026
Instructions to use AgentsSci/EMNLP_Cost-Aware-Protocol-Routing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use AgentsSci/EMNLP_Cost-Aware-Protocol-Routing with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("AgentsSci/EMNLP_Cost-Aware-Protocol-Routing", "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
Publish the trained metadata-only router checkpoint with its fitted feature builders, verified label map, and a runnable example
0181745 verified Download router_metadata_only/label_mapping.json from AgentsSci/EMNLP_Cost-Aware-Protocol-Routing: direct link, hf CLI and curl.
- Browser
- Download file 906 Bytes
-
https://huggingface.co/AgentsSci/EMNLP_Cost-Aware-Protocol-Routing/resolve/main/router_metadata_only/label_mapping.json
- Command line
-
hf download hf://AgentsSci/EMNLP_Cost-Aware-Protocol-Routing/router_metadata_only/label_mapping.json
-
curl -L -o label_mapping.json https://huggingface.co/AgentsSci/EMNLP_Cost-Aware-Protocol-Routing/resolve/main/router_metadata_only/label_mapping.json
906 Bytes
| { | |
| "label_order": [ | |
| "baseline_llm", | |
| "single_agent", | |
| "per", | |
| "broadcast", | |
| "none" | |
| ], | |
| "index_to_label": { | |
| "0": "baseline_llm", | |
| "1": "single_agent", | |
| "2": "per", | |
| "3": "broadcast", | |
| "4": "none" | |
| }, | |
| "label_to_index": { | |
| "baseline_llm": 0, | |
| "single_agent": 1, | |
| "per": 2, | |
| "broadcast": 3, | |
| "none": 4 | |
| }, | |
| "note": "The estimator stores integer classes [0..4] with no embedded label map. This file IS that map. It is the paper's fixed cost order, NOT alphabetical order: decoding with sorted(labels) agrees with the released predictions on only 352 of 423 test rows, while this mapping agrees on 423 of 423.", | |
| "verified": { | |
| "check": "model.predict on reconstructed test features, decoded with index_to_label, compared to test_predictions.csv", | |
| "n_test": 423, | |
| "agreement_label_order": "423/423", | |
| "agreement_sorted_order": "352/423" | |
| } | |
| } |