Update tiny model summary file (#27388)
* update * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -24,6 +24,7 @@ from transformers.testing_utils import require_torch, require_torch_gpu, slow, t
|
||||
from transformers.utils import cached_property
|
||||
|
||||
from ...test_modeling_common import ModelTesterMixin, ids_tensor, random_attention_mask
|
||||
from ...test_pipeline_mixin import PipelineTesterMixin
|
||||
|
||||
|
||||
if is_vision_available():
|
||||
@@ -262,9 +263,9 @@ class FuyuModelTester:
|
||||
|
||||
|
||||
@require_torch
|
||||
class FuyuModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
class FuyuModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
all_model_classes = (FuyuForCausalLM,) if is_torch_available() else ()
|
||||
pipeline_model_mapping = {"image-to-text": FuyuForCausalLM} if is_torch_available() else {}
|
||||
pipeline_model_mapping = {"text-generation": FuyuForCausalLM} if is_torch_available() else {}
|
||||
|
||||
test_head_masking = False
|
||||
test_pruning = False
|
||||
|
||||
Reference in New Issue
Block a user