Skip to content

EloRouter

EloRouter is a lightweight ranking-style router. It can be used as a simple baseline or trained from routing supervision.

Notebook (inference): https://github.com/ulab-uiuc/LLMRouter/blob/main/notebooks/elorouter/01_elorouter_inference.ipynb

Router docs: https://github.com/ulab-uiuc/LLMRouter/blob/main/llmrouter/models/elorouter/README.md

Configs

Run (CLI)

Train:

llmrouter train --router elorouter --config configs/model_config_train/elorouter.yaml

Route-only inference:

llmrouter infer --router elorouter --config configs/model_config_test/elorouter.yaml --query "What is retrieval augmented generation?" --route-only

Full inference:

llmrouter infer --router elorouter --config configs/model_config_test/elorouter.yaml --query "What is retrieval augmented generation?"

Tips

  • If training fails due to missing files, run Data preparation or point data_path to your own datasets.
  • For output schema, see Data formats.