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
222f5b08
Unverified
Commit
222f5b08
authored
Dec 06, 2024
by
Cyrus Leung
Committed by
GitHub
Dec 06, 2024
Browse files
[CI/Build] Fix broken multimodal test (#10950)
parent
b031a455
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/models/embedding/vision_language/test_llava_next.py
tests/models/embedding/vision_language/test_llava_next.py
+4
-0
No files found.
tests/models/embedding/vision_language/test_llava_next.py
View file @
222f5b08
...
@@ -2,6 +2,7 @@ from typing import List, Type
...
@@ -2,6 +2,7 @@ from typing import List, Type
import
pytest
import
pytest
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
import
transformers
from
transformers
import
AutoModelForVision2Seq
from
transformers
import
AutoModelForVision2Seq
from
....conftest
import
IMAGE_ASSETS
,
HfRunner
,
PromptImageInput
,
VllmRunner
from
....conftest
import
IMAGE_ASSETS
,
HfRunner
,
PromptImageInput
,
VllmRunner
...
@@ -85,6 +86,9 @@ def _run_test(
...
@@ -85,6 +86,9 @@ def _run_test(
)
)
@
pytest
.
mark
.
skipif
(
transformers
.
__version__
.
startswith
(
"4.46"
),
reason
=
"Model broken with changes in transformers 4.46"
)
@
pytest
.
mark
.
core_model
@
pytest
.
mark
.
parametrize
(
"model"
,
MODELS
)
@
pytest
.
mark
.
parametrize
(
"model"
,
MODELS
)
@
pytest
.
mark
.
parametrize
(
"dtype"
,
[
"half"
])
@
pytest
.
mark
.
parametrize
(
"dtype"
,
[
"half"
])
def
test_models_text
(
def
test_models_text
(
...
...
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