-
Notifications
You must be signed in to change notification settings - Fork 992
LLM Benchmark Improvements + More Evals #4740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bradleyshep
wants to merge
66
commits into
master
Choose a base branch
from
bradley/llm-benchmarks-improvements
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
36a875a
open router
bradleyshep 3b88747
no guidelines variant, new workflows, results save updates
bradleyshep 76016e7
new evals batch one
bradleyshep 3bdecca
query evals
bradleyshep b3ce8f7
more evals + categories
bradleyshep 52e28b9
fixes
bradleyshep 617e052
fixes
bradleyshep 6eb1168
fmt
bradleyshep b9a545f
llm benchmark site
bradleyshep afee2e0
Create ModelDetail.tsx
bradleyshep 61d815e
site + details
bradleyshep e132ed8
benchmark site + run
bradleyshep 56e693f
more evals + fixes
bradleyshep 1216af6
fixes
bradleyshep ec966f9
refinements
bradleyshep 00d6598
updates
bradleyshep 850254e
updates; guidelines mode
bradleyshep 4abe096
Create README.md
bradleyshep b432278
fixes
bradleyshep bed39d0
updates
bradleyshep 9ffba0b
remove tools/site
bradleyshep bb26681
normalize model names
bradleyshep 139408e
scoring fixes
bradleyshep 6f740ed
fixes
bradleyshep dd35c66
results
bradleyshep db0e185
rust concurrency and details updates
bradleyshep 25a246e
Update spacetimedb-typescript.mdc
bradleyshep 741fcf4
update actions
bradleyshep 603b5ee
Merge branch 'master' into bradley/llm-benchmarks-improvements
bradleyshep 5fd1a0e
Update llm-benchmark-periodic.yml
bradleyshep b6677f9
updates
bradleyshep b9e43b8
Update spacetimedb-typescript.mdc
bradleyshep 68ae3ef
refinements
bradleyshep e8b039a
updates
bradleyshep 28662c6
fixes/cleanup
bradleyshep 8f070f4
cleanup
bradleyshep a3e4421
cleanup
bradleyshep 6feb97d
Update global.json
bradleyshep 920217c
Delete llm-comparison-details.lock
bradleyshep e5a5546
fmt
bradleyshep aa3caf1
fmt
bradleyshep c9770da
lints
bradleyshep fc1d685
clippy
bradleyshep 5cf84bb
Single source ai docs
bradleyshep ef78cac
separate csharp client / unity; cpp; rust refinements
bradleyshep d5afe95
Update init.rs
bradleyshep 0f356c2
Update llms.md
bradleyshep b91f238
docusaurus md generation
bradleyshep be7ca88
Merge branch 'master' into bradley/llm-single-source-of-truth
bradleyshep e663777
Remove unused
bradleyshep 8b96bca
Merge remote-tracking branch 'origin/bradley/llm-benchmarks-improveme…
bradleyshep 9987996
fixes
bradleyshep 9acb33c
skill updates
bradleyshep c9c9732
unreal skill
bradleyshep dc7a0f1
Merge branch 'master' into bradley/llm-benchmarks-improvements
bradleyshep acbb618
Update SKILL.md
bradleyshep 0974acf
multi index preference
bradleyshep 5ab0938
Merge branch 'master' into bradley/llm-benchmarks-improvements
bradleyshep dee42a6
Remove summary, file io, ci quickfix/check; add analysis; remove jsons
bradleyshep 2223a75
Update client.rs
bradleyshep dfb6779
analysis command + permissions
bradleyshep 514068b
updates
bradleyshep 61192f5
Merge remote-tracking branch 'origin/bradley/llm-single-source-of-tru…
bradleyshep 4eac30e
remove cursor rules mode + dead code cleanup
bradleyshep 91f5861
add goldens to evals, save runs and anlysis locally if dry run
bradleyshep 3689d9c
Update client.rs
bradleyshep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: Docs / Update llms files | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - docs/release | ||
| paths: | ||
| - 'docs/docs/**' | ||
| - 'skills/**' | ||
| workflow_dispatch: # Allow manual trigger | ||
|
|
||
| jobs: | ||
| update-llms: | ||
| runs-on: spacetimedb-new-runner-2 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: docs/release | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '22' | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| run_install: true | ||
|
|
||
| - name: Get pnpm store directory | ||
| working-directory: sdks/typescript | ||
| shell: bash | ||
| run: | | ||
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
|
|
||
| - uses: actions/cache@v4 | ||
| name: Setup pnpm cache | ||
| with: | ||
| path: ${{ env.STORE_PATH }} | ||
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pnpm-store- | ||
|
|
||
| - name: Install dependencies | ||
| working-directory: docs | ||
| run: pnpm install | ||
|
|
||
| - name: Docusaurus build | ||
| working-directory: docs | ||
| run: pnpm build | ||
|
|
||
| - name: Generate llms files | ||
| working-directory: docs | ||
| run: node scripts/generate-llms.mjs | ||
|
|
||
| - name: Commit updated llms files | ||
| working-directory: docs | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git add static/llms.md | ||
| git diff --staged --quiet && echo "No changes" && exit 0 | ||
| git commit -m "Update llms files from docs build" | ||
| git push |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| name: Periodic LLM benchmarks | ||
|
|
||
| on: | ||
| schedule: | ||
| # Daily at midnight UTC. Change to '0 */6 * * *' for every 6h, | ||
| # or '0 */4 * * *' for every 4h. | ||
| - cron: '0 0 * * *' | ||
| workflow_dispatch: | ||
| inputs: | ||
| models: | ||
| description: 'Models to run (provider:model format, comma-separated, or "all")' | ||
| required: false | ||
| default: 'all' | ||
| languages: | ||
| description: 'Languages to benchmark (comma-separated: rust,csharp,typescript)' | ||
| required: false | ||
| default: 'rust,csharp,typescript' | ||
| modes: | ||
| description: 'Modes to run (comma-separated: guidelines,no_context,docs,...)' | ||
| required: false | ||
| default: 'guidelines,no_context' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: llm-benchmark-periodic | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| run-benchmarks: | ||
| runs-on: spacetimedb-new-runner | ||
| container: | ||
| image: localhost:5000/spacetimedb-ci:latest | ||
| options: >- | ||
| --privileged | ||
| timeout-minutes: 180 | ||
|
|
||
| steps: | ||
| - name: Install spacetime CLI | ||
| run: | | ||
| curl -sSf https://install.spacetimedb.com | sh -s -- -y | ||
| echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
|
|
||
| - name: Checkout master | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: master | ||
| fetch-depth: 1 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@stable | ||
| - uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Setup .NET SDK | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: "8.0.x" | ||
|
|
||
| - name: Install WASI workload | ||
| env: | ||
| DOTNET_MULTILEVEL_LOOKUP: "0" | ||
| DOTNET_CLI_HOME: ${{ runner.temp }}/dotnet-home | ||
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1" | ||
| run: | | ||
| dotnet workload install wasi-experimental --skip-manifest-update --disable-parallel | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: Build llm-benchmark tool | ||
| run: cargo install --path tools/xtask-llm-benchmark --locked | ||
|
|
||
| - name: Run benchmarks | ||
| env: | ||
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | ||
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| LLM_BENCHMARK_API_KEY: ${{ secrets.LLM_BENCHMARK_API_KEY }} | ||
| LLM_BENCHMARK_UPLOAD_URL: ${{ secrets.LLM_BENCHMARK_UPLOAD_URL }} | ||
| MSBUILDDISABLENODEREUSE: "1" | ||
| DOTNET_CLI_USE_MSBUILD_SERVER: "0" | ||
| INPUT_LANGUAGES: ${{ inputs.languages || 'rust,csharp,typescript' }} | ||
| INPUT_MODELS: ${{ inputs.models || 'all' }} | ||
| INPUT_MODES: ${{ inputs.modes || 'guidelines,no_context' }} | ||
| run: | | ||
| LANGS="$INPUT_LANGUAGES" | ||
| MODELS="$INPUT_MODELS" | ||
| MODES="$INPUT_MODES" | ||
|
|
||
| SUCCEEDED=0 | ||
| FAILED=0 | ||
| for LANG in $(echo "$LANGS" | tr ',' ' '); do | ||
| if [ "$MODELS" = "all" ]; then | ||
| if llm_benchmark run --lang "$LANG" --modes "$MODES"; then | ||
| SUCCEEDED=$((SUCCEEDED + 1)) | ||
| else | ||
| echo "::warning::Benchmark run failed for lang=$LANG" | ||
| FAILED=$((FAILED + 1)) | ||
| fi | ||
| else | ||
| if llm_benchmark run --lang "$LANG" --modes "$MODES" --models "$MODELS"; then | ||
| SUCCEEDED=$((SUCCEEDED + 1)) | ||
| else | ||
| echo "::warning::Benchmark run failed for lang=$LANG models=$MODELS" | ||
| FAILED=$((FAILED + 1)) | ||
| fi | ||
| fi | ||
| done | ||
| echo "Benchmark runs: $SUCCEEDED succeeded, $FAILED failed" | ||
| if [ "$SUCCEEDED" -eq 0 ] && [ "$FAILED" -gt 0 ]; then | ||
| echo "::error::All benchmark runs failed" | ||
| exit 1 | ||
| fi | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.