update_pip_test_mapping (#22606)

* Add TFBlipForConditionalGeneration

* update pipeline_model_mapping

* Add import

* Revert changes in GPTSanJapaneseTest

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2023-04-06 17:56:06 +02:00
committed by GitHub
parent 321b0908dd
commit fa01127a67
35 changed files with 70 additions and 19 deletions

View File

@@ -40,6 +40,7 @@ from ...test_modeling_common import (
ids_tensor,
random_attention_mask,
)
from ...test_pipeline_mixin import PipelineTesterMixin
if is_torch_available():
@@ -420,8 +421,9 @@ class AlignModelTester:
@require_torch
class AlignModelTest(ModelTesterMixin, unittest.TestCase):
class AlignModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
all_model_classes = (AlignModel,) if is_torch_available() else ()
pipeline_model_mapping = {"feature-extraction": AlignModel} if is_torch_available() else {}
fx_compatible = False
test_head_masking = False
test_pruning = False