Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
[CI/Build][Misc] Update Pytest Marker for VLMs (vllm-project#5623)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywang96 authored and robertgshaw2-neuralmagic committed Jun 23, 2024
1 parent 1343cd0 commit 021cfdb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .buildkite/run-cpu-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ docker exec cpu-test-avx2 bash -c "python3 examples/offline_inference.py"
docker exec cpu-test bash -c "cd tests;
pip install pytest Pillow protobuf
cd ../
pytest -v -s tests/models -m \"not llava\" --ignore=tests/models/test_embedding.py --ignore=tests/models/test_registry.py"
pytest -v -s tests/models -m \"not vlm\" --ignore=tests/models/test_embedding.py --ignore=tests/models/test_registry.py"
6 changes: 3 additions & 3 deletions .buildkite/test-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ steps:
- label: Models Test
#mirror_hardwares: [amd]
commands:
- pytest -v -s models -m \"not llava\"
- pytest -v -s models -m \"not vlm\"

- label: Llava Test
- label: Vision Language Models Test
mirror_hardwares: [amd]
commands:
- bash ../.buildkite/download-images.sh
- pytest -v -s models -m llava
- pytest -v -s models -m vlm

- label: Prefix Caching Test
mirror_hardwares: [amd]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ markers = [
"skip_global_cleanup",
"llm: run tests for vLLM API only",
"openai: run tests for OpenAI API only",
"llava: run tests for LLaVA models only",
"vlm: run tests for vision language models only",
]
2 changes: 1 addition & 1 deletion tests/models/test_llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
pytest.skip("TEST_MODELS=DISABLE, skipping model test group",
allow_module_level=True)

pytestmark = pytest.mark.llava
pytestmark = pytest.mark.vlm

# The image token is placed before "user" on purpose so that the test can pass
HF_IMAGE_PROMPTS = [
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_llava_next.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ..conftest import IMAGE_FILES

pytestmark = pytest.mark.llava
pytestmark = pytest.mark.vlm

if should_skip_test_group(group_name="TEST_MODELS"):
pytest.skip("TEST_MODELS=DISABLE, skipping model test group",
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_phi3v.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ..conftest import IMAGE_FILES

pytestmark = pytest.mark.llava
pytestmark = pytest.mark.vlm

# The image token is placed before "user" on purpose so that the test can pass
HF_IMAGE_PROMPTS = [
Expand Down

0 comments on commit 021cfdb

Please sign in to comment.