Skip to content

Support NemotronH_Omni_Reasoning_V3 in SGLang - #35599

Merged
Fridge003 merged 29 commits into
sgl-project:mainfrom
rystewart-nvidia:nemotron-3.5-super-vl
Sep 10, 2026
Merged

Fridge003 merged 29 commits into
sgl-project:mainfrom
rystewart-nvidia:nemotron-3.5-super-vl

Conversation

@rystewart-nvidia

@rystewart-nvidia rystewart-nvidia commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Motivation

The new Nemotron checkpoint uses the NemotronH_Omni_Reasoning_V3 architecture, which SGLang does not currently recognize. It falls back to the generic Transformers implementation, and the embedded MTP and quantized vision weights do not load correctly.

Modifications

  • Register NemotronH_Omni_Reasoning_V3 as a multimodal model using the existing Nano Nemotron VL implementation.
  • Reuse the existing Nemotron-H runtime and Mamba configuration.
  • Unwrap the language model config for embedded MTP and handle the checkpoint's language_model. weight prefix.
  • Load and apply the vision projector's final LayerNorm.
  • Support the alternate RADIO weight layout used by the quantized checkpoints, including split Q/K/V weights.
  • Add tests

Most of this reuses the existing Nemotron-H and Nano Nemotron VL paths.

Accuracy Tests

Speed Tests and Profiling

This PR is mainly adding model support. Runtime tests included CUDA graphs and speculative decoding to make sure those paths work.

Checklist


CI States

Latest PR Test (Base): ⏳ Run #34506937330
Latest PR Test (Extra): ❌ Run #34506936523
Latest PR Test (AMD ROCm 10): ❌ Run #34506937053

@rystewart-nvidia

Copy link
Copy Markdown
Contributor Author

/tag-and-rerun-ci

1 similar comment
@nvpohanh

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

rystewart-nvidia and others added 7 commits August 26, 2026 17:31
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
init_moe_gemm_config only looked for hf_config.text_config, so VLMs whose
language sub-config is named llm_config (NemotronH_Omni_Reasoning_V3) fell back
to the top-level config, found no MoE top-k attribute, and skipped
initialize_moe_config entirely. get_moe_runner_backend() then returned auto
instead of the configured backend, leaving NVFP4 MoE weights prepared for
CUTLASS while the runner resolved to FlashInfer TRTLLM:

  NotImplementedError: Unsupported moe_runner_backend for NVFP4 MoE:
  MoeRunnerBackend.FLASHINFER_TRTLLM.

Fall back to hf_text_config, which resolves llm_config / language_config /
thinker_config and returns the top-level config when there is no sub-config.

Signed-off-by: elvischenv <219235043+elvischenv@users.noreply.github.com>

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 64ff8e9)
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
@rystewart-nvidia

Copy link
Copy Markdown
Contributor Author

/tag-and-rerun-ci extra

@nvpohanh

Copy link
Copy Markdown
Collaborator

@rystewart-nvidia could you fix the conflicts? thanks

@nvpohanh

nvpohanh commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

/rerun-failed-ci

@Fridge003

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T01:51:35.945369Z 0545f5c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0545f5c4b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread python/sglang/srt/models/nemotron_h_mtp.py Outdated
Signed-off-by: rystewart-nvidia <rystewart@nvidia.com>
Comment thread python/sglang/srt/managers/scheduler.py Outdated
Comment thread python/sglang/srt/arg_groups/overrides.py Outdated
Comment thread test/registered/unit/managers/test_scheduler_moe_config.py Outdated
Signed-off-by: rystewart-nvidia <rystewart@nvidia.com>
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
@nvpohanh

nvpohanh commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

/rerun-failed-ci

@nvpohanh

nvpohanh commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

/rerun-failed-ci

@elvischenv elvischenv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rystewart-nvidia could you fix the conflicts? thanks

rystewart-nvidia and others added 4 commits September 8, 2026 15:56
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
@nvpohanh

nvpohanh commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

/rerun-failed-ci

@Fridge003
Fridge003 merged commit fae8cd8 into sgl-project:main Sep 10, 2026
141 of 165 checks passed
mqhc2020 pushed a commit to mqhc2020/sglang that referenced this pull request Sep 15, 2026
Signed-off-by: Ryan Stewart <rystewart@nvidia.com>
Signed-off-by: rystewart-nvidia <rystewart@nvidia.com>
Co-authored-by: elvischenv <219235043+elvischenv@users.noreply.github.com>
Co-authored-by: Po-Han Huang (NVIDIA) <53919306+nvpohanh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants