Repository navigation
refactor(eval): move the evaluation modules into nemo_gym/eval - #5244
Merged
Merged
Conversation
|
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. |
ananthsub
marked this pull request as ready for review
October 29, 2026 13:02
35 of 41 tasks
Contributor
svcnvidia-nemo-ci
left a comment
Contributor
There was a problem hiding this comment.
SHIP
LGTM — no concerns found.
Reviewed all changed files and traced the affected import-compatibility, CLI, comparison, reverification, packaging, and test-fixture paths. No qualifying regressions found.
Static source review only; tests were not executed.
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.
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 14:04
4354063 to
8fbb8bc
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 14:19
8fbb8bc to
62eb23c
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 16:27
9088a2d to
e101258
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 16:45
e101258 to
049f420
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 17:01
049f420 to
4dcfcac
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 18:25
4dcfcac to
ef7ada2
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 19:04
ef7ada2 to
2a6b9a8
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 29, 2026 19:33
2a6b9a8 to
03f0925
Compare
ananthsub
force-pushed
the
ananthsub/layout-eval
branch
from
October 30, 2026 01:28
03f0925 to
df596e9
Compare
5 tasks done
eval_plan.py, rollout_reverification.py and the comparison and rollout_compare packages move as they are. Regenerate the public API of each layout package that exists here from what non-test code outside nemo_gym imports, and point code outside nemo_gym, tests included, at nemo_gym.<package>. The reverification, eval plan and comparison tests move into tests/unit_tests/eval; the reverification tests read the ATIF fixtures from tests/unit_tests/trajectory/fixtures. Signed-off-by: Ananth Subramaniam <[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.
What and why
Moves evaluation on top of collected rollouts into a new
nemo_gym/eval/package: eval plans, reverifying saved rollouts, and comparing runs.Where this PR sits
The stack lands bottom-up; each PR's base is the branch of the PR before it, so each diff shows only that PR's change.
Where the package sits
An arrow means "imports"; each package imports only packages below it. Yellow: created by this PR. Green: created by an earlier PR in the stack. Grey: still to come.
What moves
Whole modules, unchanged:
nemo_gym/eval_plan.pynemo_gym/eval/eval_plan.pynemo_gym/rollout_reverification.pynemo_gym/eval/rollout_reverification.pynemo_gym/comparison/nemo_gym/eval/comparison/nemo_gym/rollout_compare/nemo_gym/eval/rollout_compare/How to review
One commit. Its changes:
MOVED_MODULESinnemo_gym/_moved_paths.py.scripts/migrate_imports.py.evallayer becomes thenemo_gym.evalpackage.fern/docs.ymlredirects the old library reference pages to the new ones.comparisonandrollout_compareare recorded as packages, so their submodules resolve too.tests/unit_tests/eval/. The reverification tests read the ATIF fixtures fromtests/unit_tests/trajectory/fixtures/.Public API
Every layout package that exists after this PR has a lazy public API in its
__init__.py: the names code outsidenemo_gym/imports from it (servers and their tests, benchmarks, scripts, and code samples in docs and skills), plus every name it already exported, each served from the submodule that defines it on first use. Code outsidenemo_gym/and its tests (servers and their tests, benchmarks, scripts, and docs) imports those names fromnemo_gym.<package>, so later moves inside a package leave it alone. Code insidenemo_gym/, and the library's tests undertests/, import from the module that defines each name, so the import-linter contract sees every dependency and a test reads what it patches. A patch target names the module the code under test looks the name up in.AGENTS.mdstates the rule.The exporter guide (
fern/versions/latest/pages/contribute/exporters.mdx, from #5077) follows the same rule:nemo_gym.artifactsandnemo_gym.config. Those two public APIs gain the names the guide uses:Exporter,ExportResult,unexportable_reason,ExportPreparationError,IsolatedExporter,RunArtifactsandRunExportConfig.tests/unit_tests/exporter_guide/exactly, so those files import the same way. The facade test that holds the library's tests to defining-module imports skips that directory.Validation
pytest -n 16 tests/unit_tests, also with-W errorfor the moved paths. The only failures are environment-specific and unrelated to the move: this machine's hostname resolves to127.0.1.1, which the sandbox host check refuses (the Harbor run summary tests and the benchmark listing test), and two Docker PTY tests.lint-imports.pre-commit runon the changed files.Rollout evidence: N/A. The modules move unchanged.
Compatibility
nemo_gym.eval.*. A logging config set onnemo_gymstill covers them.python scripts/migrate_imports.py <paths>.Issue
Part of #5166.