Remove ConversationalPipeline and Conversation object (#31165)
* Remove ConversationalPipeline and Conversation object, as they have been deprecated for some time and are due for removal * Update not-doctested.txt * Fix JA and ZH docs * Fix JA and ZH docs some more * Fix JA and ZH docs some more
This commit is contained in:
@@ -228,7 +228,6 @@ class BlenderbotSmallModelTest(ModelTesterMixin, GenerationTesterMixin, Pipeline
|
||||
all_generative_model_classes = (BlenderbotSmallForConditionalGeneration,) if is_torch_available() else ()
|
||||
pipeline_model_mapping = (
|
||||
{
|
||||
"conversational": BlenderbotSmallForConditionalGeneration,
|
||||
"feature-extraction": BlenderbotSmallModel,
|
||||
"summarization": BlenderbotSmallForConditionalGeneration,
|
||||
"text-generation": BlenderbotSmallForCausalLM,
|
||||
@@ -247,7 +246,7 @@ class BlenderbotSmallModelTest(ModelTesterMixin, GenerationTesterMixin, Pipeline
|
||||
def is_pipeline_test_to_skip(
|
||||
self, pipeline_test_casse_name, config_class, model_architecture, tokenizer_name, processor_name
|
||||
):
|
||||
return pipeline_test_casse_name in ("TextGenerationPipelineTests", "ConversationalPipelineTests")
|
||||
return pipeline_test_casse_name == "TextGenerationPipelineTests"
|
||||
|
||||
def setUp(self):
|
||||
self.model_tester = BlenderbotSmallModelTester(self)
|
||||
|
||||
@@ -323,7 +323,7 @@ class FlaxBlenderbotSmallModelTest(FlaxModelTesterMixin, unittest.TestCase, Flax
|
||||
def is_pipeline_test_to_skip(
|
||||
self, pipeline_test_casse_name, config_class, model_architecture, tokenizer_name, processor_name
|
||||
):
|
||||
return pipeline_test_casse_name in ("TextGenerationPipelineTests", "ConversationalPipelineTests")
|
||||
return pipeline_test_casse_name == "TextGenerationPipelineTests"
|
||||
|
||||
def setUp(self):
|
||||
self.model_tester = FlaxBlenderbotSmallModelTester(self)
|
||||
|
||||
@@ -185,7 +185,6 @@ class TFBlenderbotSmallModelTest(TFModelTesterMixin, PipelineTesterMixin, unitte
|
||||
all_generative_model_classes = (TFBlenderbotSmallForConditionalGeneration,) if is_tf_available() else ()
|
||||
pipeline_model_mapping = (
|
||||
{
|
||||
"conversational": TFBlenderbotSmallForConditionalGeneration,
|
||||
"feature-extraction": TFBlenderbotSmallModel,
|
||||
"summarization": TFBlenderbotSmallForConditionalGeneration,
|
||||
"text2text-generation": TFBlenderbotSmallForConditionalGeneration,
|
||||
@@ -201,7 +200,7 @@ class TFBlenderbotSmallModelTest(TFModelTesterMixin, PipelineTesterMixin, unitte
|
||||
def is_pipeline_test_to_skip(
|
||||
self, pipeline_test_casse_name, config_class, model_architecture, tokenizer_name, processor_name
|
||||
):
|
||||
return pipeline_test_casse_name in ("TextGenerationPipelineTests", "ConversationalPipelineTests")
|
||||
return pipeline_test_casse_name == "TextGenerationPipelineTests"
|
||||
|
||||
def setUp(self):
|
||||
self.model_tester = TFBlenderbotSmallModelTester(self)
|
||||
|
||||
Reference in New Issue
Block a user