π LLMRouter: An Open-Source Library for LLM Routing β¨ Introduction LLMRouter is an intelligent routing system designed to optimize LLM inference by dynamically selecting the most suitable model for each query. To achieve intelligent routing, it defines: π Smart Routing: Automatically routes queries to the optimal LLM based on task complexity, cost, and performance requirements. π Multiple Router Models: Support for over 16 routing models, organized into four major categoriesβsingle-round routers, multi-round routers, agentic routers, and personalized routersβcovering a wide range of strategies such as KNN, SVM, MLP, Matrix Factorization, Elo Rating, graph-based routing, BERT-based routing, hybrid probabilistic methods, transformed-score routers, and more. π οΈ Unified CLI: Complete command-line interface for training, inference, and interactive chat with Gradio-based UI. π Data Generation Pipeline: Complete pipeline for generating training data from 11 benchmark datasets with automatic API calling and evaluation. π° News π [2025-12]: LLMRouter is officially released - ship smarter π§ , cost-aware πΈ LLM routing with 16+ routers π§, a unified llmrouter CLI π οΈ, and a plugin workflow for custom routers π§©. π Links π§ Supported Routers Single-Round Routers Router Training Inference Description Tutorial knnrouter β β K-Nearest Neighbors based routing π svmrouter β β Support Vector Machine based routing π mlprouter β β Multi-Layer Perceptron based routing π mfrouter β β Matrix Factorization based routing π elorouter β β Elo Rating based routing π routerdc β β Dual Contrastive learning based routing π automix β β Automatic model mixing π hybrid_llm β β Hybrid LLM routing strategy π graphrouter β β Graph-based routing π causallm_router β β Causal Language Model router π smallest_llm N/A β Always routes to smallest model π largest_llm N/A β Always routes to largest model π Multi-Round Routers Router Training Inference Description Tutorial router_r1 LINK β Pre-trained Router-R1 model ...
First seen: 2026-01-05 19:25
Last seen: 2026-01-05 22:26