Skip to content

Commit 590412a

Browse files
committed
Reverted changes in test_hybrid.py
Signed-off-by: Thomas Ortner <[email protected]>
1 parent bdaf361 commit 590412a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/models/language/generation/test_hybrid.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_batching(
9494
)
9595

9696

97-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
97+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
9898
@pytest.mark.parametrize("max_tokens", [32])
9999
@pytest.mark.parametrize("num_logprobs", [5])
100100
@pytest.mark.parametrize("chunked_prefill_token_size", [1, 4, 16])
@@ -130,7 +130,7 @@ def test_chunked_prefill(
130130
)
131131

132132

133-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
133+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
134134
@pytest.mark.parametrize("max_tokens", [10])
135135
def test_chunked_prefill_with_parallel_sampling(
136136
vllm_runner,
@@ -162,7 +162,7 @@ def test_chunked_prefill_with_parallel_sampling(
162162
vllm_model.generate(example_prompts, sampling_params)
163163

164164

165-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
165+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
166166
@pytest.mark.parametrize("max_tokens", [20])
167167
def test_mamba_cache_cg_padding(
168168
vllm_runner,
@@ -191,7 +191,7 @@ def test_mamba_cache_cg_padding(
191191
"Could be related to mamba cache not padded correctly")
192192

193193

194-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
194+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
195195
@pytest.mark.parametrize("max_tokens", [20])
196196
def test_models_preemption_recompute(
197197
vllm_runner,
@@ -219,7 +219,7 @@ def test_models_preemption_recompute(
219219
)
220220

221221

222-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
222+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
223223
def test_fail_upon_inc_requests_and_finished_requests_lt_available_blocks(
224224
vllm_runner,
225225
example_prompts,
@@ -242,7 +242,7 @@ def test_fail_upon_inc_requests_and_finished_requests_lt_available_blocks(
242242
"steps finished requests registered unnecessarily ")
243243

244244

245-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
245+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
246246
def test_state_cleanup(
247247
vllm_runner,
248248
example_prompts,
@@ -263,7 +263,7 @@ def test_state_cleanup(
263263
"could be related to finished_requests_ids")
264264

265265

266-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
266+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
267267
@pytest.mark.parametrize("max_tokens", [64])
268268
def test_multistep_correctness(
269269
vllm_runner,
@@ -290,7 +290,7 @@ def test_multistep_correctness(
290290

291291

292292
@multi_gpu_test(num_gpus=2)
293-
@pytest.mark.parametrize("model", SSM_MODELS[0:1] + HYBRID_MODELS[0:2])
293+
@pytest.mark.parametrize("model", [SSM_MODELS[0], HYBRID_MODELS[0]])
294294
@pytest.mark.parametrize("max_tokens", [64])
295295
def test_hybrid_distributed_produces_identical_generation(
296296
vllm_runner,

0 commit comments

Comments
 (0)