alpaca.cpp icon indicating copy to clipboard operation
alpaca.cpp copied to clipboard

MacOSX illegal instructions

Open slajar opened this issue 2 years ago • 5 comments

Does anyone have an idea why the mac version does not start on my end? I have an M1 MacBook Pro 16 GB. I assume it has something to do with the arm processor plattform.

./chat_mac -m ggml-alpaca-7b-q4.bin -t 8 --temp 0.8 -c 2048
main: seed = 1679666395
llama_model_load: loading model from 'ggml-alpaca-7b-q4.bin' - please wait ...
zsh: illegal hardware instruction  ./chat_mac -m ggml-alpaca-7b-q4.bin -t 8 --temp 0.8 -c 2048

slajar avatar Mar 24 '23 14:03 slajar

I also have the exact same problem.

MacBook Pro M1-Pro 16gb ram

`(alpaca) steppi@MacBook-Pro-di-steppi alpaca.cpp % ./chat

main: seed = 1679862105

llama_model_load: loading model from 'ggml-alpaca-7b-q4.bin' - please wait ...

zsh: illegal hardware instruction ./chat `

steppige avatar Mar 26 '23 20:03 steppige

same here. any solution?

walkingtospace avatar Mar 27 '23 05:03 walkingtospace

The same error, both with "chat" compiled on the local machine and with the downloaded "chat_mac"

ScreenShot alpaca cpp — mstk@mcpr —  AI:alpaca cpp — -zsh — 110×50 2023-03-27 11-01-19

MacPro 5.1 Mid 2010 macOS 12.6.3 Build 21G419 (Monterey) 6-Core Intel Xeon CPU X5670 24 GB 1333 MHz DDR3

mastaka avatar Mar 27 '23 09:03 mastaka

same error. any solutions?

PlutoniaX avatar Mar 29 '23 00:03 PlutoniaX

For me, I got it working through rebuiling everything from CMakelists.txt by hand.

slajar avatar Mar 29 '23 06:03 slajar