From 3fb7e7bc012f4ae4b2271780660d01ab035871cb Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:17:37 +0200 Subject: [PATCH] Skip torchscript tests for 2 models (#38643) fix Co-authored-by: ydshieh --- tests/models/canine/test_modeling_canine.py | 8 ++++++++ tests/models/moonshine/test_modeling_moonshine.py | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/tests/models/canine/test_modeling_canine.py b/tests/models/canine/test_modeling_canine.py index 4043a8ea908..d93342bf5d5 100644 --- a/tests/models/canine/test_modeling_canine.py +++ b/tests/models/canine/test_modeling_canine.py @@ -241,6 +241,14 @@ class CanineModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase): # we set has_text_modality to False as the config has no vocab_size attribute self.config_tester = ConfigTester(self, config_class=CanineConfig, has_text_modality=False, hidden_size=37) + @unittest.skip("failing. Will fix only when the community opens an issue for it.") + def test_torchscript_output_hidden_state(self): + pass + + @unittest.skip("failing. Will fix only when the community opens an issue for it.") + def test_torchscript_simple(self): + pass + def test_config(self): self.config_tester.run_common_tests() diff --git a/tests/models/moonshine/test_modeling_moonshine.py b/tests/models/moonshine/test_modeling_moonshine.py index 6001f2058d9..99573cff096 100644 --- a/tests/models/moonshine/test_modeling_moonshine.py +++ b/tests/models/moonshine/test_modeling_moonshine.py @@ -150,6 +150,14 @@ class MoonshineModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCas self.model_tester = MoonshineModelTester(self) self.config_tester = ConfigTester(self, config_class=MoonshineConfig) + @unittest.skip("failing. Will fix only when the community opens an issue for it.") + def test_torchscript_output_hidden_state(self): + pass + + @unittest.skip("failing. Will fix only when the community opens an issue for it.") + def test_torchscript_simple(self): + pass + def test_config(self): self.config_tester.run_common_tests()