Skip to content

[Submission] Prakani Router 1.1 - #294

Open
vijayDL wants to merge 2 commits into
RouteWorks:mainfrom
Prakani:prakani-router-1.0
Open

vijayDL wants to merge 2 commits into
RouteWorks:mainfrom
Prakani:prakani-router-1.0

Conversation

@vijayDL

@vijayDL vijayDL commented Dec 2, 2026 •

Copy link
Copy Markdown

Prakani Router 1.1, an open-source router from Prakani Harness
(code: https://github.com/Prakani/prakani-router, weights: https://huggingface.co/Prakani-Harness/prakani-router-1.0).
This PR was opened as 1.0; it is updated in place to 1.1 (step 1 below).

  • Full predictions: 8,400 (with generations); robustness predictions: 420 (routing only)
  • Local format and pricing checks passed; 0 abnormal entries.
  • Total cost: $0.6493 per 1,000 queries, including routing calls (scripts/pricing/compute_cost.py: answers
    $4.625893, router calls $0.828608).
Arena Accuracy Cost / 1K queries Robustness
77.69 81.39 $0.6493 81.19

How it routes

  • Queries with lettered options go first to two decision models through the Decisions API, typesafe/jev-1.14 and
    liquid/d1.3-ultra, and their option probabilities are averaged. If the top averaged option is jev's own choice
    with probability ≥ 0.60, jev's choice is the answer. d1.3-ultra never answers; its call (and jev's, when the router
    picks a model) is recorded in router_usage.
  • Otherwise the router predicts each model's chance of answering correctly (a LoRA fine-tune of vllm-sr/d3-mini
    plus a ridge on google/embeddinggemma-2 embeddings) and its cost, and picks the best trade-off among
    deepseek/deepseek-v4-flash, google/gemma-4-31b-it, deepseek/deepseek-v4.1-flash and google/gemini-3.8-flash.
  • Both router models run locally. Their calls are recorded in router_usage on every routed row and priced by the
    local-model rule (local: {active_params_b, bits: 16}, sync: false): vllm-sr/d3-mini 4.54B,
    google/embeddinggemma-2 0.74B. liquid/d1.3-ultra is priced at its published rate ($0.042 per M input, output
    free).

Provenance

  • The router was trained and calibrated on external public datasets only (5,587 items), after removing items that
    exactly or nearly matched RouterArena prompts. The decision models and the 0.60 threshold were chosen on the same
    validation split. No RouterArena data was used to train, tune or select anything.
  • Routing uses only the query text, never a dataset name or index.
  • Answers: DeepSeek and Gemma with reasoning off; gemini-3.8-flash does not allow reasoning off, so it runs with
    reasoning effort "minimal". Reasoning tokens are included in output_tokens.

Notes

  • The 238 skipped rows are jev optimality rows for sub_10 queries without lettered options.
  • Please confirm that a Decisions-API choice from typesafe/jev-1.14 is accepted as a final answer.

Files

  • router_inference/config/prakani-router.json
  • router_inference/predictions/prakani-router.json, router_inference/predictions/prakani-router-robustness.json
  • model_cost/model_profiles.yaml, model_cost/model_cost.json (vllm-sr/d3-mini, google/embeddinggemma-2,
    liquid/d1.3-ultra)
  • universal_model_names.py (typesafe/jev-1.14)

Config, full (8,400) and robustness (420) predictions, and local-model price entries for the router's own models
(vllm-sr/d3-mini, google/embeddinggemma-2); typesafe/jev-1.14 added to universal_model_names.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vijayDL

vijayDL commented Dec 2, 2026

Copy link
Copy Markdown
Author

/evaluate

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Router Evaluation Results

Router: prakani-router
Dataset Split: full
Evaluator: main @ 00cb25a

RouterArena Metrics

Metric Value
RouterArena Score 0.7736
Accuracy 81.27%
Total Cost $6.187055
Avg Cost per Query $0.000737
Avg Cost per 1K Queries $0.7366
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.7619

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.4545
Opt.Cost (Cost Efficiency) 0.2043
Opt.Acc (Accuracy vs Optimal) 0.9457

Evaluation completed by RouterArena automated workflow

Step 1 now also asks liquid/d1.3-ultra (Decisions API); jev-1.14 answers when the two models' averaged
probability for jev's own choice is >= 0.60. d1.3-ultra only votes; its call is recorded in router_usage and
priced at its published rate (model_profiles.yaml). New full and robustness predictions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vijayDL

vijayDL commented Dec 3, 2026

Copy link
Copy Markdown
Author

/evaluate

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Router Evaluation Results

Router: prakani-router
Dataset Split: full
Evaluator: main @ 00cb25a

RouterArena Metrics

Metric Value
RouterArena Score 0.7766
Accuracy 81.35%
Total Cost $5.454502
Avg Cost per Query $0.000649
Avg Cost per 1K Queries $0.6493
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.8119

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.1496
Opt.Cost (Cost Efficiency) 0.2424
Opt.Acc (Accuracy vs Optimal) 0.9457

Evaluation completed by RouterArena automated workflow

@vijayDL vijayDL changed the title Add Prakani Router 1.0 submission [Submission] Prakani Router 1.1 Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant