From af400040f53148ba00042d7065747ccefa95903e Mon Sep 17 00:00:00 2001 From: Sayak Paul Date: Tue, 23 Jul 2024 04:22:57 +0530 Subject: [PATCH] [Tests] proper skipping of request caching test (#8908) proper skipping of request caching test --- tests/models/test_modeling_common.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/models/test_modeling_common.py b/tests/models/test_modeling_common.py index 034c7434a2..bc8416e088 100644 --- a/tests/models/test_modeling_common.py +++ b/tests/models/test_modeling_common.py @@ -124,11 +124,8 @@ class ModelUtilsTest(unittest.TestCase): if p1.data.ne(p2.data).sum() > 0: assert False, "Parameters not the same!" + @unittest.skipIf(torch_device == "mps", reason="Test not supported for MPS.") def test_one_request_upon_cached(self): - # TODO: For some reason this test fails on MPS where no HEAD call is made. - if torch_device == "mps": - return - use_safetensors = False with tempfile.TemporaryDirectory() as tmpdirname: