Nemo Mbridge Perf Moe Vlm Training

nvidia/skills/skills/nemo-mbridge-perf-moe-vlm-training

作者 nvidiacf5224d14250Apache-2.03.5K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Practical guidance for training MoE VLMs in Megatron Bridge. Compares FSDP and 3D-parallel approaches, using rounded lessons from Qwen3-VL, Qwen3-Next, and other multimodal experiments.

僅含說明AI & Agents
AI 產生的概覽

在 Megatron Bridge 中訓練 MoE 視覺語言模型的實用指南,比較 FSDP 與 3D 平行方案。

功能
此技能為在 Megatron Bridge 中訓練混合專家(MoE)視覺語言模型提供實用指引。它比較 FSDP 與 3D 平行兩種做法,彙整來自 Qwen3-VL、Qwen3-Next 及較小規模多模態實驗的經驗結論,並提供決策指南、調校要點、代表性設定組合、相容性對照表與常見陷阱。產出的是建議與設定模式,而非程式碼或檔案。
適用情境
適用於首次建置或調校 MoE VLM 訓練、在 FSDP 與 3D 平行之間做選擇,或排查導致 MoE VLM 訓練失敗或記憶體不足的提交。也適合多模態 MoE 吞吐量、重算、CUDA 圖範圍,以及真實資料與模擬資料比較等問題。
執行需求
不需要指令碼或執行環境,僅為說明與參考文件。使用者需熟悉 Megatron Bridge 的訓練概念,以及 GB200、B200 等硬體。

MoE VLM Training

Stable docs: @docs/training/moe-optimization.md Card: @skills/nemo-mbridge-perf-moe-vlm-training/card.yaml

FSDP vs 3D Parallel

ApproachStrengthBest fit
FSDPSimplest path to a working multimodal runfirst bring-up, memory-first tuning, awkward PP boundaries
3D parallelHigher ceiling after tuningstable models with a clean PP layout and time for deeper sweeps

For MoE VLMs, the practical workflow is usually:

  1. get the first reliable run with FSDP
  2. stabilize real-data input, recompute, and memory behavior
  3. move to 3D parallel only if the throughput headroom is worth the extra work

Rounded Findings From Recent VLM Runs

Qwen3-VL class models

The main patterns were consistent across the tracker:

  • FSDP on GB200-class systems can already reach healthy high-teens utilization with a comparatively simple setup
  • B200 FSDP runs are viable, but more sensitive to recompute choice and frozen vision settings
  • 3D parallel can recover to a similar or better operating point, but only after tuning MBS, recompute, and the real vision path together

Real data vs mock data

Mock-data VLM runs are not trustworthy performance proxies. In the experiments, image-free mock runs looked closer to "roughly twice as fast" than "slightly optimistic" when compared with real multimodal input.

Use real or realistic image payloads before drawing any conclusion about VLM throughput.

Smaller multimodal MoE runs

The smaller Qwen3.5-style multimodal experiments reinforce the same lessons:

  • HybridEP is a solid default on GB200
  • TE-scoped CUDA graphs help once the training loop is stable
  • larger MBS can pay off, but only if the vision encoder does not become the next bottleneck

Decision Guide

Choose FSDP when

  • you are bringing up a new VLM for the first time
  • the model has awkward stage boundaries across embedding, vision, and decoder
  • memory fit matters more than absolute throughput
  • you may freeze the vision stack during decoder-focused tuning

Choose 3D parallel when

  • the model is already stable under FSDP
  • the PP layout is clear and repeatable
  • you can sweep MBS, recompute, and CUDA-graph scope together
  • the goal is best steady-state throughput, not easiest bring-up

Key Tuning Knobs

  1. Freeze the vision stack when appropriate: if the work is decoder-focused, freezing the vision side often gives a small but real throughput gain and reduces memory pressure.

  2. Sweep MBS aggressively: VLMs are more MBS-sensitive than text-only MoE runs because the vision path changes the compute-to-overhead balance.

  3. Prefer selective recompute once the model fits: full recompute is a useful bring-up tool, but selective recompute is usually the better steady state.

  4. Match CUDA-graph scope to the workload: attn moe_router moe_preprocess is the safer MoE default, while narrower scopes can still be useful for controlled experiments.

  5. Use ETP only when EP alone is insufficient: it can unlock a layout, but it also introduces more communication and more tuning surface.

Representative Config Families

FSDP-first GB200 path

text
TP=1  CP=1  PP=1EP sized to the expert topology, often largeDispatcher: HybridEP on GB200-class systemsRecompute: start with full, then relax toward selective recompute

3D-parallel GB200 path

text
TP=1  CP=1  PP=1 or modest PPEP and ETP sized to the expert topologyDispatcher: HybridEPCUDA Graph: start narrow, then widen only after the real-data path is stable

Compatibility

FeatureFSDP3D parallel
HybridEP on GB200strong defaultstrong default once topology is stable
CUDA graphsuseful after bring-upuseful, but more scope-sensitive
Freeze visionnatural fitpossible, but less often used as the headline perf path
Selective recomputerecommendedrecommended

Pitfalls

  1. Mock multimodal data is misleading: it can make the decoder look much healthier than the real end-to-end VLM path.

  2. The vision encoder can dominate unexpectedly: profile encoder, projector, and decoder separately before attributing everything to the dispatcher.

  3. Do not compare FSDP and 3D-parallel runs with different effective work: normalize by useful tokens and workload shape, not only by step time.

  4. ETP is not free: use it as a fit or topology tool, not as the default.

  5. Recompute and CUDA-graph choices are coupled: the setting that gets the model to fit is often not the setting that gives the best steady-state speed.

來源與署名

來源:nvidia/skills位於skills/nemo-mbridge-perf-moe-vlm-training提交cf5224d

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架