Repository navigation
Add f-router-v2 - #286
Open
ehanmire wants to merge 1 commit into
Open
Add f-router-v2#286ehanmire wants to merge 1 commit into
ehanmire wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
/evaluate |
Router Evaluation ResultsRouter: RouterArena Metrics
Evaluation completed by RouterArena automated workflow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add f-router-v2
f-router-v2 is a new router from the team behind f-router (#270). It uses a different classifier, a different routing rule and different candidate models. It does not replace f-router.
Files:
router_inference/config/f-router-v2.jsonrouter_inference/predictions/f-router-v2.json(full,generated_resultpopulated)router_inference/predictions/f-router-v2-robustness.json(routing only)model_cost/model_profiles.yaml+ regeneratedmodel_cost/model_cost.json: one new entry for the router's own classifier (Qwen3-1.7B, run locally)How it routes
full). The model runs one forward pass over the prompt and does not decode any output tokens. We take the last-layer hidden state of the last prompt token.Qwen/Qwen3-Coder-Nextgoogle/gemini-3.8-flashopenai/gpt-6.1-solgoogle/gemini-3.8-flashThe 0.99872 cut-off is set so that about 4% of our validation rows (29 of 731) go to GPT-6.1 Sol. This rule caps how often the expensive model is used; we did not choose the cut-off by comparing answer accuracy. On
fullthe router sent 8,004 queries to Gemini 3.8 Flash, 379 to Qwen3-Coder-Next and 17 to GPT-6.1 Sol.Training data (no RouterArena data)
The classifier was fit on 2,364 labelled requests, and its regularization and per-label thresholds were chosen on a separate validation set of 731 (by cross-validation on the training rows for labels with fewer than 10 validation positives). No RouterArena questions, labels, prompt templates, configs, cached results, other submissions or leaderboard scores were used to build, train, tune or select anything.
How we built it
We built this router in a copilot workflow with Claude Code: our team set the direction, made the decisions and reviewed each step, and AI coding agents, mainly Claude Code, wrote and ran the code.
🤖 Generated with Claude Code