From b22c55abbeac9b93d827e07b3369ce2e338570da Mon Sep 17 00:00:00 2001 From: ydshieh Date: Tue, 7 Mar 2023 11:12:14 +0100 Subject: [PATCH] skip test_multi_gpu_data_parallel_forward for some model tests --- .../conditional_detr/test_modeling_conditional_detr.py | 5 +++++ tests/models/detr/test_modeling_detr.py | 5 +++++ tests/models/swin/test_modeling_swin.py | 5 +++++ tests/models/swin2sr/test_modeling_swin2sr.py | 5 +++++ tests/models/swinv2/test_modeling_swinv2.py | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/tests/models/conditional_detr/test_modeling_conditional_detr.py b/tests/models/conditional_detr/test_modeling_conditional_detr.py index 8d62470fa3ea..11a548df9239 100644 --- a/tests/models/conditional_detr/test_modeling_conditional_detr.py +++ b/tests/models/conditional_detr/test_modeling_conditional_detr.py @@ -247,6 +247,11 @@ def test_conditional_detr_no_timm_backbone(self): config_and_inputs = self.model_tester.prepare_config_and_inputs() self.model_tester.create_and_check_no_timm_backbone(*config_and_inputs) + # TODO: check if this works again for PyTorch 2.x.y + @unittest.skip(reason="Got `CUDA error: misaligned address` with PyTorch 2.0.0.") + def test_multi_gpu_data_parallel_forward(self): + pass + @unittest.skip(reason="Conditional DETR does not use inputs_embeds") def test_inputs_embeds(self): pass diff --git a/tests/models/detr/test_modeling_detr.py b/tests/models/detr/test_modeling_detr.py index 7b032288b551..f37b15402dd5 100644 --- a/tests/models/detr/test_modeling_detr.py +++ b/tests/models/detr/test_modeling_detr.py @@ -246,6 +246,11 @@ def test_detr_no_timm_backbone(self): config_and_inputs = self.model_tester.prepare_config_and_inputs() self.model_tester.create_and_check_no_timm_backbone(*config_and_inputs) + # TODO: check if this works again for PyTorch 2.x.y + @unittest.skip(reason="Got `CUDA error: misaligned address` with PyTorch 2.0.0.") + def test_multi_gpu_data_parallel_forward(self): + pass + @unittest.skip(reason="DETR does not use inputs_embeds") def test_inputs_embeds(self): pass diff --git a/tests/models/swin/test_modeling_swin.py b/tests/models/swin/test_modeling_swin.py index 6996e77260ed..804bffd31fa8 100644 --- a/tests/models/swin/test_modeling_swin.py +++ b/tests/models/swin/test_modeling_swin.py @@ -261,6 +261,11 @@ def test_model(self): config_and_inputs = self.model_tester.prepare_config_and_inputs() self.model_tester.create_and_check_model(*config_and_inputs) + # TODO: check if this works again for PyTorch 2.x.y + @unittest.skip(reason="Got `CUDA error: misaligned address` with PyTorch 2.0.0.") + def test_multi_gpu_data_parallel_forward(self): + pass + @unittest.skipIf(is_torch_less_than_1_9, reason="This test fails for SwinModel when torch < 1.9") def test_training_gradient_checkpointing(self): super().test_training_gradient_checkpointing() diff --git a/tests/models/swin2sr/test_modeling_swin2sr.py b/tests/models/swin2sr/test_modeling_swin2sr.py index 50d776e6bbdb..2a142fc3b039 100644 --- a/tests/models/swin2sr/test_modeling_swin2sr.py +++ b/tests/models/swin2sr/test_modeling_swin2sr.py @@ -186,6 +186,11 @@ def test_model_for_image_super_resolution(self): config_and_inputs = self.model_tester.prepare_config_and_inputs() self.model_tester.create_and_check_for_image_super_resolution(*config_and_inputs) + # TODO: check if this works again for PyTorch 2.x.y + @unittest.skip(reason="Got `CUDA error: misaligned address` with PyTorch 2.0.0.") + def test_multi_gpu_data_parallel_forward(self): + pass + @unittest.skip(reason="Swin2SR does not use inputs_embeds") def test_inputs_embeds(self): pass diff --git a/tests/models/swinv2/test_modeling_swinv2.py b/tests/models/swinv2/test_modeling_swinv2.py index bda4b0f9013d..b0ceaff2ed2c 100644 --- a/tests/models/swinv2/test_modeling_swinv2.py +++ b/tests/models/swinv2/test_modeling_swinv2.py @@ -202,6 +202,11 @@ def test_model(self): config_and_inputs = self.model_tester.prepare_config_and_inputs() self.model_tester.create_and_check_model(*config_and_inputs) + # TODO: check if this works again for PyTorch 2.x.y + @unittest.skip(reason="Got `CUDA error: misaligned address` with PyTorch 2.0.0.") + def test_multi_gpu_data_parallel_forward(self): + pass + @unittest.skip(reason="Swinv2 does not use inputs_embeds") def test_inputs_embeds(self): pass