Skip to content

build(speechlm2): bump the vllm extra to vLLM 0.33.0 - #16666

Merged
pzelasko merged 5 commits into
mainfrom
task/speechlm2-vllm-0.33
Nov 23, 2026
Merged

pzelasko merged 5 commits into
mainfrom
task/speechlm2-vllm-0.33

Conversation

@vmendelev

@vmendelev vmendelev commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do ?

Moves NeMo's vllm serving extra from vLLM 0.32.0 to 0.33.0 and fixes the two SpeechLM plugin incompatibilities that 0.33 exposes. It builds on #16505 (vLLM 0.33's chat parser) and #16667 (spawn default for offline engines), both merged; the branch includes current main.

Collection: speechlm2

Changelog

  • MTP config hook. vLLM 0.33 calls SpeculativeConfig.hf_config_override with a transformers_mtp_overrides keyword. The SpeechLM replacement accepted only hf_config, so every speculative-decoding config (MTP, DFlash, DFlash2) raised TypeError once the plugin was registered. It now forwards extra arguments to vLLM's hook unchanged.
  • Precision guard. Also disables vLLM 0.33's new GateLinear.allow_ll_fp32w_gemm router kernel. vLLM sets the flag while the gate is still BF16, so it is already off in practice; disabling it explicitly keeps the router on the dispatch the guard was validated with if vLLM later recomputes it.
  • Dependencies. vllm==0.33.0 (torch 2.14.0, Python 3.11 to 3.14), relocked with uv 0.13.7. The vllm extra keeps its own uv conflict group, so the training extras keep their Torch stack. The only change outside vLLM's own resolution is multidict 6.7.1 -> 7.2.1, which vLLM 0.33 requires (>=6.9.1) and the locked aiohttp 3.14.5 accepts (<8). After merging main, uv lock --check passes.
  • _MIN_VLLM_VERSION stays 0.32.0: the plugin still works on 0.32.
  • Docs. Serving, DFlash, quantization, Nemotron Transcribe, the fine-tuning guide (including torch==2.14.0), the quantization README, the calibration script docstring, the fine-tuning tutorials (README and notebooks) and the finetune-speech-llm skill now name 0.33.

Validation

  • pre-commit run --from-ref origin/main --to-ref HEAD and git diff --check pass; every commit is signed off by its author.

  • Docs: sphinx-build of docs/source reports the same 190 warnings as the base commit, none in the changed pages.

  • pytest --cpu -m "not pleasefixme" tests/collections/speechlm2/test_vllm_*.py tests/collections/speechlm2/test_finetuning_tools.py on the merged branch: 560 passed, 6 skipped on both vLLM 0.33.0 (env from this lock) and 0.32.0. The new regression tests (test_patched_override_forwards_native_hook_arguments, test_router_uses_fp32_operands_and_preserves_loader) fail without the fixes.

  • GPU serving: 2x RTX PRO 5000 Blackwell (48 GB), TP=2, published nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B* checkpoints, LibriSpeech test-clean + test-other (5,559 utterances, 10.7 h), 16 concurrent requests, ReplaySSM (flashinfer Mamba backend), max_model_len 8192, two passes each. The 0.32 column and the 0.33 rows marked † ran on this PR + fix(speechlm2): find vLLM 0.33's chat parser for the prompt contract #16505 before the merge; the other row ran on the merged branch.

Checkpoint, speculation vLLM 0.32.0 vLLM 0.33.0
BF16, MTP (8 tokens), CTC timestamps (combined WER) * 2.50 / 2.51, RTFx 203 / 206 2.48 / 2.50, RTFx 211 / 211 †
FP8, MTP (8 tokens), CTC timestamps clean 1.66 / 1.68, other 3.29 / 3.26, RTFx 218 / 223 clean 1.71 / 1.69, other 3.26 / 3.33, RTFx 224 / 229 †
FP8, MTP (8 tokens), CTC timestamps, merged branch clean 1.69 / 1.65, other 3.28 / 3.25, RTFx 227 / 229
FP8, DFlash2 (7 tokens) clean 1.72 / 1.68, other 3.25 / 3.26, RTFx 243 / 247 clean 1.71 / 1.69, other 3.30 / 3.38, RTFx 246 / 252 †

* Measured earlier on 079e487 with equivalent fixes.

The FP8 audio encoder was built from the checkpoint's quantization_config on both versions, CTC timestamps returned the expected 27 words for the reference clip, and DFlash2 ran on Model Runner V2 with about 4.9 accepted tokens per step on both versions. DFlash2 on 0.33 still needs the vLLM fix from the draft's model card, as on 0.32. The plugin changes main brought in since those runs are #16505, which they already included, and #16667.

  • Fine-tuning eval scripts on vLLM 0.33, FP8 Transcribe on one 48 GB GPU:

    • vllm_task_eval.py --task asr (MTP on), 300 test-clean utterances: WER 1.28% on the merged branch, with no VLLM_WORKER_MULTIPROC_METHOD set (fix(speechlm2): default offline vLLM engines to spawn in the SpeechLM plugin #16667); 1.33% before the merge, 1.34% on 0.32 at the same settings.
    • vllm_label_scores.py closed-set language question over 100 English utterances: English scored highest for all 100 (before the merge).
    • On a 48 GB GPU, the 30B checkpoint with the default --max-num-seqs 64 --max-model-len 4096 runs out of memory during vLLM's startup profiling on both versions; 0.32 recovers and 0.33 fails, so the 0.33 runs used --max-num-seqs 16 --max-model-len 2048.
  • Not run: calibrate_activations.py (checked against 0.33's source: its vLLM imports resolve and the V1 model runner still exposes drafter), NVFP4 serving.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

Additional Information

… hook

vLLM 0.33 calls SpeculativeConfig.hf_config_override with a
transformers_mtp_overrides keyword. The SpeechLM replacement accepted only
hf_config, so building any draft model config raised TypeError once the
plugin was registered. Forward extra arguments to vLLM's hook unchanged.

Signed-off-by: Valentin Mendelev <[email protected]>
…ecision guard

vLLM 0.33 adds GateLinear.allow_ll_fp32w_gemm. vLLM sets it while the gate
is still BF16, so it stays off after the guard promotes the router to FP32.
Disable it explicitly with the other specialized router GEMMs so the router
keeps the dispatch the guard was validated with.

Signed-off-by: Valentin Mendelev <[email protected]>
vLLM 0.33.0 pins torch 2.14.0 and requires Python 3.11 to 3.14. The vllm
extra stays in its own uv conflict group, so the training extras keep
their Torch stack; the only shared change is multidict 7.2.1, which vLLM
0.33 requires and the locked aiohttp accepts. The plugin's minimum
supported vLLM stays 0.32.0. Update the serving, DFlash, quantization and
fine-tuning docs to the new pin.

Signed-off-by: Valentin Mendelev <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 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.

The tutorial notebooks, the tutorials README and the finetune-speech-llm skill
still named vLLM 0.32 (the skill 0.28) as the serving release; they now name
0.33.0, the version the vllm extra pins.

Signed-off-by: Valentin Mendelev <[email protected]>
@vmendelev
vmendelev marked this pull request as ready for review November 23, 2026 13:14
@vmendelev

Copy link
Copy Markdown
Collaborator Author

/ok to test 4d83e97

@svcnvidia-nemo-ci svcnvidia-nemo-ci 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.

This PR upgrades the serving extra to vLLM 0.33, fixes speculative-config argument forwarding, extends the router precision guard, and updates the serving documentation and tutorials. I reviewed all 33 changed files against the admitted base. The focused regression assertions are useful, but the new forwarding test inherits a skip that prevents it from running in normal CI. That coverage gap blocks readiness.

I traced plugin registration and the target/MTP precision callers, inspected the lockfile changes, and checked the documentation updates. I kept this review static because the repository rubric prohibits running PR code or tests. Source and dependency-data inspection used 766267172432.dkr.ecr.us-east-1.amazonaws.com/nemo-speech:nemo_container-45139905967; no behavioral probes ran. I read the author's reported CPU tests and serving measurements but did not reproduce them.

At my last check, lint, formatting, DCO, CodeQL, and the installation matrix were green. The CI container build and docs build were still running, so I have not verified the main test results.

After the coverage fix and completed CI, a maintainer still needs to accept the dependency upgrade under the repository's approval guardrail.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

assert original_calls == [hf_cfg]
assert salm_module._ORIGINAL_VLLM_HF_CONFIG_OVERRIDE is _recording_native

def test_patched_override_forwards_native_hook_arguments(self, monkeypatch):

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.

Blocking · correctness issue in regression coverage · introduced by this PR.

This new regression test is skipped in normal CI, although the path it exercises does not require vLLM.

The test inherits TestMTPPlugin's skipif(not _HAS_VLLM). The SpeechLM2 CPU jobs use the standard CI image, whose dependency setup selects all, the CUDA extra, compiled, and test, not vllm. The separate vLLM job runs the EasyMagpie serving subtree instead. Reverting the forwarding fix would therefore leave this regression test skipped in CI.

Move this test to module scope alongside the existing _HAS_CONFIG-guarded unit tests, replacing the class's config fake with SimpleNamespace(model_type="unrelated"). Keep the recording hook and assertions. Injecting the hook bypasses the lazy vLLM import, and missing architectures makes normalization return immediately. Leave the integration class's dependency guard intact; removing it would expose tests that genuinely require vLLM.

Acceptance: in the normal CPU CI image without vLLM, this test must pass rather than skip on head and fail with TypeError when the base hook's single-argument signature is restored. This covers argument forwarding without changing the integration tests' dependency requirements.

@github-actions

Copy link
Copy Markdown
Contributor

[🤖]: Hi @vmendelev 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully.

So it might be time to merge this PR or get some approvals.

@pzelasko
pzelasko merged commit 33739be into main Nov 23, 2026
143 checks passed
@pzelasko
pzelasko deleted the task/speechlm2-vllm-0.33 branch November 23, 2026 15:13
@chtruong814

Copy link
Copy Markdown
Collaborator

/cherrypick to=r3.1.0

chtruong814 pushed a commit that referenced this pull request Nov 28, 2026
* fix(speechlm2): forward vLLM's extra arguments through the MTP config hook

vLLM 0.33 calls SpeculativeConfig.hf_config_override with a
transformers_mtp_overrides keyword. The SpeechLM replacement accepted only
hf_config, so building any draft model config raised TypeError once the
plugin was registered. Forward extra arguments to vLLM's hook unchanged.



* fix(speechlm2): disable vLLM 0.33's FP32-weight router GEMM in the precision guard

vLLM 0.33 adds GateLinear.allow_ll_fp32w_gemm. vLLM sets it while the gate
is still BF16, so it stays off after the guard promotes the router to FP32.
Disable it explicitly with the other specialized router GEMMs so the router
keeps the dispatch the guard was validated with.



* build(speechlm2): bump the vllm extra to vLLM 0.33.0

vLLM 0.33.0 pins torch 2.14.0 and requires Python 3.11 to 3.14. The vllm
extra stays in its own uv conflict group, so the training extras keep
their Torch stack; the only shared change is multidict 7.2.1, which vLLM
0.33 requires and the locked aiohttp accepts. The plugin's minimum
supported vLLM stays 0.32.0. Update the serving, DFlash, quantization and
fine-tuning docs to the new pin.



* docs(speechlm2): name vLLM 0.33 in the fine-tuning tutorials and skill

The tutorial notebooks, the tutorials README and the finetune-speech-llm skill
still named vLLM 0.32 (the skill 0.28) as the serving release; they now name
0.33.0, the version the vllm extra pins.



---------


(cherry picked from commit 33739be)

Signed-off-by: Valentin Mendelev <[email protected]>
Signed-off-by: svcnemo-autobot <[email protected]>
Co-authored-by: Valentin Mendelev <[email protected]>

This branch was previously deployed

2 inactive deployments
public — 4d83e977 Deployed Nov 23, 2026 by copy-pr-bot[bot] via release / finalize / publish-docs #2458
test — 4d83e977 Deployed Nov 23, 2026 by copy-pr-bot[bot] via cicd-wait-in-queue #22120
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.

5 participants