Skip to content

[Don't Merge] Testing automatic eval - #12

Closed
yl231 wants to merge 10 commits into
mainfrom
submission-test
Closed

[Don't Merge] Testing automatic eval#12
yl231 wants to merge 10 commits into
mainfrom
submission-test

Conversation

@yl231

@yl231 yl231 commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Testing automatic eval

yl231 added 5 commits November 7, 2025 13:21
- Add automatic PR comment posting with evaluation results
- Add extract_metrics.py helper to parse evaluation output
- Add upfront model cost validation in check_config_prediction_files.py
- Auto-detect dataset split based on prediction file size (809=sub_10, 8400=full)
- Always prepare dataset in workflow to ensure availability
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown

📊 Router Evaluation Results

Router: test1
Dataset Split: sub_10

Metrics

Metric Value
RouterArena Score 0.6274
Accuracy 62.39%
Total Cost $0.128797
Avg Cost per Query $0.000159
Avg Cost per 1K Queries $0.1592
Number of Queries 809

Evaluation completed by RouterArena automated workflow

yl231 added 4 commits November 7, 2025 16:32
- Add router config with glm-4-air model
- Add prediction file with 8400 entries (full dataset)
- Remove test1.json prediction file
- Update llm_evaluation/run.py to simplify load_ground_truth_dataset
- Update prep_datasets.py to support private repo dataset loading
- Add --check-generated-result flag to check_config_prediction_files.py
  - Flag defaults to False (for pre-inference validation)
  - When True, validates that all generated_result fields are populated
- Add error handling in compute_arena_score to prevent math domain errors
  - Validates cost and accuracy inputs
  - Provides clear error messages for invalid values
- Add checks in compute_router_metrics to detect when no entries evaluated
  - Prevents silent failures when all entries are skipped
- Fix populate script to create generated_result as dictionary (not string)
- generated_result now matches format expected by evaluation code
- Update README to use PR submission instead of email contact
- Add instructions for submitting routers via Pull Request
- Update validation to check for dictionary format (not string)
- Validate required fields: generated_answer, success, token_usage
- Allow empty generated_answer when success is False (failed entries)
@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown

📊 Router Evaluation Results

Router: glm-4-air-router
Dataset Split: full

Metrics

Metric Value
RouterArena Score 0.5617
Accuracy 54.65%
Total Cost $0.396728
Avg Cost per Query $0.000047
Avg Cost per 1K Queries $0.0472
Number of Queries 8400

Evaluation completed by RouterArena automated workflow

- Remove test configs (test1.json, glm-4-air-router.json)
- Remove test predictions (glm-4-air-router.json)
- Keep only your-router.json config as in main branch
@yl231 yl231 closed this Nov 8, 2025
yl231 added a commit that referenced this pull request Jul 14, 2026
…er (#159); Cross-Router update to #1 (#163) (#165)

Adds three newly-merged router submissions and refreshes the Cross-Router
row from its updated submission. Official /evaluate metrics:

- Cross-Router (#163):   Arena 76.12 · Acc 78.14% · $0.30/1K · Robust 67.14  -> now #1
- Nadir-Tumbler (#159):  Arena 75.17 · Acc 75.34% · $0.08/1K · Robust 66.43  -> #4
- chuzom-solo-v32 (#161): Arena 70.61 · Acc 70.59% · $0.10/1K · Robust 100.00 -> #12
- BARouter (#157):       Arena 67.09 · Acc 68.80% · $0.63/1K · Robust 52.38  -> #15

Manifest entries added for the three new routers so the website sync
regenerates their derived data.

Co-authored-by: yl231 <jamesbond19925@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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