File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 50
50
- name : " worker and utils"
51
51
markers : " not e2e"
52
52
flags : " --timeout=300"
53
+ - name : " compatibility"
54
+ markers : " compat"
55
+ flags : " --timeout=300"
53
56
54
57
name : " ${{ matrix.test_suite.name }} (${{ matrix.vllm_version.name }})"
55
58
90
93
if : (steps.changed-src-files.outputs.any_changed == 'true' && matrix.vllm_version.repo)
91
94
run : |
92
95
uv add ${{ matrix.vllm_version.repo }}
96
+ echo "TEST_VLLM_VERSION=main" >> $GITHUB_ENV
93
97
94
98
- name : " Install vLLM with Spyre plugin"
95
99
if : steps.changed-src-files.outputs.any_changed == 'true'
Original file line number Diff line number Diff line change
1
+ import pytest
2
+ pytestmark = pytest .mark .compat
3
+ import os
4
+
5
+ VLLM_VERSION = os .getenv ("TEST_VLLM_VERSION" , "default" )
6
+
7
+ def test_vllm_bert_support (monkeypatch ):
8
+ '''
9
+ Test if the vllm version under test already has Bert support for V1
10
+ '''
11
+
12
+ from vllm .model_executor .models .interfaces import SupportsV0Only
13
+ from vllm .model_executor .models .bert import BertEmbeddingModel
14
+
15
+ bert_supports_v0_only = issubclass (BertEmbeddingModel , MamSupportsV0Onlymal )
16
+
17
+ if VLLM_VERSION == "main" :
18
+ assert not bert_supports_v0_only
19
+ else :
20
+ assert bert_supports_v0_only , ("The currently supported vLLM version already"
21
+ "supports Bert in V1. Remove the compatibility workarounds." )
You can’t perform that action at this time.
0 commit comments