[generation] bring back tests on vision models (#38603)
* bring back geenration tests on VLMs * remove head mask tests overwritten
This commit is contained in:
committed by
GitHub
parent
90c4b90a10
commit
dbfc79c17c
@@ -782,7 +782,7 @@ class BlipVQAModelTester:
|
||||
@require_vision
|
||||
class BlipVQAModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
all_model_classes = (BlipForQuestionAnswering,) if is_torch_available() else ()
|
||||
# Doesn't run generation tests. There are interface mismatches when using `generate` -- TODO @gante
|
||||
# Doesn't run generation tests due to custom generation logic -- won't fix
|
||||
all_generative_model_classes = ()
|
||||
fx_compatible = False
|
||||
test_head_masking = False
|
||||
@@ -1091,7 +1091,7 @@ class BlipTextRetrievalModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
@require_torch
|
||||
class BlipTextImageModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
all_model_classes = (BlipForConditionalGeneration,) if is_torch_available() else ()
|
||||
# Doesn't run generation tests. There are interface mismatches when using `generate` -- TODO @gante
|
||||
# Doesn't run generation tests due to custom generation logic -- wont fix
|
||||
all_generative_model_classes = ()
|
||||
fx_compatible = False
|
||||
test_head_masking = False
|
||||
|
||||
Reference in New Issue
Block a user