Skip to content

feat(agentic_if): keep episodes in the job's node-local dir when it has one - #6218

Merged
wprazuch merged 1 commit into
wprazuch/segment-node-local-archivefrom
wprazuch/agentic-if-node-local
Nov 16, 2026
Merged

wprazuch merged 1 commit into
wprazuch/segment-node-local-archivefrom
wprazuch/agentic-if-node-local

Conversation

@wprazuch

@wprazuch wprazuch commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Stacked on #6217 (node-local driver directory). It targets that branch, so the diff here is only the agentic_if change; it retargets to main once #6217 merges.

Each agentic_if episode saves several files, so a full run writes thousands into the run's results dir. The agentic_if resources server's artifacts_dir now defaults to $GYM_NODE_LOCAL_DIR/agentic_if when that variable is set, and to <results_dir>/agentic_if otherwise, as before. agentic_if_artifacts_dir still wins.

A benchmark submitted with node_local keeps the episodes on the driver's node. Each Slurm job archives them into the job dir, and later jobs, including the re-grading job gym eval resubmit --recover queues, restore them. The benchmark README shows how to re-verify such a run outside a job. A job that ends without archiving (a failed node, for instance) loses its episodes; their rows stay saved but can no longer be re-graded.

Validation

  • resources_servers/agentic_if/tests/test_config.py: the default with and without GYM_NODE_LOCAL_DIR, and the explicit override.
  • agentic_if config tests plus tests/unit_tests/orchestration/test_node_local.py: 48 passed. The agentic_if suites pass.
  • pre-commit run --files <changed files> passes.

Rollouts

N/A: only where the episode evidence is stored changes; grading is unchanged.

Compatibility and benchmark impact

None without node_local: GYM_NODE_LOCAL_DIR is set only by it.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally.
  • Documentation added or updated (agentic_if READMEs).
  • Pre-commit checks pass locally (on the changed files).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s).

…as one

artifacts_dir now defaults to $GYM_NODE_LOCAL_DIR/agentic_if when the env var
is set (a submitted benchmark with node_local), and to <results_dir>/agentic_if
otherwise, as before. agentic_if_artifacts_dir still wins. The episodes then
leave shared storage; each Slurm job archives them into the job dir and later
jobs, including the recovery re-grading job, restore the newest archive. The
benchmark README says how to re-verify such a run outside the job.

Signed-off-by: Wojciech Prazuch <[email protected]>
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 16, 2026 10:23
@yaoyu-33
yaoyu-33 requested a review from prokotg November 16, 2026 10:35

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

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.

SHIP

LGTM. No concerns found.

I inspected all four changed files and traced configuration precedence, saved-episode lookup, and Slurm archive/restore through continuation and recovery jobs. The documented extraction path matches the stable container path used by submitted runs.

Static review only. I did not execute tests.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added feature New capabilities, enhancements, or enablement work area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 16, 2026
@wprazuch
wprazuch merged commit 5f70a2f into wprazuch/segment-node-local-archive Nov 16, 2026
63 checks passed
@wprazuch
wprazuch deleted the wprazuch/agentic-if-node-local branch November 16, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants