Repository navigation
feat(inspect): let one Inspect worker run several samples at once - #6931
Draft
cwing-nvidia wants to merge 1 commit into
Draft
cwing-nvidia wants to merge 1 commit into
cwing-nvidia wants to merge 1 commit into
Conversation
Contributor
Author
|
/ok to test 686411f |
Adds samples_per_worker to the inspect Environment Server. Above 1, a worker runs up to that many samples at once in one Inspect eval call, fed from the server's commands, so samples share the loaded task and the process. Each request still names its own episode. A repeat of a sample goes to another worker, because Inspect runs a sample id once per eval call. A model request that names no episode while several samples share a worker cannot be attributed, so every sample running in that worker is masked. Signed-off-by: Chris Wing <cwing@nvidia.com>
cwing-nvidia
force-pushed
the
cwing/inspect/batched-mode
branch
from
November 30, 2026 17:22
686411f to
bca66af
Compare
Contributor
Author
|
/ok to test bca66af |
|
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. |
This branch has not been deployed
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.
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 4 of 5. An optional speed-up for large runs.
What:
samples_per_worker(default 1, up to 64). Above 1, the samples of a worker share one loaded task and one process.Why: a large run of an eval without tools needs far fewer processes.
Worth knowing
Validation
gpt-4o-mini,samples_per_worker=8: accuracy identical to the default mode and toinspect eval.Compatibility: additive, default unchanged.