fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -198,6 +198,13 @@ class LlavaForConditionalGenerationModelTest(ModelTesterMixin, GenerationTesterM
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_config(self):
|
def test_config(self):
|
||||||
|
# overwritten from `tests/test_configuration_common.py::ConfigTester` after #36077
|
||||||
|
# TODO: avoid overwritten once there is a better fix for #36077
|
||||||
|
def check_config_can_be_init_without_params():
|
||||||
|
config = self.config_tester.config_class()
|
||||||
|
self.config_tester.parent.assertIsNotNone(config)
|
||||||
|
|
||||||
|
self.config_tester.check_config_can_be_init_without_params = check_config_can_be_init_without_params
|
||||||
self.config_tester.run_common_tests()
|
self.config_tester.run_common_tests()
|
||||||
|
|
||||||
# overwrite inputs_embeds tests because we need to delete "pixel values" for LVLMs
|
# overwrite inputs_embeds tests because we need to delete "pixel values" for LVLMs
|
||||||
|
|||||||
Reference in New Issue
Block a user