Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
4ad7b53e
Unverified
Commit
4ad7b53e
authored
Jun 18, 2024
by
Roger Wang
Committed by
GitHub
Jun 18, 2024
Browse files
[CI/Build][Misc] Update Pytest Marker for VLMs (#5623)
parent
f0cc0e68
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
.buildkite/run-cpu-test.sh
.buildkite/run-cpu-test.sh
+1
-1
.buildkite/test-pipeline.yaml
.buildkite/test-pipeline.yaml
+3
-3
pyproject.toml
pyproject.toml
+1
-1
tests/models/test_llava.py
tests/models/test_llava.py
+1
-1
tests/models/test_llava_next.py
tests/models/test_llava_next.py
+1
-1
tests/models/test_phi3v.py
tests/models/test_phi3v.py
+1
-1
No files found.
.buildkite/run-cpu-test.sh
View file @
4ad7b53e
...
...
@@ -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"
.buildkite/test-pipeline.yaml
View file @
4ad7b53e
...
...
@@ -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
]
...
...
pyproject.toml
View file @
4ad7b53e
...
...
@@ -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"
,
]
tests/models/test_llava.py
View file @
4ad7b53e
...
...
@@ -7,7 +7,7 @@ from vllm.config import VisionLanguageConfig
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
=
[
...
...
tests/models/test_llava_next.py
View file @
4ad7b53e
...
...
@@ -7,7 +7,7 @@ from vllm.config import VisionLanguageConfig
from
..conftest
import
IMAGE_FILES
pytestmark
=
pytest
.
mark
.
llava
pytestmark
=
pytest
.
mark
.
vlm
_PREFACE
=
(
"A chat between a curious human and an artificial intelligence assistant. "
...
...
tests/models/test_phi3v.py
View file @
4ad7b53e
...
...
@@ -8,7 +8,7 @@ from vllm.utils import is_cpu
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
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment