[SPEECHLM2] : vllm serve crashes for dense Nemotron backbones
Describe the bug
Serving a dense-Nemotron-backboned SpeechLM checkpoint through the NeMo vLLM plugin (nemo.collections.speechlm2.vllm.salm) fails at engine initialization with AssertionError: assert isinstance(config, NemotronConfig), before any weights are loaded.
Root cause: NeMoSpeechLMConfig (nemo/collections/speechlm2/vllm/salm/config.py) builds the LLM backbone's text_config via a plain AutoConfig.from_pretrained(...), which returns transformers' NemotronConfig class. But vllm/model_executor/models/nemotron.py hard-asserts isinstance(config, NemotronConfig) against vLLM's own private NemotronConfig class (vllm.transformers_utils.configs), a different object with the same name. vLLM avoids this itself for top-level models by checking vllm.transformers_utils.config._CONFIG_REGISTRY for a model-type-specific class before falling back to AutoConfig; the plugin's nested backbone-config loading skips that lookup.
Steps/Code to reproduce bug
pip install vllm==0.28.0
vllm serve DENSE_SPEECHLM_NEMOTRON_MODEL \
--max-model-len 16384 --gpu-memory-utilization 0.8 --disable-custom-all-reduce
Crashes during engine-core initialization with:
File ".../vllm/model_executor/models/nemotron.py", line 390, in __init__
assert isinstance(config, NemotronConfig)
AssertionError
...
RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}Expected behavior
The vLLM server starts, loads the checkpoint, and serves /v1/chat/completions requests (audio transcription) normally, as it does for other backbone architectures.
Environment details
- OS: Linux (WSL2)
- PyTorch: 2.13.0+cu130
- Python: 3.12.12
- vLLM: 0.28.0
- NeMo: main
Additional context
Source: NVIDIA-NeMo/Speech