Repository navigation
feat(video): add Gym support for sync and async GRPO - v2 - #3648
Conversation
785eeab to
c7adbfe
Compare
|
This video path is static prompt video only: one clip known before rollout, processed on the driver, then glued onto the first user turn. That matches image Gym for the initial prompt pixels, but not for env-produced media. Image GRPO indexes
A future multi-turn env that returns a new Fine for the current recipes (mp4 is in the user prompt). If later Gym tasks emit video mid-trajectory, video needs the image shape: Gym returns Worth stating so this is not mistaken for a general video-Gym contract. |
|
Please drop The in-tree recipes already cover the productized config:
I do not see author names or |
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
Address all actionable review comments for PR #3648. - centralize image, video, and audio content aliases across preprocessing - validate cached frames as one video source and normalize local image aliases - align Nemotron Omni tubelet placeholders and timestamps with vLLM metadata - materialize one strict frame-sampling contract for rollout and policy paths - reattach deduplicated media to sync and async Gym message logs consistently - remove obsolete optional-epoch handling from SingleController step clamping - document video runtime, cache, epoch, and raw-TMPE contracts - add focused config, media, vLLM, and executable 2n/16n regression coverage Signed-off-by: Ehsan Hosseini Asl <[email protected]>
c7adbfe to
fda58a4
Compare
Address all actionable review comments for PR #3648. - centralize image, video, and audio content aliases across preprocessing - validate cached frames as one video source and normalize local image aliases - align Nemotron Omni tubelet placeholders and timestamps with vLLM metadata - materialize one strict frame-sampling contract for rollout and policy paths - reattach deduplicated media to sync and async Gym message logs consistently - remove obsolete optional-epoch handling from SingleController step clamping - document video runtime, cache, epoch, and raw-TMPE contracts - add focused config, media, vLLM, and executable 2n/16n regression coverage - pin Gym to merged video Responses API integration NVIDIA-NeMo/Gym#2324 Signed-off-by: Ehsan Hosseini Asl <[email protected]>
fda58a4 to
3b96de2
Compare
|
/ok to test 9a64fea |
Signed-off-by: rohitrango <[email protected]>
|
/ok to test 54f5234 |
Signed-off-by: rohitrango <[email protected]>
1 similar comment
|
/ok to test a99a34c |
|
/ok to test ef5ac5e |
…detection (backport of upstream 7571a7d hunk) _detect_invalid_tool_call_and_malformed_thinking called len() on output_item_dict['content'], which is None when the model's final output item has no text (e.g. reasoning-only/truncated or tool-call-only turns). G3 alpha Gym smoke crashed with TypeError on the first rollout batch. Applies exactly the upstream hunk from 7571a7d (feat(video) NVIDIA-NeMo#3648) for this function only. REBASE NOTE: body change (nemo_rl/) — identical to upstream main, drop this commit when rebasing onto a base that contains 7571a7d. tests/unit/environments/test_nemo_gym_utils.py -k detect: 5 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WUyjG1JyGHBaK4pnNWrjN2 Signed-off-by: potatowarriors <[email protected]>
Summary
Add end-to-end static-prompt video support for NeMo Gym GRPO with synchronous and asynchronous Megatron training.
This PR:
Scope
This integration supports static prompt media: one video known before rollout and attached to the initial user turn. Environment-produced video in later trajectory turns is not supported by this PR.
Generic GRPO step-limit semantics, SingleController behavior, async lifecycle/checkpoint changes, and unrelated refit ordering are intentionally outside this PR. It does not patch vLLM source interpolation behavior.
Validation
704 passed, 6 skippedacross recipe/config, dataset conversion, Gym video, multimodal rollout, Nemotron preprocessing, and stock-vLLM compatibility coverage.Related integrations
feat(video): enable canonical Nemotron Omni training for V2 MoE checkpointsfeat(video): support video inputs in vLLM responsesBoth upstream integrations are merged, and the RL submodules are pinned to commits containing them. No separate Megatron-LM change is required.