Skip to content

chore(gym): bump Gym for Environment Server compatibility - #4517

Merged
terrykong merged 6 commits into
NVIDIA-NeMo:mainfrom
zyzhou5:gym-environment-server-bump
Oct 15, 2026
Merged

terrykong merged 6 commits into
NVIDIA-NeMo:mainfrom
zyzhou5:gym-environment-server-bump

Conversation

@zyzhou5

@zyzhou5 zyzhou5 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Bump Gym so rollouts enter through an Environment Server. Legacy wrappers forward requests to the existing agent’s /run, and Gym adds a wrapper automatically when one is missing. Update the dependency lockfile and Docker prefetch version accordingly. See the Environment Server RFC for details.

The Docker build also removes Ray’s bundled yarl alongside aiohttp, so the newer HTTP library uses its compatible installed dependency and Ray can start.

Validation

Ran the existing four-node (16-GPU) async GRPO recipe on AGA with Nemotron-3-Nano-30B-A3B-BF16 at revision b19fa285. The mixed dataset uses the math, code generation, Workplace Assistant, MCQA, instruction following, and structured outputs SimpleAgent instances through their legacy-agent Environment Server wrappers. All three training steps completed successfully. W&B.

Ran 100-step comparison against recent Nemotron-3.5-Nano RLVR adv0 setup, using the same checkpoint, mixed dataset, and training configuration (RL a2792d52, Gym 073fc32b). The AGA run used 86 GB300 nodes: 32 training, 32 generation, 2 Gym, and 20 external judges. W&B

Reproduced the Flow-GRPO Ray startup failure in the failing CI image on DFW (2 H100 GPUs). Disabling Ray’s bundled yarl resolved startup with aiohttp 3.14.5 unchanged. This was a focused startup check; the rebuilt image still needs full CI validation.

Screenshot 2026-10-09 at 9 42 17 AM

@zyzhou5 zyzhou5 added the CI:L1 Run doctests, unit tests, and functional tests label Oct 5, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 5, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@zyzhou5

zyzhou5 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test ea0123d

@zyzhou5

zyzhou5 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test b19fa28

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: b19fa28 (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@zyzhou5
zyzhou5 marked this pull request as ready for review October 5, 2026 22:32
@zyzhou5
zyzhou5 requested review from ananthsub, yaoyu-33 and yfw October 5, 2026 22:32
ananthsub
ananthsub previously approved these changes Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 72cfe09 (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 0ccc2dd (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

1 similar comment
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 0ccc2dd (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@zyzhou5

zyzhou5 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 0ccc2dd

@zyzhou5
zyzhou5 force-pushed the gym-environment-server-bump branch from 0ccc2dd to 84e54a5 Compare October 8, 2026 16:45
@zyzhou5

zyzhou5 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 84e54a5

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 84e54a5 (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@zyzhou5

zyzhou5 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Updated the Gym pin to da9f6714 to include Gym #4323, which fixes the rollout serialization error seen in the H100 and GB200 Gym CI jobs. Refreshed the dependency lockfile accordingly.

@zyzhou5

zyzhou5 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test ba490f1

@github-actions

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: ba490f1 (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@zyzhou5
zyzhou5 force-pushed the gym-environment-server-bump branch from ba490f1 to 800a24e Compare October 12, 2026 17:05
@zyzhou5

zyzhou5 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 800a24e

@github-actions

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 800a24e (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

terrykong
terrykong previously approved these changes Oct 12, 2026
zyzhou5 added a commit to zyzhou5/RL that referenced this pull request Oct 12, 2026
Merge current main and retain its Gym pin and dependency lockfile. PR NVIDIA-NeMo#4517 supplies the Gym update, so this PR now contains only the native router-capture optimization and its tests.

Signed-off-by: Zeyu Zhou <[email protected]>
@zyzhou5
zyzhou5 force-pushed the gym-environment-server-bump branch from 8518897 to 0142758 Compare October 13, 2026 20:57
@zyzhou5

zyzhou5 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 0142758

@github-actions

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 8518897 (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@github-actions

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 0142758 (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@zyzhou5
zyzhou5 force-pushed the gym-environment-server-bump branch from 0142758 to e7046fd Compare October 14, 2026 17:36
@zyzhou5

zyzhou5 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test e7046fd

@github-actions

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: e7046fd (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@zyzhou5
zyzhou5 force-pushed the gym-environment-server-bump branch from e7046fd to a630f24 Compare October 14, 2026 18:16
@zyzhou5

zyzhou5 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test a630f24

@github-actions

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: a630f24 (PR #4517 from gym-environment-server-bump)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of main branch (fast-forward)

All submodule changes look good! ✨

@terrykong
terrykong merged commit 78037a3 into NVIDIA-NeMo:main Oct 15, 2026
118 checks passed
@yfw yfw mentioned this pull request Oct 27, 2026
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests Run CICD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants