Skip to content

Commit 82c839c

Browse files
committed
+ "--task", "classify"
1 parent 26d4bf5 commit 82c839c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/entrypoints/openai/test_classification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def server():
1818
"--enforce-eager",
1919
"--max-model-len",
2020
"512",
21+
"--task",
22+
"classify",
2123
"--dtype",
2224
DTYPE,
2325
]

tests/models/language/pooling/test_classification.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def test_models(
3737
# switch to use ROCm CK FA backend
3838
monkeypatch.setenv("VLLM_USE_TRITON_FLASH_ATTN", "False")
3939

40-
with vllm_runner(model, max_model_len=512, dtype=dtype) as vllm_model:
40+
with vllm_runner(model, max_model_len=512, dtype=dtype,
41+
task="classify") as vllm_model:
4142
vllm_outputs = vllm_model.classify(example_prompts)
4243

4344
with hf_runner(model,

0 commit comments

Comments
 (0)