Link project page and interactive demo
Browse files
README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
- routefm
|
| 5 |
- model-routing
|
|
@@ -16,6 +19,8 @@ tags:
|
|
| 16 |
> **[Pretrain Once, Route Anywhere: Towards a Foundation Model for LLM Routing](https://arxiv.org/abs/2609.37362)**<br>
|
| 17 |
> Guannan Lai and Han-Jia Ye 路 Nanjing University
|
| 18 |
|
|
|
|
|
|
|
| 19 |
[GitHub](https://github.com/LAMDA-Model-Reuse/RouteFM) 路
|
| 20 |
[Paper](https://arxiv.org/abs/2609.37362) 路
|
| 21 |
[PDF](https://arxiv.org/pdf/2609.37362)
|
|
@@ -32,6 +37,16 @@ On MMR-Bench, which is excluded from pretraining, RouteFM outperforms the
|
|
| 32 |
strongest non-RouteFM baseline by **2.23 quality points** with only eight
|
| 33 |
observations per candidate.
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## Model description
|
| 36 |
|
| 37 |
RouteFM turns LLM routing from repeated local fitting into global routing
|
|
@@ -71,10 +86,10 @@ and comply with their licenses and access terms.
|
|
| 71 |
|
| 72 |
## Usage
|
| 73 |
|
| 74 |
-
Install the official package
|
| 75 |
|
| 76 |
```bash
|
| 77 |
-
python -m pip install
|
| 78 |
```
|
| 79 |
|
| 80 |
The package downloads the correct safetensors checkpoint from the immutable
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: routefm-router
|
| 4 |
+
spaces:
|
| 5 |
+
- AIGNLAI/RouteFM-Demo
|
| 6 |
tags:
|
| 7 |
- routefm
|
| 8 |
- model-routing
|
|
|
|
| 19 |
> **[Pretrain Once, Route Anywhere: Towards a Foundation Model for LLM Routing](https://arxiv.org/abs/2609.37362)**<br>
|
| 20 |
> Guannan Lai and Han-Jia Ye 路 Nanjing University
|
| 21 |
|
| 22 |
+
[Project page](https://lamda-model-reuse.github.io/RouteFM/) 路
|
| 23 |
+
[Live demo](https://huggingface.co/spaces/AIGNLAI/RouteFM-Demo) 路
|
| 24 |
[GitHub](https://github.com/LAMDA-Model-Reuse/RouteFM) 路
|
| 25 |
[Paper](https://arxiv.org/abs/2609.37362) 路
|
| 26 |
[PDF](https://arxiv.org/pdf/2609.37362)
|
|
|
|
| 37 |
strongest non-RouteFM baseline by **2.23 quality points** with only eight
|
| 38 |
observations per candidate.
|
| 39 |
|
| 40 |
+
## Interactive demo
|
| 41 |
+
|
| 42 |
+
The [RouteFM demo](https://huggingface.co/spaces/AIGNLAI/RouteFM-Demo)
|
| 43 |
+
provides a free interactive explorer for switching among environments, target
|
| 44 |
+
queries, and context budgets. Its predictions were precomputed with the
|
| 45 |
+
released RouteFM-BGE checkpoint; the built-in behavioral contexts are
|
| 46 |
+
synthetic illustrations, not benchmark records. For arbitrary target queries
|
| 47 |
+
and custom context, run the full Gradio app in the
|
| 48 |
+
[GitHub repository](https://github.com/LAMDA-Model-Reuse/RouteFM/tree/main/demo).
|
| 49 |
+
|
| 50 |
## Model description
|
| 51 |
|
| 52 |
RouteFM turns LLM routing from repeated local fitting into global routing
|
|
|
|
| 86 |
|
| 87 |
## Usage
|
| 88 |
|
| 89 |
+
Install the official package from PyPI:
|
| 90 |
|
| 91 |
```bash
|
| 92 |
+
python -m pip install "routefm-router[bge]"
|
| 93 |
```
|
| 94 |
|
| 95 |
The package downloads the correct safetensors checkpoint from the immutable
|