-
Notifications
You must be signed in to change notification settings - Fork 635
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
GitHub Actions build error with torch 1.12 on macOS #300
Comments
Update build.yml to unpin torch==1.11.0 when this is complete. |
PyTorch just tagged 1.12.1-rc3. Hopefully 1.12.1 is released soon. Link to milestone - https://github.com/pytorch/pytorch/milestone/30 |
macOS builds are getting a |
This issue is localized to macOS Python 3.7. Python 3.8+ works fine on macOS. Added troubleshooting note here: https://neuml.github.io/txtai/install/#environment-specific-prerequisites |
fwiw, I hit this error w/ Python 3.9.5 on OSX 12.5 using torch==1.13.1, I changed to 1.11.0 and I got past the initial issue that was occurring when executing The first time the seg fault happened, it looked as if it was in the middle of some (2) downloads, presumably of those embeddings. After the torch downgrade, 4 more downloads completed successfully. But I hit a different error. I am trying to run the first code snippet in this example. When I get to searching the embeddings, it fails and I see this on the console:
|
I appreciate you sharing this info as it's the most I've seen to date. In doing a few searches, a lot of links point to mkl. What does I've assumed the issue, at least with the GitHub Actions build, is a package conflict but I'm not a mac user, so I've been limited in what I can debug. |
No problem, I'm glad it's helpful.
So, nothing. And yeah, I did try with that env variable set and it did not change what happened, it fails with that abort trap 6 thing. I am behind on both python and osx versions. I think i can rustle up another laptop and update macos and try with that to see if it helps. |
Appreciate it, anything you can share would be beneficial. How did you install txtai? Was it a simple pip install or were optional dependencies installed? fasttext has caused issues on macOS in the past. |
It was just the pip install. I'm new to python, so i was going for easy :) |
To close the loop on this, I tried the same code on a different machine with macos 12.6.2 and that ran the example just fine. Also used a simple pip install in that case, there were the following warnings, but everything worked in the simple case.
When I moved that exact code over to my program, I started getting different segfault the first time i called I switched back over to the stand alone example and added a simple Long story short, works fine on a new OSX and with a minimal program, but there might be some deeper conflict w/ some library shared w/ spacy. |
The message below you provided previously is the best hint yet, thank you for that!
This issue discusses a conflict between Faiss and PyTorch that appears relevant. This PR also seems relevant. Also tried fix in this issue with no success. #377 is the current open txtai issue tracking this. |
Oh, glad it was helpful! I've had a lot of fun playing with the software since I got things running, so thanks for that :) |
Segmentation faults are occurring with torch 1.12 and at least macOS. See this PR on transformers for more info - huggingface/transformers#17925
The text was updated successfully, but these errors were encountered: