RouteLLM: An Open-Source Framework for Cost-Effective LLM Routing

Code / Framework by Conny Svensson 3d ago update
Tools & Methods
LLMs have demonstrated remarkable capabilities across a range of tasks, but there exists wide variation in their costs and capabilities, as seen from the plot of performance against cost in Figure 1. Very broadly, more capable models tend to be more expensive than less capable models. This leads to a dilemma when deploying LLMs in the real-world - routing all queries to the largest, most capable model leads to the highest-quality responses but can be expensive, while routing queries to smaller models can save costs but may result in lower-quality responses.

Attributes

Technology
Tools & Methods
Foundation Model