Skip to content

fix(grpo): preserve and bind NeMo Gym rollout routing - #4328

Draft
ehosseiniasl wants to merge 2 commits into
ehsan/main-video-frame-contract-entrypoints-vllm029from
ehsan/main-video-sync-gym-routing-vllm029
Draft

ehosseiniasl wants to merge 2 commits into
ehsan/main-video-frame-contract-entrypoints-vllm029from
ehsan/main-video-sync-gym-routing-vllm029

Conversation

@ehosseiniasl

@ehosseiniasl ehosseiniasl commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #4327.

Summary

  • keep nemo_gym registered as NeMo Gym when the synchronous response-data path uses a VLM policy
  • continue routing ordinary multimodal environments to the built-in vlm environment
  • bind the Gym actor returned by worker setup() to the canonical nemo_gym train and validation routes in both GRPO entrypoints
  • prevent rollout from failing after full model initialization with KeyError: 'nemo_gym'

Why both changes are required

Dataset setup preserves the logical NeMo Gym route, but worker setup owns the actual Gym actor because it must target the generation endpoints reserved during initialization. The rollout API reads that actor from task_to_env["nemo_gym"]; retaining only dataset task mappings is insufficient.

Validation

Sustained vLLM 0.29 validation — 2026-09-30

  • 8-node synchronous video GRPO on the full stack: Slurm 7557507, 32 GPUs. It completed 96 consecutive rollout/logprob/optimizer/refit/wake cycles and stopped normally at its planned wall-time boundary with Slurm exit 0:0, using full context 65536, max output 16384, and 64 frames. W&B: https://wandb.ai/adlr/Nemotron-omni-RL-debug/runs/d2f77jk1
  • 16-node SingleController async video GRPO on the full stack: Slurm 7560433, 64 GPUs. It completed five consecutive 128-group / 2,048-sequence optimizer-and-refit cycles and cleared the exact update-2 allocator-fragmentation OOM seen in the prior sustained run. Update 1 refit took 11.194s; update 2 refit took 11.022s. W&B: https://wandb.ai/adlr/Nemotron-omni-RL-debug/runs/o2ew7b6e
  • Async update 2 recorded 2,046 valid sequences, loss 0.0029460, TMPE 1.0287239, generation KL 0.0034557, reward 0.6441926, two high-TMPE masks, and zero dropped/replaced prompt groups. The actual trainer workers were verified with PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True.
  • Effective runtime precision was independently verified as model/policy bfloat16 and vLLM KV-cache dtype auto; both validations used vLLM 0.29.0.

@copy-pr-bot

copy-pr-bot Bot commented Sep 29, 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.

@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-frame-contract-entrypoints-vllm029 branch from 9fe29fa to a5a7623 Compare September 29, 2026 08:38
@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-sync-gym-routing-vllm029 branch from 996084c to 93dfc19 Compare September 29, 2026 08:39
@ehosseiniasl ehosseiniasl changed the title fix(vlm): preserve NeMo Gym routing in sync runner fix(grpo): preserve and bind NeMo Gym rollout routing Sep 29, 2026
@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-sync-gym-routing-vllm029 branch from da5516c to 747938f Compare October 1, 2026 00:43
@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-frame-contract-entrypoints-vllm029 branch from a5a7623 to 8dfeaf5 Compare October 1, 2026 00:43
@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-sync-gym-routing-vllm029 branch from 747938f to f538843 Compare October 1, 2026 06:48
@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-frame-contract-entrypoints-vllm029 branch from 8dfeaf5 to a0de8be Compare October 1, 2026 06:48
@terrykong terrykong added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Nov 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants