-
Notifications
You must be signed in to change notification settings - Fork 1
feat(nim): add evidence-grade all-model benchmark (#86) #906
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
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
014cec9
feat(nim): add evidence-grade benchmark foundation
seonghobae be11255
feat(nim): harden benchmark evidence and egress
seonghobae 2511bdc
fix(nim): satisfy benchmark lint contract
seonghobae 21fa203
fix(ci): install runtime dependencies for NIM quality
seonghobae bbdb906
fix(nim): reserve the complete evidence run
seonghobae 4aae878
fix(ci): lock the wheel build backend
seonghobae 703ecc4
fix(ci): use patched setuptools release
seonghobae e4b3ebd
fix(nim): close review budget and CLI gaps
seonghobae 8dc6a6a
fix(nim): bound benchmark retry egress
seonghobae de18b49
fix(nim): align evaluation reserve with call envelope
seonghobae d91f7c9
fix(nim): preserve scoped benchmark request limits
seonghobae 2cc89df
fix(nim): keep evaluation on pinned transport
seonghobae 4e94922
fix(nim): honor strict substring benchmark expectations
seonghobae 848418e
fix(nim): normalize discovery and trace contract errors
seonghobae 65109a4
fix(nim): align scheduled evidence review window
seonghobae 53bfe9f
fix(nim): prevent conduct budget starvation
seonghobae d3edd7c
test(nim): cover equal budget failure branches
seonghobae a20d0fa
refactor: remove unused provider response wrapper
seonghobae 2406882
test(fuzz): disable deadline for cold catalog import
seonghobae c6495e1
Merge remote-tracking branch 'origin/main' into HEAD
seonghobae 3b2aa78
Merge branch 'main' into feat/nim-benchmark-rebuild-20260828
seonghobae 4c3662a
chore: run one-shot conflict resolver for PR #906
seonghobae bb2c02d
chore: rerun robust conflict inventory for PR #906
seonghobae 61e2210
chore: rerun hardened conflict inventory for PR #906
seonghobae 411fb27
chore(ci): preserve NIM quality gate after workflow rename
seonghobae 7cfcc84
chore(ci): complete tests workflow rename
seonghobae b240923
chore: semantically resolve PR #906 workflow rename
seonghobae b9b4097
chore: merge protected main into PR #906
github-actions[bot] fbf599a
chore: request protected checks for PR #906
seonghobae 27f703b
chore: remove exact-head check marker
seonghobae 460ce25
chore: export exact PR #906 source for conflict-safe review fixes
seonghobae b0167b0
chore: remove completed PR #906 source export
seonghobae 2c947d3
Merge origin/main into feat/nim-benchmark-rebuild-20260828
claude 7ba5fef
fix(nim-benchmark): repair the two test contracts the main merge broke
claude fcaf413
docs(gap-baseline): record this cycle's #868/#857/#906 findings and f…
claude fc26d68
Merge remote-tracking branch 'origin/main' into pr-906-conflict-resolve
claude 3158fd2
fix(nim-benchmark): give the equal token budget enough margin for the…
claude 2e66ef7
docs(gap-baseline): record #906 token-budget root cause and fix
claude 7e3ff3c
Merge remote-tracking branch 'origin/main' into test-feat/nim-benchma…
claude ef9df2e
Merge remote-tracking branch 'origin/main' into feat/nim-benchmark-re…
claude 277aa79
Merge branch 'main' into feat/nim-benchmark-rebuild-20260828
seonghobae 869cab9
Merge remote-tracking branch 'origin/main' into fix/pr906-current-head
seonghobae e30d471
fix(nim): make benchmark evidence fail closed
seonghobae f7bb754
fix(nim): pin benchmark policy evidence
seonghobae a57df7c
fix: keep benchmark evidence inside shared limits
seonghobae eab358a
fix(nim): fail closed on benchmark contract breaches
seonghobae 53ce9e8
fix(nim): retain failed-cell completion usage
seonghobae a2a9881
fix(benchmark): reconcile reported token components
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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,151 @@ | ||
| name: NIM benchmark | ||
|
|
||
| # Evidence-grade NVIDIA NIM model discovery and cost-quality benchmark. | ||
| # Manual dispatch defaults to a deterministic dry run. Monthly scheduled runs | ||
| # are live but use a conservative hard request cap. The first-of-month schedule | ||
| # keeps the next run inside the current reviewed evidence window; stale evidence | ||
| # still fails closed. Dry execution receives no provider credential; only the | ||
| # live step can read NVIDIA_NIM_API_KEY. | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| dry_run: | ||
| description: "Dry run without contacting NVIDIA" | ||
| type: boolean | ||
| default: true | ||
| max_total_requests: | ||
| description: "Hard cap on provider requests for this run" | ||
| type: number | ||
| default: 2000 | ||
| pricing_scenario: | ||
| description: "Optional reviewed pricing-scenario JSON path" | ||
| type: string | ||
| default: "" | ||
| schedule: | ||
| - cron: "23 3 1 * *" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: nim-benchmark | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| dry_run_benchmark: | ||
| name: Deterministic NIM benchmark dry run | ||
| if: github.event_name == 'workflow_dispatch' && inputs.dry_run == true | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # actions/checkout@v7 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install pinned runtime | ||
| run: | | ||
| python -m pip install --require-hashes -r requirements.lock | ||
| python -m pip install --no-deps -e . | ||
|
|
||
| - name: Run dry benchmark | ||
| env: | ||
| MAX_REQUESTS: ${{ inputs.max_total_requests }} | ||
| PRICING_SCENARIO: ${{ inputs.pricing_scenario }} | ||
| PROVENANCE_GIT_SHA: ${{ github.sha }} | ||
| PROVENANCE_RUN_ID: ${{ github.run_id }} | ||
| run: | | ||
| set -euo pipefail | ||
| extra_args=() | ||
| if [ -n "$PRICING_SCENARIO" ]; then | ||
| extra_args+=(--pricing-scenario "$PRICING_SCENARIO") | ||
| fi | ||
| python -m contextual_orchestrator nim-benchmark \ | ||
| --dry-run \ | ||
| "${extra_args[@]}" \ | ||
| --task-manifest examples/nim_task_manifest.json \ | ||
| --output-dir benchmark_artifacts \ | ||
| --max-total-requests "$MAX_REQUESTS" \ | ||
| --git-sha "$PROVENANCE_GIT_SHA" \ | ||
| --workflow-run-id "$PROVENANCE_RUN_ID" | ||
|
|
||
| - name: Upload dry-run artifacts | ||
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # actions/upload-artifact@v5 | ||
| with: | ||
| name: nim-benchmark-dry-${{ github.run_id }} | ||
| path: benchmark_artifacts/ | ||
| retention-days: 30 | ||
| if-no-files-found: error | ||
|
|
||
| live_benchmark: | ||
| name: Live NIM catalog benchmark | ||
| if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.dry_run != true) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # actions/checkout@v7 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install pinned runtime | ||
| run: | | ||
| python -m pip install --require-hashes -r requirements.lock | ||
| python -m pip install --no-deps -e . | ||
|
|
||
| - name: Resolve live parameters | ||
| id: live_params | ||
| env: | ||
| EVENT_NAME: ${{ github.event_name }} | ||
| INPUT_MAX_REQUESTS: ${{ inputs.max_total_requests }} | ||
| INPUT_PRICING: ${{ inputs.pricing_scenario }} | ||
| run: | | ||
| set -euo pipefail | ||
| if [ "$EVENT_NAME" = "schedule" ]; then | ||
| echo "max_requests=2000" >> "$GITHUB_OUTPUT" | ||
| echo "pricing_scenario=" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "max_requests=${INPUT_MAX_REQUESTS}" >> "$GITHUB_OUTPUT" | ||
| echo "pricing_scenario=${INPUT_PRICING}" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
seonghobae marked this conversation as resolved.
|
||
|
|
||
| - name: Run live benchmark | ||
| env: | ||
| NVIDIA_NIM_API_KEY: ${{ secrets.NVIDIA_NIM_API_KEY }} | ||
| MAX_REQUESTS: ${{ steps.live_params.outputs.max_requests }} | ||
| PRICING_SCENARIO: ${{ steps.live_params.outputs.pricing_scenario }} | ||
| PROVENANCE_GIT_SHA: ${{ github.sha }} | ||
| PROVENANCE_RUN_ID: ${{ github.run_id }} | ||
| run: | | ||
| set -euo pipefail | ||
| extra_args=() | ||
| if [ -n "$PRICING_SCENARIO" ]; then | ||
| extra_args+=(--pricing-scenario "$PRICING_SCENARIO") | ||
| fi | ||
| python -m contextual_orchestrator nim-benchmark \ | ||
| "${extra_args[@]}" \ | ||
| --task-manifest examples/nim_task_manifest.json \ | ||
| --output-dir benchmark_artifacts \ | ||
| --max-total-requests "$MAX_REQUESTS" \ | ||
| --git-sha "$PROVENANCE_GIT_SHA" \ | ||
| --workflow-run-id "$PROVENANCE_RUN_ID" | ||
|
|
||
| - name: Upload live benchmark artifacts | ||
| if: always() | ||
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # actions/upload-artifact@v5 | ||
| with: | ||
| name: nim-benchmark-live-${{ github.run_id }} | ||
| path: benchmark_artifacts/ | ||
| retention-days: 90 | ||
| if-no-files-found: warn | ||
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
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
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
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.