Open clach04 opened 1 year ago
The Killed
was a red herring - my SBC ram out of memory using the Medium Model! :rofl:
The small and tiny model worked fine once the fpu was switched to plain neon.
make small
./main -m models/ggml-small.bin -f samples/jfk.wav
(albeit slowly).
@ggerganov I posted a comment on change https://github.com/ggerganov/whisper.cpp/commit/167324584b0927fa78d696743d29f0ff29bebfe9#r99400156 - have you had any success with 32-bit ARM with the out-of box Makefile?
I can make a PR but want to make sure I'm not destabilizing for other people (or missing something).
There might be issues on 32-bit platforms - need to see if there are some 64-bit assumptions in ggml.c
.
Regarding the Makefile - it is very likely that the current flags are not appropriate for 32-bit ARM. If you find something that works - let me know and will update it as appropriate
Posted https://github.com/ggerganov/whisper.cpp/pull/486 that works for me :-)
I have a 32-bit arm7 CPU on an Odroid-XU4 with Armbian 21.08.6 Focal with Linux 5.4.160-odroidxu4
Out of box make crashes:
Looking at the makefile, looks like it's using the wrong FPU lib for floating point math.
https://github.com/ggerganov/whisper.cpp/blob/ab1916fc598cc364b521a6d24752c4b092553e40/Makefile#L149
Introduced in https://github.com/ggerganov/whisper.cpp/commit/167324584b0927fa78d696743d29f0ff29bebfe9 via https://github.com/ggerganov/whisper.cpp/pull/23
Tweaked which but then crashes out with Killed instead:
platform info:
I've tried without a
mfpu
flag but compilation fails:I'm in the process of trying a list, posting in case anyone else hits this (and/or has ideas).