[CI] Check test if the GenerationTesterMixin inheritance is correct 🐛 🔫 (#36180)
This commit is contained in:
@@ -136,6 +136,8 @@ class CpmAntModelTester:
|
||||
@require_torch
|
||||
class CpmAntModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
all_model_classes = (CpmAntModel, CpmAntForCausalLM) if is_torch_available() else ()
|
||||
# Doesn't run generation tests. There are interface mismatches when using `generate` -- TODO @gante
|
||||
all_generative_model_classes = ()
|
||||
pipeline_model_mapping = (
|
||||
{"feature-extraction": CpmAntModel, "text-generation": CpmAntForCausalLM} if is_torch_available() else {}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user