Repository navigation
fix(benchmarks): bound the agent loop on single-turn benchmarks - #3145
Merged
laszkiewiczp merged 1 commit intoSep 7, 2026
Merged
laszkiewiczp merged 1 commit into
laszkiewiczp merged 1 commit into
Conversation
Contributor
Author
|
/ok to test aed2097 |
gchlebus
reviewed
Sep 7, 2026
| _inherit_from: equivalence_llm_judge_simple_agent | ||
| responses_api_agents: | ||
| simple_agent: | ||
| max_steps: 1 |
Contributor
There was a problem hiding this comment.
Let's make sure this only applies to the no tools variant of the benchmark.
Contributor
Author
There was a problem hiding this comment.
benchmarks/hle/config.yaml now declares max_steps: null. That is the current default, so the tool-using variant is unchanged, and declaring the key is what lets a caller override it — a benchmark-scoped override only survives the OmegaConf struct merge if the node already has the key. The no-tools callers then set 1 on their side.
So: tool-using composition keeps its unbounded loop, no-tools gets the bound, and neither depends on the other.
gchlebus
reviewed
Sep 7, 2026
gchlebus
requested changes
Sep 7, 2026
laszkiewiczp
marked this pull request as ready for review
September 7, 2026 15:19
laszkiewiczp
force-pushed
the
plaszkiewicz/max-steps-non-agentic
branch
from
September 7, 2026 15:22
aed2097 to
a313565
Compare
Contributor
Author
|
/ok to test a313565 |
`SimpleAgent` exits its loop only on an assistant message or `max_steps`, which defaults to `None`. A turn with neither a function call nor an assistant message matches neither, so a model that keeps emitting reasoning is re-called until the job is killed, each dud turn appended to the conversation. Continuing on such a turn is deliberate (`test_responses_continues_on_reasoning_only`); the bound is what is missing. Measured on BabyVision: one rollout took 225 sequential model calls, 12 h of a 16.4 h run. With `max_steps: 1` the same evaluation ran in 35 min, 1164 requests for 1164 rollouts, score 0.1503 -> 0.1529. Each benchmark set to 1 here carries no tools: its resources server registers no POST route beyond seed_session/verify/aggregate_metrics/reverify_mode, it ships no tools/ directory, and neither its config nor its prepare script puts `tools` in responses_create_params. `benchmarks/hle/config.yaml` gets `max_steps: null` rather than 1, because the same file is composed by a tool-using consumer that appends `resources_servers/ns_tools` through `config_paths` at launch. Declaring the key with the current default keeps that variant unbounded while letting the no-tools callers set 1 through an override — a benchmark-scoped override only survives the OmegaConf struct merge if the node already declares the key. `config_vision.yaml` inherits from `equivalence_llm_judge` rather than from `config.yaml` and is single-turn outright, so it takes 1 directly. Note `mrcr/config_n3_128k.yaml`: variant configs need the line independently of their `config.yaml` siblings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: plaszkiewicz <[email protected]>
laszkiewiczp
force-pushed
the
plaszkiewicz/max-steps-non-agentic
branch
from
September 7, 2026 17:49
a313565 to
1c369bb
Compare
Contributor
Author
|
/ok to test 1c369bb |
gchlebus
approved these changes
Sep 7, 2026
jkyi-nvidia
pushed a commit
that referenced
this pull request
Sep 11, 2026
`SimpleAgent` exits its loop only on an assistant message or `max_steps`, which defaults to `None`. A reasoning-only turn matches neither, so a model that never emits an assistant message is re-called until the job is killed, each dud turn appended to the conversation. Continuing on such a turn is deliberate (`test_responses_continues_on_reasoning_only`); the bound is what is missing. Measured on BabyVision: one rollout took 225 sequential model calls, 12 h of a 16.4 h run. With `max_steps: 1` the same evaluation ran in 35 min, 1164 requests for 1164 rollouts, score 0.1503 -> 0.1529. These 12 are the single-turn benchmarks of one eval lane. Each carries no tools — its resources server registers no POST route beyond `seed_session`/`verify`/`aggregate_metrics`/`reverify_mode`, no `tools/` directory, no `tools` in the prepared params — so the model can never emit a `function_call` and `max_steps: 1` cannot truncate anything legitimate. `osworld`, `tau2`, `tau3`, `ifeval`, `scicode` and `critpt` are untouched. Note `hle/config_vision.yaml` and `mrcr/config_n3_128k.yaml`: variant configs need the line independently of their `config.yaml` siblings. Behaviour change: a rollout that previously answered only after several stalled turns now scores 0. On BabyVision that was 63 of 1164 and the overall score still moved up. Signed-off-by: plaszkiewicz <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Junkeun Yi <[email protected]>
This was referenced Oct 27, 2026
Open
DanialTaheri
pushed a commit
to DanialTaheri/Gym
that referenced
this pull request
Nov 6, 2026
…Mo#5763) * fix(benchmarks): bound the HLE agent loop with max_steps 1 NVIDIA-NeMo#3145 set max_steps: 1 on single-turn benchmarks but gave benchmarks/hle/config.yaml max_steps: null. SimpleAgentConfig.max_steps is 'int = None', which accepts an omitted key but rejects an explicit null, so the HLE agent server fails to start. Set it to 1 as NVIDIA-NeMo#3145 intended, and add a test that every simple_agent max_steps in benchmarks/ is an integer. Signed-off-by: Ingo Guehring <[email protected]> * test: drop the benchmark max_steps check The fix is the one config line; the check is out of scope for it. Signed-off-by: Ingo Guehring <[email protected]> --------- Signed-off-by: Ingo Guehring <[email protected]>
This branch was previously 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.
SimpleAgentexits its loop only on an assistant message ormax_steps, which defaults toNone. A reasoning-only turn matches neither, so a model that never emits an assistant message is re-called until the job is killed, each dud turn appended to the conversation. Continuing on such a turn is deliberate (test_responses_continues_on_reasoning_only); the bound is what is missing.Measured on BabyVision: one rollout took 225 sequential model calls, 12 h of a 16.4 h run. With
max_steps: 1the same evaluation ran in 35 min, 1164 requests for 1164 rollouts, score 0.1503 -> 0.1529.These 12 are the single-turn benchmarks of one eval lane. Each carries no tools — its resources server registers no POST route beyond
seed_session/verify/aggregate_metrics/reverify_mode, notools/directory, notoolsin the prepared params — so the model can never emit afunction_callandmax_steps: 1cannot truncate anything legitimate.osworld,tau2,tau3,ifeval,scicodeandcritptare untouched.Note
hle/config_vision.yamlandmrcr/config_n3_128k.yaml: variant configs need the line independently of theirconfig.yamlsiblings.Behaviour change: a rollout that previously answered only after several stalled turns now scores 0. On BabyVision that was 63 of 1164 and the overall score still moved up.