Scan your whole stack
Latest version: vgit:a09e0684651b263125f4e3c132b01002d30d7b01
nemo-mbridge-perf-vision-dp-over-cp was last scanned on 25 Nov 2026 at commit a09e0684. Risk score 1 of 100 (low). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| a09e0684 | 1 rule fired |
Findings for commit a09e0684. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The skill's text or bundled scripts contain encoded content, such as a long base64 or hex string, a dense run of hex escapes, or invisible Unicode tag characters that can carry hidden instructions. Skills rarely need these. On its own this is not evidence of malicious behavior.
LOWThe score describes a09e0684; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
This skill covers vision_dp_over_cp: reusing the language model's
context-parallel process group to shard the images (or temporal tubelets) of
a microbatch across CP ranks, so each rank encodes 1/CP of them instead of all
of them.
It is not ring attention and shares nothing with
nemo-mbridge-perf-hierarchical-context-parallel beyond the process group.
Vision encoders such as RADIO already attend within each image via
cu_seqlens, so there is no long sequence to split and no cross-rank attention
communication. The correct mental model is data parallelism over images,
borrowing the CP group — a rank encodes whole images, never partial ones.
Shipped for Nemotron Omni. The MCore split/gather helpers are model-agnostic, so the pattern generalizes to any Bridge VLM with a dynamic-resolution encoder.
dist_train.vision_context_parallel_sizeBridge already has a similarly named and completely different knob:
vision_context_parallel_size on the dist-train path
(src/megatron/bridge/models/qwen_vl/qwen3_vl_provider.py, consumed in
src/megatron/bridge/training/initialize.py).
model.vision_dp_over_cp (bool) |
dist_train.vision_context_parallel_size (int) |
|
|---|---|---|
| Ranks | Reuses the language model's CP ranks | Gives the vision tower its own ranks |
| Splits | Whole images across those ranks | The vision encoder's own sequence dimension |
Encoder context_parallel_size |
Stays 1 |
Set to this value |
| Models | Nemotron Omni | Qwen3-VL dist-train |
They are not alternatives and do not compose in any tested configuration.
cfg.model.context_parallel_size = 2 # the flag is a no-op at CP=1
cfg.model.vision_dp_over_cp = False # opt out; on by default
Defaults to True. It self-disables when context_parallel_size == 1, so a
recipe that does not raise CP behaves exactly as it did before the flag existed
and reports no error. Opting out is only useful for A/B measurement or to
isolate a suspected split/gather bug.
Provider field, src/megatron/bridge/models/nemotron_omni/nemotron_omni_provider.py:
vision_dp_over_cp: bool = True
Gating, in NemotronOmniModel.__init__
(src/megatron/bridge/models/nemotron_omni/modeling_nemotron_omni.py):
self.context_parallel_lm = language_transformer_config.context_parallel_size
self.vision_dp_over_cp = vision_dp_over_cp and self.context_parallel_lm > 1
The split itself wraps an upstream MCore helper:
return split_to_context_parallel_ranks_dynamic_res(
images,
imgs_sizes,
vision_packed_seq_params,
patch_dim=self.patch_dim,
fp8_enabled=False,
fp8_recipe=getattr(self.config, "fp8_recipe", None),
num_frames=num_frames,
temporal_patch_size=temporal_patch_size,
)
Project-then-gather, at the end of _encode_images:
if shard_vision:
# Project before the gather so the projector stays sharded, then
# restore the global feature set every CP rank's media merge needs.
projected = _project_multimodal_embeddings(self.vision_projection, encoded)
gathered = gather_from_context_parallel_ranks_dynamic_res(projected, num_padded_ranks)
return gathered.contiguous()
Upstream helpers (do not modify — changes go through the MCore repo):
3rdparty/Megatron-LM/megatron/core/models/multimodal/context_parallel.py
— split_to_context_parallel_ranks_dynamic_res,
gather_from_context_parallel_ranks_dynamic_res3rdparty/Megatron-LM/megatron/core/models/multimodal/llava_model.py
— performs the identical split/encode/gather on its temporal pathimgs_sizes and the vision
PackedSeqParams (cu_seqlens, max_seqlen) to describe only the rank-local
share. Sharding is by image count, not patch count; the remainder goes to
the last rank.num_padded_imgs = max(0, cp_size - num_imgs) dummy 1x1
images so no rank runs an empty encoder, and returns num_padded_ranks so the
gather can drop them again.1/CP. The vision encoder's
own context_parallel_size stays hardcoded to 1 in
_build_vision_config — that is correct and unchanged by this feature, since
the sharding happens outside the encoder, over its inputs._pad_patch_grid_to_even zero-pads an odd patch grid
before pixel shuffle. Only the injected 1x1 placeholders hit this path;
real frames are already even in both extents.Nemotron-3 Nano Omni 30B-A3B, 2 nodes / 16 GPUs, PP=1 DP=2 EP=8 ETP=1 MBS=2
GBS=64 GA=16, with only vision_dp_over_cp flipped:
| Dataset | TP | CP | Step time | Peak memory |
|---|---|---|---|---|
| InfoVQA | 4 | 2 | 13.2 -> 12.5 s | 81 -> 73 GB |
| Mantis | 2 | 4 | 12.2 -> 11.6 s | 81 -> 77 GB |
| llava_video | 4 | 2 | 13.6 -> 13.0 s | 84 -> 75 GB |
It is both a memory win (-5% to -11% peak) and a throughput win (-4% to -5% step time). Do not describe it as memory-only; a single early video A/B suggested step time was flat, and the three-dataset sweep contradicted that.
The Mantis row is the weakest memory result, and that is the load-balance signature described under Pitfalls, not noise.
context_parallel_lm > 1. Both
checked-in Nemotron Omni recipes ship CP=1, so the on-by-default value changes
nothing there. Always confirm CP>1 before attributing a result to this flag,
and note that raising CP now silently enables image sharding too.ProcessGroupCollection
whose cp size disagrees with context_parallel_size would shard against the
wrong ranks. Bridge raises instead:
"Nemotron Omni vision_dp_over_cp does not match its process group".1x1 placeholder images are odd by construction.
Without _pad_patch_grid_to_even, the CP>images case fails only for the
specific microbatches that trigger placeholder injection — an intermittent
failure that looks data-dependent.Unit tests. The second file self-launches a two-rank torch.distributed job and
asserts the sharded tower matches the unsharded one for fewer images than ranks,
an exact split, and a remainder; it skips when fewer than two GPUs are visible:
uv run python -m pytest tests/unit_tests/models/nemotron_omni/test_nemotron_omni_model.py -q
uv run python -m pytest tests/unit_tests/models/nemotron_omni/test_vision_dp_over_cp_distributed.py -q
Multi-GPU A/B. Run the same recipe twice at CP>1, flipping only the flag, and compare reported step time and peak allocated memory:
uv run python -m torch.distributed.run --nproc_per_node=8 \
scripts/training/run_recipe.py \
--recipe nemotron_omni_cord_v2_sft_config \
model.context_parallel_size=2 \
model.vision_dp_over_cp=false \
train.train_iters=20
Success criteria:
false arm; step time does not regress.context_parallel_size > 1 — the flag
silently self-disables at CP=1.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.