Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Workaround macOS test failure

davidmezzettif013ca7d1dd7
diff --git a/test/python/testvectors/testdense/testsbert.py b/test/python/testvectors/testdense/testsbert.py
index ff9da987..cd725988 100644
--- a/test/python/testvectors/testdense/testsbert.py
+++ b/test/python/testvectors/testdense/testsbert.py
@@ -3,6 +3,7 @@ Sentence Transformers module tests
"""
import os
+import platform
import unittest
from unittest.mock import patch
@@ -34,6 +35,7 @@ class TestSTVectors(unittest.TestCase):
with open(stream, "rb") as queue:
self.assertEqual(np.load(queue).shape, (1, 384))
+ @unittest.skipIf(platform.system() == "Darwin", "Torch memory sharing not supported on macOS")
@patch("torch.cuda.device_count")
def testMultiGPU(self, count):
"""