-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault on arm64 macOS while searching embeddings index #350
Comments
Just confirmed that the example above runs fine on linux amd64 hardware with cuda support. |
Thanks for giving txtai a try and taking the time to submit an issue! Couple ideas:
embeddings = Embeddings({"path": "sentence-transformers/nli-mpnet-base-v2", "backend": "hnsw"}) Unfortunately, I don't use Apple hardware, so it would be tough for me to debug/reproduce. txtai does have GitHub actions for macOS but it's x86-64 based. There is a long standing issue to add Apple Silicon support to GitHub Actions but it looks like it's currently unresolved. |
Hi @davidmezzetti, thank you for developing and publishing this great library! Indeed, changing the backend to Yes, unfortunately many ML libraries only partially support macOS and/or arm64. In most cases bigger experiments or production workloads will run on Linux with CUDA anyway, but it's always nice to be able to try out libraries on local hardware first. Great to see that it's possible to run txtai on Apple hardware! |
Glad to hear it! |
👍 FWIW did the pip from #350 (comment) with |
Searching an embeddings index, like demoed in the first txtai example, seems to lead to a segmentation fault on Apple Silicon hardware. This is the script I'm executing:
Output:
Enviroment:
I'm happy to provide further information if needed.
The text was updated successfully, but these errors were encountered: