-
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
embeddings.search hangs indefinitely on Mac #576
Comments
What happens if you change this line: embeddings = Embeddings(path="sentence-transformers/nli-mpnet-base-v2") to embeddings = Embeddings(path="sentence-transformers/nli-mpnet-base-v2", gpu=False) |
It froze just as before. This time I left it running to see whether it would ever resolve. More than 11 hours later, it is still hung after printing the headers. |
Ok, not exactly sure what could be going on. Outside of managing the build script, I don't run txtai in a macOS environment frequently. Perhaps you can try something things as seen in the build script such as a different Python version or setting the |
Closing this due to inactivity. Please re-open or open a new issue if there are further questions. |
Sorry, I should have reported back: |
Running OS 12.7 (Monterrey) on a MacBook Air (M1, 2020) with Python 3.11.5
Script below — it should be effectively identical to the first example at https://neuml.hashnode.dev/tutorial-series-on-txtai
It failed in Spyder and also from the command line in Terminal (both with
python3 scriptname.py
and line by line after runningpython3
on the command line).I then tried the same script on an Linux box I have access to, running Ubuntu 22.04.3 LTS. It worked fine as-is from the command line.
The text was updated successfully, but these errors were encountered: