enhance require_deterministic_for_xpu (#37437)
* enhance require_deterministic_for_xpu Signed-off-by: YAO Matrix <matrix.yao@intel.com> * fix style Signed-off-by: YAO Matrix <matrix.yao@intel.com> * fix style Signed-off-by: YAO Matrix <matrix.yao@intel.com> --------- Signed-off-by: YAO Matrix <matrix.yao@intel.com>
This commit is contained in:
@@ -936,6 +936,7 @@ class BertGenerationEncoderDecoderModelTest(EncoderDecoderMixin, unittest.TestCa
|
||||
}
|
||||
|
||||
@slow
|
||||
@require_deterministic_for_xpu
|
||||
def test_roberta2roberta_summarization(self):
|
||||
model = EncoderDecoderModel.from_pretrained("google/roberta2roberta_L-24_bbc")
|
||||
model.to(torch_device)
|
||||
@@ -1080,6 +1081,7 @@ class GPT2EncoderDecoderModelTest(EncoderDecoderMixin, unittest.TestCase):
|
||||
pass
|
||||
|
||||
@slow
|
||||
@require_deterministic_for_xpu
|
||||
def test_bert2gpt2_summarization(self):
|
||||
model = EncoderDecoderModel.from_pretrained("patrickvonplaten/bert2gpt2-cnn_dailymail-fp16")
|
||||
|
||||
|
||||
@@ -634,6 +634,7 @@ class Speech2TextBertModelTest(EncoderDecoderMixin, unittest.TestCase):
|
||||
def test_encoder_decoder_model_from_pretrained_configs(self):
|
||||
pass
|
||||
|
||||
@require_deterministic_for_xpu
|
||||
@unittest.skip(reason="Cannot save full model as Speech2TextModel != Speech2TextEncoder")
|
||||
def test_save_and_load_from_pretrained(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user