13
13
from tests .e2e .e2e_utils import run_oneshot_for_e2e_testing
14
14
from tests .examples .utils import requires_gpu_count
15
15
16
- """
17
16
try :
18
17
from vllm import LLM , SamplingParams
19
18
20
19
vllm_installed = True
21
20
except ImportError :
22
21
vllm_installed = False
23
22
logger .warning ("vllm is not installed. This test will be skipped" )
24
- """
23
+
25
24
26
25
HF_MODEL_HUB_NAME = "nm-testing"
27
26
TEST_DATA_FILE = os .environ .get ("TEST_DATA_FILE" , "" )
@@ -43,7 +42,7 @@ def record_config_file(record_testsuite_property: Callable[[str, object], None])
43
42
# Will run each test case in its own process through run_tests.sh
44
43
# emulating vLLM CI testing
45
44
@requires_gpu_count (1 )
46
- # @pytest.mark.skipif(not vllm_installed, reason="vLLM is not installed, skipping test")
45
+ @pytest .mark .skipif (not vllm_installed , reason = "vLLM is not installed, skipping test" )
47
46
class TestvLLM :
48
47
"""
49
48
The following test quantizes a model using a preset scheme or recipe,
@@ -139,7 +138,6 @@ def test_vllm(self):
139
138
folder_path = self .save_dir ,
140
139
)
141
140
142
- """
143
141
logger .info ("================= RUNNING vLLM =========================" )
144
142
145
143
sampling_params = SamplingParams (temperature = 0.80 , top_p = 0.95 )
@@ -162,7 +160,6 @@ def test_vllm(self):
162
160
logger .info (generated_text )
163
161
164
162
self .tear_down ()
165
- """
166
163
167
164
def tear_down (self ):
168
165
if self .save_dir is not None :
0 commit comments