[CI/Build] Fix broken multimodal test (#10950)
This commit is contained in:
@@ -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(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@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(
|
||||||
|
|||||||
Reference in New Issue
Block a user