Skip to content

Commit 47438ef

Browse files
Ahasannnclaudehappy-otter
committed
feat: Update R2-Router to 6-model Global KNN (K=80, λ=0.999)
- Models: 235b, 80b, 30b, coder-next, gemini-flash, haiku - Budgets: concise, budget_200, budget_400, budget_800 - Training: sub_10 only (809 queries), Global KNN (cosine, distance-weighted) - Results: Acc=71.20%, Cost=$0.037/1kq, Arena(β=0.1)=71.94 - Beats Method 1 and Method 2 across all β values Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent 0d89c02 commit 47438ef

3 files changed

Lines changed: 111522 additions & 60552 deletions

File tree

router_inference/config/r2-router.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
"router_cls_name": "R2Router",
55
"models": [
66
"qwen/qwen3-235b-a22b-2507",
7+
"qwen/qwen3-next-80b-a3b-instruct",
8+
"qwen/qwen3-30b-a3b-instruct-2507",
9+
"Qwen/Qwen3-Coder-Next",
710
"gemini-2.5-flash",
8-
"mistralai/ministral-3-3b-2512"
11+
"claude-3-haiku-20240307"
912
],
10-
"description": "R2-Router: Global KNN (K=28, cosine, distance-weighted) trained on sub_10 split. Routes via risk=(1-lambda)*quality - lambda*tokens*price. Lambda=0.85.",
11-
"lambda": 0.85
13+
"description": "R2-Router: Global KNN (K=80, cosine, distance-weighted) trained on sub_10 split. 6 models, 4 budgets (concise, budget_200, budget_400, budget_800). Routes via risk=(1-lambda)*quality - lambda*tokens*price. Lambda=0.999.",
14+
"lambda": 0.999
1215
}
1316
}

0 commit comments

Comments
 (0)