From 9d35edbb30625489bf286a9b15aed0c5a3119c1c Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Mon, 27 May 2024 18:36:39 +0200 Subject: [PATCH] skip `test_model_parallelism` for 2 model test classes (#31067) skip Co-authored-by: ydshieh --- .../models/deformable_detr/test_modeling_deformable_detr.py | 6 ++++++ tests/models/rwkv/test_modeling_rwkv.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tests/models/deformable_detr/test_modeling_deformable_detr.py b/tests/models/deformable_detr/test_modeling_deformable_detr.py index 2ae3e3f088c2..032bfcb4e15a 100644 --- a/tests/models/deformable_detr/test_modeling_deformable_detr.py +++ b/tests/models/deformable_detr/test_modeling_deformable_detr.py @@ -232,6 +232,12 @@ def setUp(self): self.model_tester = DeformableDetrModelTester(self) self.config_tester = ConfigTester(self, config_class=DeformableDetrConfig, has_text_modality=False) + @unittest.skip( + "This starts to fail since 2024/05/24, but earlier commits also fail now and affect many other tests. The error is `an illegal memory access was encountered`." + ) + def test_model_parallelism(self): + super().test_model_parallelism() + def test_config(self): # we don't test common_properties and arguments_init as these don't apply for Deformable DETR self.config_tester.create_and_test_config_to_json_string() diff --git a/tests/models/rwkv/test_modeling_rwkv.py b/tests/models/rwkv/test_modeling_rwkv.py index d2a41a863d22..48c240d8e3ee 100644 --- a/tests/models/rwkv/test_modeling_rwkv.py +++ b/tests/models/rwkv/test_modeling_rwkv.py @@ -304,6 +304,12 @@ def assertInterval(self, member, container, msg=None): standardMsg = "%s not found in %s" % (safe_repr(member), safe_repr(container)) self.fail(self._formatMessage(msg, standardMsg)) + @unittest.skip( + "This starts to fail since 2024/05/24, but earlier commits also fail now and affect many other tests. The error is `an illegal memory access was encountered`." + ) + def test_model_parallelism(self): + super().test_model_parallelism() + def test_config(self): self.config_tester.run_common_tests()