[CI] Check test if the GenerationTesterMixin inheritance is correct 🐛 🔫 (#36180)
This commit is contained in:
@@ -30,6 +30,7 @@ from transformers.testing_utils import (
|
||||
)
|
||||
from transformers.utils import cached_property
|
||||
|
||||
from ...generation.test_utils import GenerationTesterMixin
|
||||
from ...test_configuration_common import ConfigTester
|
||||
from ...test_modeling_common import ModelTesterMixin, ids_tensor
|
||||
from ...test_pipeline_mixin import PipelineTesterMixin
|
||||
@@ -265,7 +266,7 @@ class UdopModelTester:
|
||||
|
||||
|
||||
@require_torch
|
||||
class UdopModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
class UdopModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
all_model_classes = (
|
||||
(
|
||||
UdopModel,
|
||||
@@ -419,6 +420,14 @@ class UdopModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
model = UdopForConditionalGeneration.from_pretrained(model_name)
|
||||
self.assertIsNotNone(model)
|
||||
|
||||
@unittest.skip(reason="TODO: Fix me @joao")
|
||||
def test_generate_with_head_masking(self):
|
||||
pass
|
||||
|
||||
@unittest.skip(reason="TODO: Fix me @joao")
|
||||
def test_generate_without_input_ids(self):
|
||||
pass
|
||||
|
||||
|
||||
class UdopEncoderOnlyModelTester:
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user