Repository navigation
Conversation
The dispatch budget bullet said a failed or timed-out attempt is recorded only if it ran at least as long as the median, "so long timeouts raise the margin and early failures do not shrink it". The tracker splits on whether the agent's /run call failed, not on how the rollout ended: a rollout the agent reports as failed or timed out inside a usable reply is always recorded, and a recorded attempt can lower the p75 as well as raise it. State the actual rule and drop the claim about which way the margin moves. Follow-up to NVIDIA-NeMo#4134. Signed-off-by: Tsvetan (Sven) Rankov <[email protected]> Assisted-by: Claude Code
zyzhou5
approved these changes
Oct 12, 2026
zyzhou5
enabled auto-merge
October 12, 2026 21:12
Contributor
|
/ok to test 6a04e40 |
Contributor
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38612576063 |
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.
What does this PR do?
Corrects a sentence I added in #4134 to the Dispatch budget bullet (
gym eval run --resume) inreference/cli-commands.mdx. It said:Two parts of that don't match
main:_post_subroutinecallsrecord()whenever the agent's/runreturns a usable reply (status below 400 and a JSON body), andrecord_failure()only when the call itself fails (nemo_gym/rollout_collection.py:3670-3713,succeededis set at :3677). A rollout that the agent reports as failed or timed out inside a normal reply, such asnooa_agent'stimeout_exceeded(responses_api_agents/nooa_agent/app.py:262-268), is therefore always recorded, however short it was./runafter 30 s (at the median) brings it to 307.5 s, and so does an agent-reported timeout after 5 s.The new sentence states the rule without claiming a direction:
No issue: this is a docs follow-up to #4134. The frozen
fern/versions/v0.7.0snapshot doesn't contain the sentence (andr0.7.0has norecord_failure), so onlylatestchanges.Not changed here: the comment above the
finallyblock (rollout_collection.py:3707-3708, "but only by raising it") makes the same directional claim. I left it alone to keep this PR docs-only; happy to send a one-line follow-up if you'd like it changed too.Validation
upstream/main(7204f6b):DispatchLatencyTracker.record,record_failureanddrain_margin(rollout_collection.py:1203-1244),_post_subroutine(:3641-3713), andraise_for_status(server_utils.py:685-686,response.ok).DispatchLatencyTrackerwith the durations above: baseline margin 400.0;record_failure(5)leaves 400.0 (ignored);record_failure(30)gives 307.5;record(5)gives 307.5;record_failurebefore any recorded attempt records nothing.python tests/unit_tests/test_fern_docs_links.py: 18 passed.pre-commit run --all-files: all hooks pass (none of them check.mdx);git diff --checkis clean.cd fern && npx -y fern-api@latest check(thenpm run checkcommand, fern-api 5.151.0): 0 errors; the only warning is the redirects check being skipped because I'm not logged in to Fern.Rollouts
N/A: docs-only change. No environment, agent or model behaviour changes.
Compatibility and benchmark impact
None.
Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).Proposed labels (I cannot apply labels): docs, area:evaluation, needs-review
cc @Kh4L (#3891) @yaoyu-33 (#3853)