Repository navigation
feat(vlm): support mixed SA-V and CapRL video manifests - #4187
Merged
Merged
Conversation
added 2 commits
September 17, 2026 16:40
Port the mixed static-video and still-image data path used by the combined SA-V + CapRL training run. Preserve per-row tile settings, align processor and tokenizer chat templates, reject the obsolete video_loader key, and fix mixed-batch tensor dtypes. The SA-V Gym verifier is carried as a separate dependency commit based on Super’s current Gym pin, avoiding a submodule rewind. Signed-off-by: Pulkit Kumar <[email protected]> Signed-off-by: ehosseiniasl <[email protected]>
The full_generalist_prod export ships this processor class; the NemoGym multimodal path asserts on _PLACEHOLDER_STYLE_PROCESSOR_NAMES and job 3515316 failed at startup with exactly that assertion. Add it to the placeholder-style and Nemotron video processor allowlists (same two-line hunks as the video-stack branch). Signed-off-by: Pulkit Kumar <[email protected]> Signed-off-by: ehosseiniasl <[email protected]>
This was referenced Sep 17, 2026
Contributor
Author
|
Canonical active review stack:
Please review and merge in this order. The previous unsplit PR #4180 is superseded and is not part of the active stack. The combined tree is unchanged. |
yfw
approved these changes
Sep 18, 2026
arendu
added a commit
that referenced
this pull request
Oct 7, 2026
Port of the backend-independent parts of super-v3.5-posttraining 2ad27a6 (#4187), 501709c (#4189) and a6951c0 (#4199): - Register NemotronH_Omni_Reasoning_V3Processor and NemotronH_Super_Omni_Reasoning_V3Processor as placeholder-style image processors and as Nemotron video processors. - Mixed Gym manifests: only rows that actually carry video media (cached frames or native video parts) take the static-video path; still image rows in the same manifest fall through to the regular Gym placeholder instead of raising. The placeholder token_ids are int64 so mixed batches collate. - data.image_max_num_tiles: logical tile cap kept on the row for Megatron postprocessing and forwarded to vLLM as mm_processor_kwargs.max_num_tiles through the existing _inject_vllm_mm_processor_kwargs helper. - configure_generation_config respects an explicit vllm_cfg.load_format (VLM training needs "auto": the frozen vision tower is never refitted). - _apply_mtp_config: mtp_num_layers=0 also strips mtp_hybrid_override_pattern, mtp_use_repeated_layer and the "/M" MTP suffix of hybrid layer patterns so HybridProvider.finalize() does not re-add an MTP section. - resolve_vllm_video_config rejects the legacy vllm_cfg.video_loader key. - Gym image extraction treats only inline data:image URLs in tool outputs as images and skips unresolvable sources instead of crashing postprocessing. Not ported: f871add (#4188, rollout/train media re-processing at rollout placeholder budgets) and the NanoVLV2 fixed-tile imgs_sizes guard. Main addresses rollout/train media alignment through vLLM media capture (nemo_rl/data/captured_media.py, _capture_request_media) and has restructured the imgs_sizes backfill, so those changes do not apply as written; see the PR description. Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit 1312127)
arendu
added a commit
that referenced
this pull request
Oct 7, 2026
Port of the backend-independent parts of super-v3.5-posttraining 2ad27a6 (#4187), 501709c (#4189) and a6951c0 (#4199): - Register NemotronH_Omni_Reasoning_V3Processor and NemotronH_Super_Omni_Reasoning_V3Processor as placeholder-style image processors and as Nemotron video processors. - Mixed Gym manifests: only rows that actually carry video media (cached frames or native video parts) take the static-video path; still image rows in the same manifest fall through to the regular Gym placeholder instead of raising. The placeholder token_ids are int64 so mixed batches collate. - data.image_max_num_tiles: logical tile cap kept on the row for Megatron postprocessing and forwarded to vLLM as mm_processor_kwargs.max_num_tiles through the existing _inject_vllm_mm_processor_kwargs helper. - configure_generation_config respects an explicit vllm_cfg.load_format (VLM training needs "auto": the frozen vision tower is never refitted). - _apply_mtp_config: mtp_num_layers=0 also strips mtp_hybrid_override_pattern, mtp_use_repeated_layer and the "/M" MTP suffix of hybrid layer patterns so HybridProvider.finalize() does not re-add an MTP section. - resolve_vllm_video_config rejects the legacy vllm_cfg.video_loader key. - Gym image extraction treats only inline data:image URLs in tool outputs as images and skips unresolvable sources instead of crashing postprocessing. Not ported: f871add (#4188, rollout/train media re-processing at rollout placeholder budgets) and the NanoVLV2 fixed-tile imgs_sizes guard. Main addresses rollout/train media alignment through vLLM media capture (nemo_rl/data/captured_media.py, _capture_request_media) and has restructured the imgs_sizes backfill, so those changes do not apply as written; see the PR description. Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit 1312127)
arendu
added a commit
that referenced
this pull request
Oct 7, 2026
Port of the backend-independent parts of super-v3.5-posttraining 2ad27a6 (#4187), 501709c (#4189) and a6951c0 (#4199): - Register NemotronH_Omni_Reasoning_V3Processor and NemotronH_Super_Omni_Reasoning_V3Processor as placeholder-style image processors and as Nemotron video processors. - Mixed Gym manifests: only rows that actually carry video media (cached frames or native video parts) take the static-video path; still image rows in the same manifest fall through to the regular Gym placeholder instead of raising. The placeholder token_ids are int64 so mixed batches collate. - data.image_max_num_tiles: logical tile cap kept on the row for Megatron postprocessing and forwarded to vLLM as mm_processor_kwargs.max_num_tiles through the existing _inject_vllm_mm_processor_kwargs helper. - configure_generation_config respects an explicit vllm_cfg.load_format (VLM training needs "auto": the frozen vision tower is never refitted). - _apply_mtp_config: mtp_num_layers=0 also strips mtp_hybrid_override_pattern, mtp_use_repeated_layer and the "/M" MTP suffix of hybrid layer patterns so HybridProvider.finalize() does not re-add an MTP section. - resolve_vllm_video_config rejects the legacy vllm_cfg.video_loader key. - Gym image extraction treats only inline data:image URLs in tool outputs as images and skips unresolvable sources instead of crashing postprocessing. Not ported: f871add (#4188, rollout/train media re-processing at rollout placeholder budgets) and the NanoVLV2 fixed-tile imgs_sizes guard. Main addresses rollout/train media alignment through vLLM media capture (nemo_rl/data/captured_media.py, _capture_request_media) and has restructured the imgs_sizes backfill, so those changes do not apply as written; see the PR description. Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit 1312127) Signed-off-by: adithyare <[email protected]>
arendu
added a commit
that referenced
this pull request
Oct 7, 2026
Port of the backend-independent parts of super-v3.5-posttraining 2ad27a6 (#4187), 501709c (#4189) and a6951c0 (#4199): - Register NemotronH_Omni_Reasoning_V3Processor and NemotronH_Super_Omni_Reasoning_V3Processor as placeholder-style image processors and as Nemotron video processors. - Mixed Gym manifests: only rows that actually carry video media (cached frames or native video parts) take the static-video path; still image rows in the same manifest fall through to the regular Gym placeholder instead of raising. The placeholder token_ids are int64 so mixed batches collate. - data.image_max_num_tiles: logical tile cap kept on the row for Megatron postprocessing and forwarded to vLLM as mm_processor_kwargs.max_num_tiles through the existing _inject_vllm_mm_processor_kwargs helper. - configure_generation_config respects an explicit vllm_cfg.load_format (VLM training needs "auto": the frozen vision tower is never refitted). - _apply_mtp_config: mtp_num_layers=0 also strips mtp_hybrid_override_pattern, mtp_use_repeated_layer and the "/M" MTP suffix of hybrid layer patterns so HybridProvider.finalize() does not re-add an MTP section. - resolve_vllm_video_config rejects the legacy vllm_cfg.video_loader key. - Gym image extraction treats only inline data:image URLs in tool outputs as images and skips unresolvable sources instead of crashing postprocessing. Not ported: f871add (#4188, rollout/train media re-processing at rollout placeholder budgets) and the NanoVLV2 fixed-tile imgs_sizes guard. Main addresses rollout/train media alignment through vLLM media capture (nemo_rl/data/captured_media.py, _capture_request_media) and has restructured the imgs_sizes backfill, so those changes do not apply as written; see the PR description. Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit 1312127) Signed-off-by: adithyare <[email protected]>
arendu
added a commit
that referenced
this pull request
Oct 7, 2026
Port of the backend-independent parts of super-v3.5-posttraining 2ad27a6 (#4187), 501709c (#4189) and a6951c0 (#4199): - Register NemotronH_Omni_Reasoning_V3Processor and NemotronH_Super_Omni_Reasoning_V3Processor as placeholder-style image processors and as Nemotron video processors. - Mixed Gym manifests: only rows that actually carry video media (cached frames or native video parts) take the static-video path; still image rows in the same manifest fall through to the regular Gym placeholder instead of raising. The placeholder token_ids are int64 so mixed batches collate. - data.image_max_num_tiles: logical tile cap kept on the row for Megatron postprocessing and forwarded to vLLM as mm_processor_kwargs.max_num_tiles through the existing _inject_vllm_mm_processor_kwargs helper. - configure_generation_config respects an explicit vllm_cfg.load_format (VLM training needs "auto": the frozen vision tower is never refitted). - _apply_mtp_config: mtp_num_layers=0 also strips mtp_hybrid_override_pattern, mtp_use_repeated_layer and the "/M" MTP suffix of hybrid layer patterns so HybridProvider.finalize() does not re-add an MTP section. - resolve_vllm_video_config rejects the legacy vllm_cfg.video_loader key. - Gym image extraction treats only inline data:image URLs in tool outputs as images and skips unresolvable sources instead of crashing postprocessing. Not ported: f871add (#4188, rollout/train media re-processing at rollout placeholder budgets) and the NanoVLV2 fixed-tile imgs_sizes guard. Main addresses rollout/train media alignment through vLLM media capture (nemo_rl/data/captured_media.py, _capture_request_media) and has restructured the imgs_sizes backfill, so those changes do not apply as written; see the PR description. Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit 1312127) Signed-off-by: adithyare <[email protected]>
aroshanghias-nvd
pushed a commit
that referenced
this pull request
Oct 17, 2026
Port of the backend-independent parts of super-v3.5-posttraining 2ad27a6 (#4187), 501709c (#4189) and a6951c0 (#4199): - Register NemotronH_Omni_Reasoning_V3Processor and NemotronH_Super_Omni_Reasoning_V3Processor as placeholder-style image processors and as Nemotron video processors. - Mixed Gym manifests: only rows that actually carry video media (cached frames or native video parts) take the static-video path; still image rows in the same manifest fall through to the regular Gym placeholder instead of raising. The placeholder token_ids are int64 so mixed batches collate. - data.image_max_num_tiles: logical tile cap kept on the row for Megatron postprocessing and forwarded to vLLM as mm_processor_kwargs.max_num_tiles through the existing _inject_vllm_mm_processor_kwargs helper. - configure_generation_config respects an explicit vllm_cfg.load_format (VLM training needs "auto": the frozen vision tower is never refitted). - _apply_mtp_config: mtp_num_layers=0 also strips mtp_hybrid_override_pattern, mtp_use_repeated_layer and the "/M" MTP suffix of hybrid layer patterns so HybridProvider.finalize() does not re-add an MTP section. - resolve_vllm_video_config rejects the legacy vllm_cfg.video_loader key. - Gym image extraction treats only inline data:image URLs in tool outputs as images and skips unresolvable sources instead of crashing postprocessing. Not ported: f871add (#4188, rollout/train media re-processing at rollout placeholder budgets) and the NanoVLV2 fixed-tile imgs_sizes guard. Main addresses rollout/train media alignment through vLLM media capture (nemo_rl/data/captured_media.py, _capture_request_media) and has restructured the imgs_sizes backfill, so those changes do not apply as written; see the PR description. Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit 1312127) Signed-off-by: adithyare <[email protected]> (cherry picked from commit 13d0a9d)
aroshanghias-nvd
pushed a commit
that referenced
this pull request
Oct 22, 2026
Port of the backend-independent parts of super-v3.5-posttraining 2ad27a6 (#4187), 501709c (#4189) and a6951c0 (#4199): - Register NemotronH_Omni_Reasoning_V3Processor and NemotronH_Super_Omni_Reasoning_V3Processor as placeholder-style image processors and as Nemotron video processors. - Mixed Gym manifests: only rows that actually carry video media (cached frames or native video parts) take the static-video path; still image rows in the same manifest fall through to the regular Gym placeholder instead of raising. The placeholder token_ids are int64 so mixed batches collate. - data.image_max_num_tiles: logical tile cap kept on the row for Megatron postprocessing and forwarded to vLLM as mm_processor_kwargs.max_num_tiles through the existing _inject_vllm_mm_processor_kwargs helper. - configure_generation_config respects an explicit vllm_cfg.load_format (VLM training needs "auto": the frozen vision tower is never refitted). - _apply_mtp_config: mtp_num_layers=0 also strips mtp_hybrid_override_pattern, mtp_use_repeated_layer and the "/M" MTP suffix of hybrid layer patterns so HybridProvider.finalize() does not re-add an MTP section. - resolve_vllm_video_config rejects the legacy vllm_cfg.video_loader key. - Gym image extraction treats only inline data:image URLs in tool outputs as images and skips unresolvable sources instead of crashing postprocessing. Not ported: f871add (#4188, rollout/train media re-processing at rollout placeholder budgets) and the NanoVLV2 fixed-tile imgs_sizes guard. Main addresses rollout/train media alignment through vLLM media capture (nemo_rl/data/captured_media.py, _capture_request_media) and has restructured the imgs_sizes backfill, so those changes do not apply as written; see the PR description. Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit 1312127) Signed-off-by: adithyare <[email protected]> (cherry picked from commit 13d0a9d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope of this PR
Mixed SA-V and CapRL data ingestion only:
Remaining review stack
Gym will be handled separately, and experiment recipes/launchers remain in internal GitLab.