Update tiny model info. and pipeline testing (#25213)
* update tiny_model_summary.json * update * update * update --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -296,11 +296,11 @@ class UMT5ModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin
|
||||
{
|
||||
"conversational": UMT5ForConditionalGeneration,
|
||||
"feature-extraction": UMT5Model,
|
||||
"question-answering": UMT5ForQuestionAnswering,
|
||||
"summarization": UMT5ForConditionalGeneration,
|
||||
"text-classification": UMT5ForSequenceClassification,
|
||||
"text2text-generation": UMT5ForConditionalGeneration,
|
||||
"translation": UMT5ForConditionalGeneration,
|
||||
"question-answering": UMT5ForQuestionAnswering,
|
||||
"text-classification": UMT5ForSequenceClassification,
|
||||
"zero-shot": UMT5ForSequenceClassification,
|
||||
}
|
||||
if is_torch_available()
|
||||
@@ -317,6 +317,16 @@ class UMT5ModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin
|
||||
def setUp(self):
|
||||
self.model_tester = UMT5ModelTester(self)
|
||||
|
||||
# `QAPipelineTests` is not working well with slow tokenizers (for some models) and we don't want to touch the file
|
||||
# `src/transformers/data/processors/squad.py` (where this test fails for this model)
|
||||
def is_pipeline_test_to_skip(
|
||||
self, pipeline_test_casse_name, config_class, model_architecture, tokenizer_name, processor_name
|
||||
):
|
||||
if pipeline_test_casse_name == "QAPipelineTests" and not tokenizer_name.endswith("Fast"):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def _create_and_check_torch_fx_tracing(self, config, inputs_dict, output_loss=False):
|
||||
if not is_torch_fx_available() or not self.fx_compatible:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user