Skip to content

fix(benchmarks): bound the agent loop on single-turn benchmarks - #3145

Merged
laszkiewiczp merged 1 commit into
NVIDIA-NeMo:mainfrom
laszkiewiczp:plaszkiewicz/max-steps-non-agentic
Sep 7, 2026
Merged

laszkiewiczp merged 1 commit into
NVIDIA-NeMo:mainfrom
laszkiewiczp:plaszkiewicz/max-steps-non-agentic

Conversation

@laszkiewiczp

@laszkiewiczp laszkiewiczp commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

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.

@copy-pr-bot

copy-pr-bot Bot commented Sep 7, 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.

@laszkiewiczp

Copy link
Copy Markdown
Contributor Author

/ok to test aed2097

Comment thread benchmarks/hle/config.yaml Outdated
_inherit_from: equivalence_llm_judge_simple_agent
responses_api_agents:
simple_agent:
max_steps: 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make sure this only applies to the no tools variant of the benchmark.

@laszkiewiczp laszkiewiczp Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@laszkiewiczp
laszkiewiczp marked this pull request as ready for review September 7, 2026 15:19
@laszkiewiczp
laszkiewiczp force-pushed the plaszkiewicz/max-steps-non-agentic branch from aed2097 to a313565 Compare September 7, 2026 15:22
@laszkiewiczp

Copy link
Copy Markdown
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
laszkiewiczp force-pushed the plaszkiewicz/max-steps-non-agentic branch from a313565 to 1c369bb Compare September 7, 2026 17:49
@laszkiewiczp

Copy link
Copy Markdown
Contributor Author

/ok to test 1c369bb

@laszkiewiczp
laszkiewiczp merged commit ae8d388 into NVIDIA-NeMo:main Sep 7, 2026
27 checks passed
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]>
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

1 inactive deployment
public — 1c369bb5 Deployed Sep 7, 2026 by copy-pr-bot[bot] via release / finalize / notify #2658
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants