Repository navigation
fix(speechlm2): support vLLM 0.29 multimodal processing and keep refit padding on device - #16588
Conversation
Signed-off-by: Valentin Mendelev <[email protected]>
Signed-off-by: Valentin Mendelev <[email protected]>
Speech 732041d29 (NVIDIA-NeMo/Speech#16588) adds vLLM 0.29's multimodal processor hook and keeps refit vocabulary padding on the weight's device. Both environments use the same Speech commit; the lock changes are limited to nemo-toolkit. Signed-off-by: Valentin Mendelev <[email protected]>
DongjiGao
left a comment
There was a problem hiding this comment.
Looks good to me in general. On vLLM 0.29.0, I checked the basic case: the plugin loads the release checkpoint and generates, and CTC timestamps work. I have not verified MTP, DFlash or ReplaySSM.
|
/ok to test 732041d |
|
CI stopped at linting on nemo/utils/callbacks/s3_checkpoint_io.py, which this PR doesn't touch. The branch is 17 commits behind main (#16504 changed that file), and the lint job compares the head with main's tip, so it lints the branch's older copy. Could you merge or rebase onto current main? |
…rocessor-20261107 Signed-off-by: Valentin Mendelev <[email protected]>
|
/ok to test 45ee149 |
|
Reran the MultiTalker ASR job; it timed out on an unrelated hang and passes on main. |
|
Updated the branch to start a fresh CI run: on the previous run, the aggregate Nemo_CICD_Test check kept failing on GitHub API 502 errors while listing jobs, after all test jobs had passed. |
|
/ok to test c1477f4 |
|
[🤖]: 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. |
Speech 732041d29 (NVIDIA-NeMo/Speech#16588) adds vLLM 0.29's multimodal processor hook and keeps refit vocabulary padding on the weight's device. Both environments use the same Speech commit; the lock changes are limited to nemo-toolkit. Signed-off-by: Valentin Mendelev <[email protected]>
Speech 732041d29 (NVIDIA-NeMo/Speech#16588) adds vLLM 0.29's multimodal processor hook and keeps refit vocabulary padding on the weight's device. Both environments use the same Speech commit; the lock changes are limited to nemo-toolkit. Signed-off-by: Valentin Mendelev <[email protected]>
What does this PR do?
Make the SALM vLLM plugin work with vLLM 0.29 and keep vocabulary padding on the source tensor's device during weight refits.
Collection: SpeechLM2.
Changelog
BaseMultiModalProcessor._call_hf_processor, so importingnemo.collections.speechlm2.vllm.salm.audiofailed while inspecting its signature. Inspect the legacy hook only when it exists; otherwise implement vLLM 0.29's_apply_hf_processor_main, which packages the waveforms without an HF processor and leaves placeholder expansion to the normal prompt-update path. Cached calls with a subset of the audio items, or none, are supported. The vLLM 0.28 and 0.32 paths are unchanged._pad_to_vocab_sizeallocated its padding on the default device, sotorch.catmixed CUDA weights received through an IPC refit with CPU padding. Allocate the padding on the input tensor's device.test_vllm_native_processor.py(native hook, CTC opt-in, empty-audio passthrough, full apply with exact text-before-audio spans, text-only prompts, cache hits and partial misses; skipped where vLLM has the legacy hook) andtest_vllm_vocab_padding.py(values and dtype, non-CPU devices, no-padding identity, ambient default device).Usage
No API change. NeMo RL generation workers on vLLM 0.29 load SALM checkpoints with
VLLM_PLUGINS=nemo_speechlm.Validation
pre-commit run --from-ref 979cc6c6a --to-ref HEADandgit diff --checkpass.pytest --cpu -m "not pleasefixme" tests/collections/speechlm2/test_vllm_*.pywith vLLM 0.29.0 and transformers 5.12.1: 486 passed, 1 skipped (the existing gate for vLLM versions that apply prompt updates on token ids only)._call_hf_processor.The branch is based on 979cc6c, the commit validated on GPU, and merges cleanly into current
main.GitHub Actions CI
Trusted PRs run automatically through copy-pr-bot. For an untrusted PR, a maintainer can trigger CI by commenting
/ok to test <head-sha>; repeat this after a new push if the PR remains untrusted.Before your PR is "Ready for review"
Pre checks:
PR Type:
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information