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:
@@ -362,7 +362,16 @@ class MptModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin,
|
||||
test_torchscript = False
|
||||
test_head_masking = False
|
||||
pipeline_model_mapping = (
|
||||
{"feature-extraction": MptModel, "text-generation": MptForCausalLM} if is_torch_available() else {}
|
||||
{
|
||||
"feature-extraction": MptModel,
|
||||
"question-answering": MptForQuestionAnswering,
|
||||
"text-classification": MptForSequenceClassification,
|
||||
"text-generation": MptForCausalLM,
|
||||
"token-classification": MptForTokenClassification,
|
||||
"zero-shot": MptForSequenceClassification,
|
||||
}
|
||||
if is_torch_available()
|
||||
else {}
|
||||
)
|
||||
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user