kyamagu / faiss-wheels

Unofficial faiss wheel builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault: 11 on M1 Mac

hyperknot opened this issue · comments

Describe the bug
When importing the library, it terminates the whole python process with Segmentation fault: 11.

To Reproduce
Describe the steps to reproduce the behavior:

import faiss  # noqa
from sentence_transformers import SentenceTransformer

model = SentenceTransformer('all-MiniLM-L6-v2')
model.encode(['a'])

Expected behavior
Should not terminate the app. faiss is not even used!

Desktop (please complete the following information):

  • OS: macOS
  • Architecture: M1
  • Python: 3.11
  • Version: faiss-cpu==1.8.0

Please attach a log
Likely a known issue #73

How can I attach a log? There is no exception, no output, just this one line

Segmentation fault: 11

You would need to use a debugger like lldb to identify what is causing segfault