Repository navigation
ci: Bump Gym to 91666f9 - #5432
Conversation
Signed-off-by: nemo-ci-bot <[email protected]>
|
/ok to test 7b83eae |
…tures Messages NVIDIA-NeMo/Gym#5771 added source-history capture for Messages harnesses, so a Messages request on the capture route is forwarded to the model instead of being refused with a 422. The case asserted a limitation that is gone; the Responses and Chat cases still cover the gaps that remain. Signed-off-by: Marc Romeyn <[email protected]>
…stance and model server Since NVIDIA-NeMo/Gym#5251, Gym resolves a call's parent only among the calls of the same agent instance and model server. The test's after-restart context set neither, so it searched an empty scope and found no chain. It now carries the identity of the calls it continues, as the model server's own context does. Signed-off-by: Marc Romeyn <[email protected]>
|
/ok to test 044e434 |
|
@terrykong this bump needs two test updates, both pushed here (044e434):
#5401 only showed the second failure because the unit tests stop at the first one ( |
|
@terrykong the rerun of the failed jobs at
My guess is that the revision-5 lock makes the container's uv miss its cached |
|
@marcromeyn I am taking a look at the uv issue here |
…on runs don't call its build backend uv 0.13.6 records requires-dist for the git-sourced nvidia-resiliency-ext in uv.lock. 'uv run --reinstall --no-build-isolation' then asks its build backend, poetry-dynamic-versioning, for metadata, which the environment does not have, and the mcore and automodel extra checks fail. Static dependency metadata, as for flash-attn and causal-conv1d, answers that without the backend. Signed-off-by: Marc Romeyn <[email protected]>
|
@terrykong @kajalj22 a correction to my comment from Tuesday, and a proposed fix for the My guess about the uv version was wrong. Regenerating The failing step is Proposed fix: declare the package's metadata statically, as [[tool.uv.dependency-metadata]]
name = "nvidia-resiliency-ext"
version = "0.7.0"
requires-dist = [...] # the 20 requirements of the v0.7.0 tag, as the lock records them
provides-extras = ["attribution"]I've pushed it as one commit on top of this branch, What I checked locally (uv 0.13.6, no This doesn't explain
|
|
/ok to test 61a4516 |
Signed-off-by: Marc Romeyn <[email protected]>
|
/ok to test 577a24e |
|
@kajalj22 the container builds at The wheel itself is fine. The x86_64 asset on the v0.7.2.post1 release is a 4,522-byte meta-package, a valid zip, and its sha256 ( Main's builds don't hit this because main's sync at that step doesn't resolve (27 ms in today's build). This branch's sync does: it took about 1 s per venv on Nov 27 and passed then. |
Signed-off-by: Marc Romeyn <[email protected]>
|
/ok to test 8797d4e |
terrykong
left a comment
There was a problem hiding this comment.
The Gym bump itself looks sound: all 139 nemo_gym names NeMo-RL imports still resolve with compatible signatures, and no package versions change in the lock. Both GB200 L1 failures are runner disk errors during docker pull ("structure needs cleaning"), so a rerun should clear them.
Asks, all for this PR:
- (C1) Move #5484's checkpoint schema guard (2 → 3), with its test and docs, into this PR.
- (C2) Bump the two uv 0.11.28 pins to 0.13.6 so they can read the new lock format.
- (C3) Delete the dead drain3 and logsage metadata overrides; this also fixes the misplaced drain3 comment.
- (C4) Add a test that a Messages call works through NeMo-RL's capture path.
nemo-rl-review: kind=expert harness=claude-code/2.1.334 model=claude-opus-5-5 effort=medium review-pr-team=v3 reviewed=8797d4e
…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]>
uv.lock is now written by uv 0.13 (lock revision 5). uv 0.11.28 treats it as out of date, so Dockerfile.ngc_pytorch's `uv sync --locked` fails and the lint job re-resolves the lock. Pin the ngc image to 0.13.6 and have the lint job read UV_VERSION from docker/Dockerfile, as the build job already does. Review C2. Signed-off-by: Terry Kong <[email protected]>
Neither logsage nor drain3 is a package in uv.lock, and nvidia-resiliency-ext 0.7.0 no longer depends on logsage, so both dependency-metadata blocks were dead. Removing them also removes the drain3 comment that the new nvidia-resiliency-ext block had ended up under. `uv lock --check` (uv 0.13.6) still passes. Review C3. Signed-off-by: Terry Kong <[email protected]>
…_input Gym 91666f9 admits Messages-harness calls into source-history capture, so the refusal case was removed. Add the positive case: a two-turn /v1/messages call continues its first turn and NeMo-RL keeps it token_in. Review C4. Signed-off-by: Terry Kong <[email protected]>
|
/ok to test edab3c2 |
marcromeyn
left a comment
There was a problem hiding this comment.
Approving at edab3c2, alongside Terry's approval, to cover his commits on this branch.
yuki-97
left a comment
There was a problem hiding this comment.
super run had some issue. but merge it first and will fix it later since this issue should already existed in last bump and main branch.
Automated Gym dependency bump. Updated submodule pointer to 91666f99091979a03d78b76558851f5bf1bbf43a and regenerated uv.lock (deps auto-flow from the submodule pyproject.toml).
Gym CI results
Gym tests run on commit
edab3c2. Curves vs each test's recent history: W&B reportgrpo-nanov3-30BA3B-4n4g-megatron_generation-colocated-reshard-async-gym-quickmedian(data["train/gen_kl_error"]) < 1.3grpo-nanov3-30BA3B-4n4g-megatron_generation-noncolocated-async-gym-quickmedian(data["train/gen_kl_error"]) < 1.3grpo-nemotron3.5-super-120BA12B-56n4g-megatron-rlvr-single-controller-gym-quickdata["train/token_mult_prob_error"]["3"] < 1.1max(data["train/gen_kl_error"]) < 0.005max(data["train/reward"]) > 0.0max(data["train/genrm_simple_agent/reward/mean"]) > 0.0max(data["train/lc_judge_simple_agent/reward/mean"]) > 0.0max(data["train/jailbreak_refusal_with_explanation/reward/mean"]) > 0.0grpo-nanov3-30BA3B-2n8g-megatron_generation-colocated-reshard-async-gym-quickmedian(data["train/gen_kl_error"]) < 1.3grpo-nanov3-30BA3B-2n8g-megatron_generation-noncolocated-async-gym-quickmedian(data["train/gen_kl_error"]) < 1.3