-
Notifications
You must be signed in to change notification settings - Fork 160
pyllamacpp not support M1 chips MacBook #57
Comments
I'm having a similar issue on M1 chip of missing import but pip install requirements already satisfied |
Similar issue, except I just get |
I was having the same issue because I had multiple versions of python. It might be worth a shot to just try changing your python version around some. |
Any Lucky? days passed, and it seems the developer did not run a fix on this issue. |
Sorry @laihenyi, I don't have a Mac so I couldn't debug the issue. |
I encountered 2 problems:
This ultimately was causing the binary to not be able to link with BLAS, as provided on macs via the accelerate framework (namely, could not find _clbas_sgemm, which is a function for single precision matrix multiplication). In simple terms, a dependency issue because of incompatible platforms. I found that I had to fix both of the above issues - just fixing one did not work. Now, after a separate conda for arm64, and installing |
Thanks so much @shivam-singhal for the solution. I really appreciate it. |
Sorry, |
This doesn't make sense, I'm not running this in conda, its native python3. What did you modify to correct the original issue, and why is everyone linking this to the pygpt4all import GPT4All when it seems to be a separate issue? |
Traceback (most recent call last):
File "/Users/laihenyi/Documents/GitHub/gpt4all-ui/app.py", line 29, in
from pyllamacpp.model import Model
File "/Users/laihenyi/Documents/GitHub/gpt4all-ui/env/lib/python3.11/site-packages/pyllamacpp/model.py", line 21, in
import _pyllamacpp as pp
ImportError: dlopen(/Users/laihenyi/Documents/GitHub/gpt4all-ui/env/lib/python3.11/site-packages/_pyllamacpp.cpython-311-darwin.so, 0x0002): tried: '/Users/laihenyi/Documents/GitHub/gpt4all-ui/env/lib/python3.11/site-packages/_pyllamacpp.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/laihenyi/Documents/GitHub/gpt4all-ui/env/lib/python3.11/site-packages/_pyllamacpp.cpython-311-darwin.so' (no such file), '/Users/laihenyi/Documents/GitHub/gpt4all-ui/env/lib/python3.11/site-packages/_pyllamacpp.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
The text was updated successfully, but these errors were encountered: