Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Update build and docs to address OpenMP issues on macOS and how to address. Closes #377

davidmezzettid3f8b255fc40
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1ffeb0b8..4fcb4559 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -39,7 +39,6 @@ jobs:
- name: Install dependencies - macOS
run: |
- brew install libomp
echo "OMP_NUM_THREADS=1" >> $GITHUB_ENV
if: matrix.os == 'macos-latest'
diff --git a/docs/faq.md b/docs/faq.md
index d033cf15..9284dd73 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -92,7 +92,7 @@ Segmentation faults and similar errors on macOS
__Solution__
-Downgrade PyTorch to <= 1.12. See issue [#377](https://github.com/neuml/txtai/issues/377) for more on this issue.
+Disable OpenMP threading via the environment variable `export OMP_NUM_THREADS=1` or downgrade PyTorch to <= 1.12. See issue [#377](https://github.com/neuml/txtai/issues/377) for more.
----------
diff --git a/docs/install.md b/docs/install.md
index 36fdef18..0444287b 100644
--- a/docs/install.md
+++ b/docs/install.md
@@ -118,7 +118,7 @@ Optional audio transcription requires a [system library to be installed](https:/
### macOS
-Run `brew install libomp` see [this link](https://github.com/kyamagu/faiss-wheels#prerequisite)
+Older versions of Faiss have a runtime dependency on `libomp` for macOS. Run `brew install libomp` in this case.
### Windows