LLM Benchmark Improvements + More Evals#4740
Open
bradleyshep wants to merge 43 commits intomasterfrom
Open
Conversation
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.
Description of Changes
LLM benchmark infrastructure improvements and new benchmark tasks.
Runner & scoring:
generation_duration_msto only time the successful attempt, not retries+sleep delays--dry-runflag to run benchmarks without saving results:onlinesuffixoa_compat.rsReducerCallBothScorerfor calling reducers on both golden and LLM databasesmax_tokenson OpenRouter and Meta clients to prevent silent truncationModel routing:
ModelRoutewith display name, vendor, API model, and OpenRouter model ID--models vendor:modelwithout static registrationContext modes:
guidelines,cursor_rules,search,no_contextmodes withis_empty_context_mode()helpernone/no_guidelines→no_context)CI workflows:
llm-benchmark-periodic.ymlfor scheduled nightly runs with per-language failure trackingOPENROUTER_API_KEY,LLM_BENCHMARK_UPLOAD_URL, andLLM_BENCHMARK_API_KEYas GitHub secrets.llm-benchmark-validate-goldens.ymlfor validating golden answers still compileResults & summary:
cmd_statusto show incomplete benchmark combinations with rerun commandscmd_analyzefor LLM-powered failure analysisnormalize_details_filefromwrite_summary_from_details_filestarted_at/finished_at) and token usageNew benchmark tasks:
API and ABI breaking changes
None. Internal tooling only.
Expected complexity level and risk
2 — Changes are scoped to the LLM benchmark CLI tool (
xtask-llm-benchmark) and CI workflows. No impact on SpacetimeDB core.Testing
cargo check -p xtask-llm-benchmark— zero errors, zero warningsllm_benchmark run --lang typescript --modes no_context --tasks t_001 --models openai:gpt-5-mini --dry-run— ran end-to-end, confirmed no results saved to disk