-
Notifications
You must be signed in to change notification settings - Fork 161
illegal hardware instruction python #29
Comments
@kufton, I don't think this is related to the bindings, I will leave it open, in case someone using Mac wanted help you |
Ok I'll dig into that thanks |
same error
i tried to install it via and i tried to compile it via
|
Also seeing this, on an M1 Mac:
I get this error from a different angle:
|
I think it is the same as #36. |
I get the same hardware error. |
@kufton, are using a |
I was using venv through terminal but I’ve created a new one in anaconda to
try in there and I’ll do the same in pycharm.
More than happy for it to be a me problem. I’ve just never got such an
unhelpful error from Python before lol!
On Sun, 9 Apr 2023 at 09:03, Abdeladim Sadiki ***@***.***> wrote:
@kufton <https://github.com/kufton>, are using a conda env ?
Have you tried to used a regular venv ?
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AART3FEN4T5XKV7CSA6BF2LXAHVD3ANCNFSM6AAAAAAWTR3EKE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Kaleb Ufton
|
Yeah it happens sometimes 🙂 |
Confirmed that #36 seems to be the same, but that solution did not work for me |
Hi @georgebdavis, thanks for reporting this. |
Hi, im using the gpt4all-ui, trying to run it on ubuntu/debian VM and having illegal instructions too. ParisNeo/lollms-webui#55 (comment) Maybe there is something i could help to debug here? Im not very smart but i can open terminal and enter commands :). Looking for solution, thank you |
@abdeladim-s sorry for slow reply here! I did indeed compile from source, and I'm using python |
Hi @andzejsp, it should be working on Ubuntu normally, People are having issues with Mac |
Thanks @georgebdavis very much for your time. so it didn't work even after compiling from source ? Does the |
Doesnt work for me either in Ubuntu 20,04. Same Illegal instruction (core dumped) both from pip and compiled from source. |
Check your CPU instructions set extension. You gotta have a X2, if you don't have then you need to compile pyllamacpp from source |
I compiled from source already. |
running into same issue, any luck? |
I got lucky and spotted this comment in a related thread. I dug in and realized that I was running an After a clean homebrew install, Homebrew, conda and pyenv can all make it hard to keep track of exactly which arch you're running, and I suspect this is the same issue for many folks complaining about illegal instructions @abdeladim-s ! |
Yes I agree @georgebdavis, especially the folks with M1-chip. |
This may well be a user error, however I've used pip and the local source build on m1 and get the same issue:
(ven) (base) me@MacBook-Air chat % python
Python 3.9.13 (main, Aug 25 2022, 18:29:29)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyllamacpp.model import Model
zsh: illegal hardware instruction python
I've used virtual env and can run the llama model via its ./ script just fine, I'm just trying to get the python bindings working
The text was updated successfully, but these errors were encountered: