Skip to content

Commit fe9ee94

Browse files
committed
Entrypoints Integration Test (Pooling)
Signed-off-by: wang.yuqi <[email protected]>
1 parent 6c8deac commit fe9ee94

21 files changed

+32
-30
lines changed

.buildkite/test-pipeline.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ steps:
111111
- tests/entrypoints/
112112
commands:
113113
- pytest -v -s entrypoints/openai/tool_parsers
114-
- pytest -v -s entrypoints/ --ignore=entrypoints/llm --ignore=entrypoints/openai --ignore=entrypoints/offline_mode --ignore=entrypoints/test_chat_utils.py
114+
- pytest -v -s entrypoints/ --ignore=entrypoints/llm --ignore=entrypoints/openai --ignore=entrypoints/offline_mode --ignore=entrypoints/test_chat_utils.py --ignore=entrypoints/pooling
115115

116116
- label: Entrypoints Integration Test (LLM) # 30min
117117
timeout_in_minutes: 40
@@ -146,6 +146,19 @@ steps:
146146
- pytest -v -s entrypoints/openai --ignore=entrypoints/openai/test_chat_with_tool_reasoning.py --ignore=entrypoints/openai/test_oot_registration.py --ignore=entrypoints/openai/test_tensorizer_entrypoint.py --ignore=entrypoints/openai/correctness/ --ignore=entrypoints/openai/test_collective_rpc.py --ignore=entrypoints/openai/tool_parsers/
147147
- pytest -v -s entrypoints/test_chat_utils.py
148148

149+
- label: Entrypoints Integration Test (Pooling)
150+
timeout_in_minutes: 130
151+
mirror_hardwares: [amdexperimental]
152+
working_dir: "/vllm-workspace/tests"
153+
fast_check: true
154+
torch_nightly: true
155+
source_file_dependencies:
156+
- vllm/
157+
- tests/entrypoints/pooling
158+
commands:
159+
- export VLLM_WORKER_MULTIPROC_METHOD=spawn
160+
- pytest -v -s entrypoints/pooling
161+
149162
- label: Distributed Tests (4 GPUs) # 35min
150163
timeout_in_minutes: 50
151164
mirror_hardwares: [amdexperimental]

tests/entrypoints/pooling/__init__.py

Whitespace-only changes.

tests/entrypoints/pooling/correctness/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

tests/entrypoints/pooling/llm/__init__.py

Whitespace-only changes.

tests/entrypoints/llm/test_classify.py renamed to tests/entrypoints/pooling/llm/test_classify.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
import pytest
77
import torch
88

9+
from tests.models.utils import softmax
910
from vllm import LLM, PoolingParams
1011
from vllm.distributed import cleanup_dist_env_and_memory
1112

12-
from ...models.utils import softmax
13-
1413
MODEL_NAME = "jason9693/Qwen2.5-1.5B-apeach"
1514

1615
prompts = ["The chef prepared a delicious meal."]
File renamed without changes.
File renamed without changes.

tests/entrypoints/llm/test_reward.py renamed to tests/entrypoints/pooling/llm/test_reward.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
import pytest
77
import torch
88

9+
from tests.models.utils import softmax
910
from vllm import LLM, PoolingParams
1011
from vllm.distributed import cleanup_dist_env_and_memory
1112

12-
from ...models.utils import softmax
13-
1413
MODEL_NAME = "internlm/internlm2-1_8b-reward"
1514

1615
prompts = ["The chef prepared a delicious meal."]

0 commit comments

Comments
 (0)