Skip to content

feat(cli): run an Inspect AI task with gym eval run inspect:<package>/<dataset> - #6932

Draft
cwing-nvidia wants to merge 1 commit into
cwing/inspect/batched-modefrom
cwing/inspect/eval-run-docs
Draft

cwing-nvidia wants to merge 1 commit into
cwing/inspect/batched-modefrom
cwing/inspect/eval-run-docs

Conversation

@cwing-nvidia

@cwing-nvidia cwing-nvidia commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Goal of the stack (#6683): run an eval written for Inspect AI in Gym without porting it. The eval's dataset, solver and scorer run as written; Gym serves the model and records every model call.

PR 5 of 5. This PR adds the command and the docs, and completes the first milestone.

What

  • gym eval run inspect:inspect_evals/bbq +inspect.worker_location=host ... prepares the samples, starts the servers and collects rollouts.
  • Docs page "Run Inspect AI Evals". A test runs the command from the page.

Rollout evidence: each eval run twice through Gym and twice with inspect eval, gpt-4o-mini unless noted.

Eval Samples Through Gym inspect eval
BBQ (Age) 500 0.644, 0.634 0.638, 0.640
LAB-Bench ProtocolQA 108 0.454, 0.454 0.435, 0.426
XSTest 250 0.944, 0.944 0.944, 0.944
AbstentionBench 191 0.522, 0.591 0.573, 0.506
AgentHarm 60 0.496, 0.536 0.528, 0.490
HealthBench (o3) 100 0.512, 0.484 0.527, 0.477
  • First prompts identical on every sample.
  • Every difference is within the model's own run-to-run variation.
  • Not run against a real endpoint: evals with tools, model_api: responses, --resume.

Validation

  • Server tests: 139 passed.
  • Core unit suite: no failure that does not also fail on main on macOS.
  • pre-commit run --all-files and fern check pass.

Compatibility

  • Additive. No benchmark results change.
  • Every run needs +inspect.worker_location=host until a sandboxed worker exists.
  • The first run needs uv and network access to build the worker environment.

Follow-ups: tracked in #6923.

@cwing-nvidia
cwing-nvidia added this pull request to stack #6933 November 30, 2026 04:50
@copy-pr-bot

copy-pr-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cwing-nvidia cwing-nvidia added area:cli Command-line interfaces and user-facing command behavior feature New capabilities, enhancements, or enablement work labels Nov 30, 2026
@cwing-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 2a16781

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the risk:mid Autobot PR risk: mid label Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@cwing-nvidia cwing-nvidia changed the title feat(cli): run an Inspect AI task with gym eval run inspect:<package>/<task> feat(cli): run an Inspect AI task with gym eval run inspect:<package>/<dataset> Nov 30, 2026
…/<task>

gym eval run accepts an inspect: target. It prepares the task's samples as rows, writes the run configuration, starts the Model Server and the inspect Environment Server, and collects rollouts from the prepared rows through serve_and_collect_rollouts.

Adds the docs page and its index row. The server's tests read the recipe from the docs page and run it through the real command, with a toy task and a stub endpoint in place of the eval and the model.

--only-tasks and --exclude-tasks select samples by id, as they select tasks for any other target.

Signed-off-by: Chris Wing <cwing@nvidia.com>
@cwing-nvidia
cwing-nvidia force-pushed the cwing/inspect/eval-run-docs branch from 2a16781 to 477080f Compare November 30, 2026 17:22
@copy-pr-bot

copy-pr-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cwing-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 477080f

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Command-line interfaces and user-facing command behavior feature New capabilities, enhancements, or enablement work risk:mid Autobot PR risk: mid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants