Closed idariis closed 2 years ago
I'm getting the same problem. Huggingface Datasets 1.6.2 (I'm not using the latest) is pulling in faiss-cpu 1.7.1.post2. For now, I'm manually installing faiss-cpu 1.6.5 as a workaround.
could you store the document_representations
table and make a small script that loads the table and trains an index on it?
If you have the time, you could try installing everything from conda-forge, I'd be interested to know if this segfault appears there as well:
conda install -c conda-forge faiss-gpu datasets
Any updates on the issue?
I have the same issue on:
Monterey 12.0.1 python 3.9.7
I have installed faiss-cpu only through conda install -c pytorch faiss-cpu
I tried with smaller number of vectors, but even the tutorial here https://github.com/facebookresearch/faiss/blob/main/tutorial/python/1-Flat.py fails at the index.search(xb[:5], k) step with segmentation fault.
We have used the solution proposed by @klgraham and it works fine.
If you are reading this issue in ~2023, 1.6.5
can no longer be installed in some environments.
In that env we have found 1.7.0
to fix this issue.
Summary
When trying to train faiss index, I get a segmentation fault.
zsh: segmentation fault poetry run python examples/sandbox.py
Platform
OS:
Faiss version:
Installed from:
Faiss compilation options:
Running on:
Interface:
Reproduction instructions