Repository navigation
Conversation
u-brixton
left a comment
There was a problem hiding this comment.
LGTM for this scoped follow-up at dd4165c. The previous private description request is fixed: both sections identify the actual temporary Gym pin and the companion merge dependency, and the human review checkbox is preserved. No new major regression or follow-up comment remains.
Six specialist roles ran across three agents, followed by independent discovery and challenge passes and a separate editor. Complete source comparison shows that the Gym advance changes one test file; runtime and dependency inputs are unchanged. Earlier checkpoint/API/dependency evidence is retained with hash provenance. One private-auth test passed with current NRL/Gym imports.
Validation is adapted macOS CPU evidence, with local port and Ray-context stubs and a guard preventing Ray initialization. The historical 72 checkpoint passes and 37-selector dependency-export checks were not rerun. Native locked Linux/GPU validation was not run; the known pre-commit host/lock blocker was not retried. At review time, CI reported pr-description and Self-review failures; local results did not establish green CI. Gym must still land, followed by the acknowledged pin replacement, rechecks and restacking. This review does not establish merge readiness.
nemo-rl-review: kind=self harness=codex/0.169.0-alpha.11.1 model=gpt-6.1-sol effort=high review-pr-team=v3 reviewed=dd4165c
…lineage Gym 91666f9 scopes the parent search of captured calls by agent instance and model server. Rows saved by the older Gym have no model server, so resuming such a snapshot would treat already generated tokens as prompt. Bump GYM_CHECKPOINT_SCHEMA_VERSION to 3 so these snapshots are refused, and say how to continue (restore_mode=trainer_checkpoint, or a new checkpoint_dir). Also update the comments and docs that said Gym's head server serves the global config unredacted; Gym 91666f9 masks credential strings there. Moved from #5484 (review C1). Signed-off-by: Terry Kong <[email protected]>
Advance Gym to merged main d3525861 and allow its Hydra 1.4 requirements through the existing scoped Bridge override. Preserve all other package versions and Git sources. Generate with uv 0.13.6, retain unchanged metadata and equivalent selector spellings, and verify identical frozen exports for all 37 supported extra combinations. The lock diff is limited to +88/-156 lines. Signed-off-by: Renat Zayashnikov <[email protected]>
Advance the existing Gym checkpoint schema gate to require model-scoped capture lineage before restoring participant state. Reject earlier rollout snapshots with trainer-boundary recovery guidance, and verify the old manifest against its original writer. Correct the private configuration and public credential-redaction explanations for the upgraded Gym baseline. Signed-off-by: Renat Zayashnikov <[email protected]>
Signed-off-by: Renat Zayashnikov <[email protected]>
Signed-off-by: Renat Zayashnikov <[email protected]>
Signed-off-by: Renat Zayashnikov <[email protected]>
dd4165c to
c2afa39
Compare
|
/ok to test c2afa39 |
Signed-off-by: Renat Zayashnikov <[email protected]>
|
/ok to test 8ac9004 |
|
btw @u-brixton i'm creating a new PR #5553 for the gym bump with a slightly newer commit. i can help land the bump over there, so i'll close this one in favor of that one which i'll trigger internal CI for |
Gym 98458af needs hydra-core>=1.4.0rc3, but Megatron-Bridge pins hydra-core<1.4, so nemo-rl[mcore] and nemo-rl[nemo-gym] could not be locked together. Widen Bridge's Hydra range to <1.5 with a package-scoped override, the same fix as #5484. The sglang and trtllm extras keep hydra-core 1.3.7 and omegaconf 2.3.1: tensorrt-llm caps omegaconf below the 2.4 line that Hydra 1.4 needs. Every other extra moves to hydra-core 1.4.0rc3 and omegaconf 2.4.1rc4. No other package versions change. Signed-off-by: Terry Kong <[email protected]>
Gym requires hydra-core>=1.4.0rc3, its security floor that only exists on the 1.4 pre-release line, but Megatron-Bridge caps hydra-core <1.4. The package-scoped override replaces Bridge's whole Hydra requirement, so this comment is the only place that says why. Carried over from the review of #5484 (C2). Comment only: uv.lock is unchanged. Signed-off-by: Terry Kong <[email protected]>
What and why
Upgrade Gym for #5460, with the dependency alignment and restore compatibility required by the newer API. The temporary pin is
001df4f9dff48fd97d0f140ca643e2131705fdf5from Gym #6846. This prerequisite contains dependency and restore changes; #5460 contains the training integration.flowchart LR G[Saved Gym rollout snapshot] --> V{Checkpoint version 3?} V -->|yes| R[Restore participant state] V -->|no| E[Stop with recovery instructions]Current-version restore and trainer checkpoints without Gym state keep their existing paths. This separates the baseline upgrade and compatibility work from the looping feature.
Issues
No separate issue: this prerequisite and #5460 track the integration.
Convergence / perf / functionality proof
The 72 checkpoint tests passed, including current-version commit/load/restore and rejection of the old manifest before actor restore. The old manifest fixture was verified against the actual immutable pre-upgrade writer. Existing private-auth assertions also passed with local port and Ray-context stubs; no Ray runtime was launched and their assertions were unchanged. Pinned Ruff 0.9.9 lint/imports/format checks and diff whitespace checks passed.
Independent resolver/export checks using repository-pinned uv 0.13.6 found equivalent native/committed requirements across all 37 supported extra combinations and the supported Linux architectures. Only Hydra/OmegaConf identities change from the base. Full locked pre-commit cannot run on this macOS host because the lock targets Linux. No GPU/cluster training or convergence run is claimed.
Needs upstream changes
Gym #6846 must merge first. Before merging this PR, replace the temporary pin with Gym’s landed commit, rerun the dependency and integration checks, and update #5460 on this branch.