Skip to content

chore(video): add final SA-V + CapRL recipe and launchers - #4190

Closed
ehosseiniasl wants to merge 5 commits into
ehsan/super35-video-runtime-compatfrom
ehsan/super35-video-recipe-launchers
Closed

ehosseiniasl wants to merge 5 commits into
ehsan/super35-video-runtime-compatfrom
ehsan/super35-video-recipe-launchers

Conversation

@ehosseiniasl

@ehosseiniasl ehosseiniasl commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Stacked PR 4 of 4 — final layer. Depends on #4189; review last.
The old unsplit PR #4180 is superseded and is not part of the active review stack.

Scope of this PR

Final experiment configuration only:

  • add the combined SA-V video and CapRL tracking recipe
  • add matched step-120 general, R3, and non-R3 launchers
  • use rollout-compatible square video grids
  • save every five steps and retain all saved video checkpoints
  • pin the Super-compatible SA-V Gym verifier

Active review stack

  1. feat(vlm): support mixed SA-V and CapRL video manifests #4187 — 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 — recipe, launchers, and Gym pin (this PR)

Please review and merge in that order. The Gym verifier implementation is reviewed separately in NVIDIA-NeMo/Gym#3504.

Validation

This PR is 2 commits and 6 files. The recomposed four-PR tree is byte-for-byte identical to the original implementation at f2dd5e60b885b49ea3e0c15e838d7f98092b66f6. Python compilation, launcher bash -n, YAML parsing, and exact-tree comparison pass.

ehosseiniasl and others added 5 commits September 17, 2026 16:50
…attach

Video rows attach statically-preprocessed tensors (one <img><image>*k</img>
run per tubelet) to vLLM-authored rollout tokens. When vLLM's own expansion
disagrees (different per-frame grid or tubelet count), training crashed deep
in Megatron with an unattributable 'Expanded-sequence media alignment failed'.

Compare the placeholder-run structure of the rollout tokens against the
static source tokens before the attach and raise a diagnostic that names the
mismatch: run counts, per-run lengths, first mismatching run, num_frames and
frame size. Plumbed the tokenizer through attach_static_multimodal_payload's
two live call paths (RolloutWorker.run_rollout, run_async_nemo_gym_rollout);
verification is a no-op for image-only turns or when no tokenizer is passed.

Signed-off-by: ehosseiniasl <[email protected]>
Allow a recipe to load frozen weights from the checkpoint instead of forcing training engines to use dummy initialization. This is required when trainer-to-vLLM refit does not cover a frozen vision tower.

Signed-off-by: Ehsan Hosseini Asl <[email protected]>
When the video recipe sets mtp_num_layers=0, clear repeated-layer MTP metadata restored from the step-120 checkpoint before HybridProvider finalization. Otherwise Bridge appends one MTP pattern section and the first training forward fails.

This is the minimal NeMo-RL guard required by the video run; no MCore or Megatron-Bridge pin changes are included.

Signed-off-by: Pulkit Kumar <[email protected]>
Signed-off-by: ehosseiniasl <[email protected]>
Add the combined video-and-tracking recipe plus matched step-120 launchers, including rollout-compatible square video grids, five-step checkpoint cadence, native no-pruning retention, and profile-band labeling.

Signed-off-by: Ehsan Hosseini Asl <[email protected]>
@ehosseiniasl
ehosseiniasl requested review from a team as code owners September 18, 2026 00:04
@copy-pr-bot

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

@github-actions

Copy link
Copy Markdown

✅ Submodule Fast-Forward Check Results

Check based on commit: 88ff8b4 (PR #4180 from ehsan/super35-video-only-final)

✅ Submodules that are properly updated:

Gym: ✅ PR branch is ahead of ehsan/super35-video-runtime-compat branch (fast-forward)

All submodule changes look good! ✨

@ehosseiniasl

Copy link
Copy Markdown
Contributor Author

Superseded after maintainer review. The Gym bump will be handled separately, recipes/launchers remain in internal GitLab, and the generally useful joint-MOPD/video compatibility changes continue in #4199. The active code stack is now #4187 → #4188 → #4189 → #4199.

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.

1 participant