mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Disable temporarily too slow tests (Longformer/LED) (#10062)
* Disable temporarily too slow tests * Fix style * Fix template
This commit is contained in:
parent
b1aa4982cd
commit
8bb52bd240
@ -353,10 +353,6 @@ class TFLEDModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
self.assertEqual(model.config.output_hidden_states, True)
|
||||
check_encoder_attentions_output(outputs)
|
||||
|
||||
def test_saved_model_creation(self):
|
||||
# This test is too long (>30sec) and makes fail the CI
|
||||
pass
|
||||
|
||||
def test_mixed_precision(self):
|
||||
# TODO JP: Make LED float16 compliant
|
||||
pass
|
||||
@ -377,6 +373,22 @@ class TFLEDModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
# Need to check with PVP how to properly fix this
|
||||
pass
|
||||
|
||||
@slow
|
||||
def test_saved_model_with_hidden_states_output(self):
|
||||
# Temporarily disable this test in order to find
|
||||
# how to better handle it without timing out the CI
|
||||
pass
|
||||
|
||||
def test_saved_model_creation(self):
|
||||
# This test is too long (>30sec) and makes fail the CI
|
||||
pass
|
||||
|
||||
@slow
|
||||
def test_saved_model_creation_extended(self):
|
||||
# Temporarily disable this test in order to find
|
||||
# how to better handle it without timing out the CI
|
||||
pass
|
||||
|
||||
|
||||
def _assert_tensors_equal(a, b, atol=1e-12, prefix=""):
|
||||
"""If tensors not close, or a and b arent both tensors, raise a nice Assertion error."""
|
||||
|
@ -351,10 +351,22 @@ class TFLongformerModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
# Need to check with PVP how to properly fix this
|
||||
pass
|
||||
|
||||
@slow
|
||||
def test_saved_model_with_hidden_states_output(self):
|
||||
# Temporarily disable this test in order to find
|
||||
# how to better handle it without timing out the CI
|
||||
pass
|
||||
|
||||
def test_saved_model_creation(self):
|
||||
# This test is too long (>30sec) and makes fail the CI
|
||||
pass
|
||||
|
||||
@slow
|
||||
def test_saved_model_creation_extended(self):
|
||||
# Temporarily disable this test in order to find
|
||||
# how to better handle it without timing out the CI
|
||||
pass
|
||||
|
||||
def test_mixed_precision(self):
|
||||
# TODO JP: Make Longformer float16 compliant
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user