Skip to content

Commit cbf4305

Browse files
committed
vllm plugin: skip backend tests without vllm
Backend selection imports salm.backends, which depends on vLLM symbols. Guard those tests on vLLM availability so CPU SpeechLM2 shards without vLLM skip them like the other plugin runtime tests. Made-with: Cursor Signed-off-by: Dongji Gao <dongjig@nvidia.com>
1 parent afcfa30 commit cbf4305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/collections/speechlm2/test_vllm_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_unknown_attr_raises(self):
210210
_ = cfg.nonexistent_attribute_xyz
211211

212212

213-
@pytest.mark.skipif(not _HAS_CONFIG, reason="NeMoSpeechLMConfig not available")
213+
@pytest.mark.skipif(not (_HAS_CONFIG and _HAS_VLLM), reason="NeMoSpeechLMConfig or vLLM not available")
214214
class TestBackendSelection:
215215
"""Tests for ``backends.make_backend`` dispatch on hybrid/transformer configs."""
216216

0 commit comments

Comments
 (0)