Skip to content

feat(vlm): support mixed SA-V and CapRL video manifests - #4187

Merged
yfw merged 2 commits into
super-v3.5-posttrainingfrom
ehsan/super35-video-data-support
Sep 18, 2026
Merged

yfw merged 2 commits into
super-v3.5-posttrainingfrom
ehsan/super35-video-data-support

Conversation

@ehosseiniasl

@ehosseiniasl ehosseiniasl commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Merged foundation for the remaining video compatibility stack.
The old unsplit PR #4180 and experiment-only PR #4190 are superseded.

Scope of this PR

Mixed SA-V and CapRL data ingestion only:

  • support SA-V static-video and CapRL still-image rows in one manifest
  • preserve per-row tiling settings and mixed-batch tensor dtypes
  • align processor and tokenizer chat templates
  • reject the obsolete video loader configuration
  • recognize the Super 3.5 Nemotron multimodal processor

Remaining review stack

  1. fix(vlm): align training media with rollout placeholders #4188 — rollout/media alignment, including Pulkit's two correctness follow-ups
  2. fix(video): load frozen vision weights and disable unused MTP #4189 — frozen-vision loading and the optional MTP-off guard
  3. fix(vlm): add joint MOPD video #4199 — joint MOPD media compatibility and optional-MTP Bridge support

Gym will be handled separately, and experiment recipes/launchers remain in internal GitLab.

Pulkit Kumar 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]>
@ehosseiniasl
ehosseiniasl requested review from a team as code owners September 17, 2026 23:45
@copy-pr-bot

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

Copy link
Copy Markdown
Contributor Author

Canonical active review stack:

  1. feat(vlm): support mixed SA-V and CapRL video manifests #4187 — mixed SA-V/CapRL data support
  2. fix(vlm): align training media with rollout placeholders #4188 — rollout/media alignment
  3. fix(video): load frozen vision weights and disable unused MTP #4189 — frozen-vision and MTP runtime compatibility
  4. chore(video): add final SA-V + CapRL recipe and launchers #4190 — final recipe, launchers, and Gym pin

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
yfw merged commit 2ad27a6 into super-v3.5-posttraining Sep 18, 2026
16 checks passed
@yfw
yfw deleted the ehsan/super35-video-data-support branch September 18, 2026 07:04
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants