Skip to content

feat(vlm): auto-select CUDA VMM on multi-node MNNVL - #33936

Merged
mickqian merged 36 commits into
mainfrom
codex/mm-fabric-transport
Aug 8, 2026
Merged

mickqian merged 36 commits into
mainfrom
codex/mm-fabric-transport

Conversation

@mickqian

@mickqian mickqian commented Aug 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Reuse the CUDA VMM multimodal transport merged in Add CUDA VMM multimodal feature transport #33899; this PR no longer carries a second FABRIC transport or memory pool.
  • Auto-select cuda_vmm for validated multi-node GB200/GB300 MNNVL deployments when an IMEX channel is mounted.
  • Keep single-node NVIDIA multimodal serving on cuda_ipc, and keep cpu as the explicit opt-out and safe fallback.
  • Opt Kimi-K2.5/K2.7, Kimi-K3, and Qwen3-VL-family model classes into CUDA VMM.
  • Extend the deferred encoder-owner path to both CUDA IPC and CUDA VMM, including DP-attention-safe consumer acknowledgements.
  • Document the automatic policy and HBM trade-off in the Kimi-K3 cookbook.

CUDA VMM exports a POSIX FD on one node and a CUDA FABRIC handle on multi-node MNNVL. Consumers still stage remote HBM into local HBM before ViT; the optimization removes the host payload path, not that local staging copy.

Compatibility and memory policy

  • SGLANG_MM_FEATURE_CACHE_MB remains the shared hard HBM budget for both cuda_ipc and cuda_vmm (1 GiB by default, split across tokenizer workers).
  • Pool pressure falls back to inline CPU transport per tensor.
  • SGLANG_USE_CUDA_IPC_TRANSPORT remains a deprecated compatibility alias for cuda_ipc; it is false for cuda_vmm and cpu.
  • SGLANG_USE_IPC_POOL_HANDLE_CACHE remains CUDA-IPC-only and defaults on.
  • --keep-mm-feature-on-device remains a deprecated alias for --mm-feature-transport cuda_ipc.
  • The startup log reports transport type, handle type, HBM budget, base GPU, worker count, and CPU fallback behavior.

Auto-selection gates

Automatic cuda_vmm requires NVIDIA CUDA, a multimodal model that opts in, nnodes > 1, a GB200/GB300 MNNVL device, /dev/nvidia-caps-imex-channels/channel0, and no PD disaggregation. Unsupported models and missing IMEX use CPU. Explicit cuda_vmm retains the upstream validation for model support, pipeline parallelism, Rust server, and CUDA availability.

Validation

  • Pre-commit passes on all changed files.
  • Added policy coverage for supported/unsupported MNNVL auto-selection, missing IMEX, explicit CPU opt-out, shared HBM budget, and legacy-environment behavior.
  • Added Kimi deferred-transport coverage that clamps full-TP acknowledgements to the CUDA VMM proxy's actual consumer set under DP attention.
  • Latest-head NVIDIA CI is running after the main merge. Earlier prototype-FABRIC numbers were removed because they do not measure the CUDA VMM implementation now in this PR.
  • Latest tested head 51ade4ab596b passed a real-weight single-node H200 smoke test: Qwen3-VL-2B, TP8 encoder DP, explicit cuda_vmm, 16/16 random-image requests successful. With conflicting SGLANG_USE_CUDA_IPC_TRANSPORT=1, the explicit flag won, the compatibility env was cleared, the shared 1024 MiB budget was retained, and startup selected the expected POSIX-FD handle.
  • Strict multi-node CUDA VMM A/B is externally capacity-blocked: the 2026-08-08 rx xpus inventory reported 0 available GPUs and 0 free nodes on both GB300 clusters and both B300 clusters. A single-node H200/B200 run cannot validate the multi-node CUDA FABRIC handle or the MNNVL auto-selection gate.

CI States

Latest PR Test (Base): ✅ Run #31236621632
Latest PR Test (Extra): ❌ Run #31236621542

@mickqian mickqian added the run-ci CI: run the baseline test suite on this PR label Aug 7, 2026

mickqian commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci extra

@github-actions github-actions Bot added the run-ci-extra CI: also run the extra suite (requires run-ci) label Aug 7, 2026
@mintlify

mintlify Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lmsysorg 🟢 Ready View Preview Aug 7, 2026, 10:36 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 7, 2026
@mickqian mickqian changed the title feat(vlm): add MNNVL FABRIC feature transport feat(vlm): auto-select CUDA VMM on multi-node MNNVL Aug 7, 2026
@mickqian
mickqian merged commit d747bd0 into main Aug 8, 2026
175 of 201 checks passed
@mickqian
mickqian deleted the codex/mm-fabric-transport branch August 8, 2026 08:01
saturn-acc pushed a commit to saturn-acc/sglang that referenced this pull request Aug 16, 2026
chencjcj pushed a commit to chencjcj/sglang that referenced this pull request Aug 17, 2026
(cherry picked from commit d747bd0)

Conflict resolution: both conflicts took upstream's version.
- server_args.py: _handle_multimodal_feature_transport's auto-select branch
  was rewritten wholesale (gains the is_multimodal gate and the multi-node
  MNNVL/IMEX path); this base only had the flat single-node cuda_ipc branch.
- test_server_args.py: adjacent new test cases covering the rewritten
  branch.
chencjcj added a commit to chencjcj/sglang that referenced this pull request Aug 17, 2026
The sgl-project#33936 cherry-pick resolved a conflict in TestMultimodalFeatureTransport
by taking upstream's side for the new test cases, but the hunk that added the
_set_model_type staticmethod landed in a separate, non-conflicting region that
was lost. All 7 call sites failed with AttributeError.

Restores the helper verbatim from d747bd0. The class's method set now
matches upstream exactly.
Atituiset pushed a commit to Atituiset/sglang that referenced this pull request Sep 10, 2026

This branch was successfully deployed

1 active deployment
staging - docs — d276b4be Deployed Aug 8, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant