li-plus / chatglm.cpp

C++ implementation of ChatGLM-6B & ChatGLM2-6B & ChatGLM3 & GLM4
MIT License
2.84k stars 327 forks source link

zsh: illegal hardware instruction #247

Open wenfei565 opened 6 months ago

wenfei565 commented 6 months ago

CLI方式和web方式执行全部报错zsh: illegal hardware instruction,笔记本mac os M1

LoveSlience commented 6 months ago

CLI方式和web方式执行全部报错zsh: illegal hardware instruction,笔记本mac os M1

我是在CMakeLists.txt文件下,第9行加上了这句set(CMAKE_OSX_ARCHITECTURES arm64) 再次执行cmake -B build 和 cmake --build build后解决这个问题的