-
Notifications
You must be signed in to change notification settings - Fork 335
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
[Mac Python Binding] zsh: illegal hardware instruction python3 web_demo.py -m ../chatglm2-ggml.bin #58
Comments
我也遇到这个问题了,请问你解决了吗? |
同样遇到这个问题,examples里面的 cli_chat.py和 web_demo.py 两个文件都会报错。 环境是mac m1 |
这个问题我解决了。我同样是mac m1。我不太清楚原因,但解决的方式很简单——新建了一个Python环境,只安装必要的库(甚至不包括torch),问题就自然解决了。 |
[ import chatglm_cpp._C as _C 有谁遇到这个问题么](zsh: illegal hardware instruction python3 cli_chat.py -m ../chatglm-ggml.bin -i) |
这个问题,可以尝试pwd离开chatglm_cpp根目录,换到其他目录可以避开 |
仅供参考:完全一样的部署操作,cpu 是e5 1220v2(win10),e5 2620V2(server 2022)都不行,另外两台可以,一台cpu是i5 i5-10400F,一台 i7-10750H。难道是指令集不一样?AVX2? |
我遇到了同样的问题,Mac mini M1 |
我遇到了同样的问题,Mbp M2 |
这个问题还没得到解决吗 |
同样的问题,web-demo一样跑不起来?提示ImportError: dlopen(/opt/homebrew/lib/python3.10/site-packages/chatglm_cpp/_C.cpython-310-darwin.so, 0x0002): tried: '/opt/homebrew/lib/python3.10/site-packages/chatglm_cpp/_C.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))),这不知道为啥我本地编译完安装的是x86的 |
./build/bin/main -m chatglm-ggml.bin -i 可以正常使用
但是使用cd examples && python3 cli_chat.py -m ../chatglm2-ggml.bin -i 的时候报错显示
zsh: illegal hardware instruction python3 web_demo.py -m ../chatglm2-ggml.bin
The text was updated successfully, but these errors were encountered: