Repository navigation
build(speechlm2): bump the vllm extra to vLLM 0.33.0 - #16666
Conversation
… 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]>
Signed-off-by: Valentin Mendelev <[email protected]>
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]>
|
/ok to test 4d83e97 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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.
|
[🤖]: 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. |
|
/cherrypick to=r3.1.0 |
* 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]>
What does this PR do ?
Moves NeMo's
vllmserving 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 currentmain.Collection: speechlm2
Changelog
SpeculativeConfig.hf_config_overridewith atransformers_mtp_overrideskeyword. The SpeechLM replacement accepted onlyhf_config, so every speculative-decoding config (MTP, DFlash, DFlash2) raisedTypeErroronce the plugin was registered. It now forwards extra arguments to vLLM's hook unchanged.GateLinear.allow_ll_fp32w_gemmrouter 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.vllm==0.33.0(torch 2.14.0, Python 3.11 to 3.14), relocked with uv 0.13.7. Thevllmextra keeps its own uv conflict group, so the training extras keep their Torch stack. The only change outside vLLM's own resolution ismultidict6.7.1 -> 7.2.1, which vLLM 0.33 requires (>=6.9.1) and the locked aiohttp 3.14.5 accepts (<8). After mergingmain,uv lock --checkpasses._MIN_VLLM_VERSIONstays 0.32.0: the plugin still works on 0.32.torch==2.14.0), the quantization README, the calibration script docstring, the fine-tuning tutorials (README and notebooks) and thefinetune-speech-llmskill now name 0.33.Validation
pre-commit run --from-ref origin/main --to-ref HEADandgit diff --checkpass; every commit is signed off by its author.Docs:
sphinx-buildofdocs/sourcereports 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.pyon 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_len8192, 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.* Measured earlier on 079e487 with equivalent fixes.
The FP8 audio encoder was built from the checkpoint's
quantization_configon 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 changesmainbrought 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 noVLLM_WORKER_MULTIPROC_METHODset (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.pyclosed-set language question over 100 English utterances: English scored highest for all 100 (before the merge).--max-num-seqs 64 --max-model-len 4096runs 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 exposesdrafter), NVFP4 serving.Before your PR is "Ready for review"
Pre checks:
PR Type:
Additional Information