Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Torch 1.7.1 macOS wheel on PyPI doesn't have quantization support enabled, skip testQuantize for macOS

davidmezzettidc3758536b9a
diff --git a/test/python/testextractor.py b/test/python/testextractor.py
index 25f4c46c..175c61ac 100644
--- a/test/python/testextractor.py
+++ b/test/python/testextractor.py
@@ -70,6 +70,7 @@ class TestExtractor(unittest.TestCase):
answers = self.extractor(self.sections, [(question, question, question, False)])
self.assertIsNone(answers[0][1])
+ @unittest.skipIf(platform.system() == "Darwin", "Quantized models not supported on macOS")
def testQuantize(self):
"""
Test qa extraction backed by a quantized model