You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I executed make tiny.en and got a lot of 'invalid conversion' errors:
https_proxy=http://192.168.1.121:1080 make tiny.en
bash ./models/download-ggml-model.sh tiny.en
Downloading ggml model tiny.en from 'https://huggingface.co/ggerganov/whisper.cpp' ...
ggml-tiny.en.bin 100%[=========================================================================================================================================>] 74.10M 232KB/s in 6m 41s
Done! Model 'tiny.en' saved in '/home/bluven/Workspace/whisper.cpp/models/ggml-tiny.en.bin'
You can now use it like this:
$ ./main -m /home/bluven/Workspace/whisper.cpp/models/ggml-tiny.en.bin -f samples/jfk.wav
cmake -B build
-- ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- Including CPU backend
-- x86 detected
-- Adding CPU backend variant ggml-cpu: -march=native
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/bluven/Workspace/whisper.cpp/build
cmake --build build --config Release
gmake[1]: Entering directory '/home/bluven/Workspace/whisper.cpp/build'
gmake[2]: Entering directory '/home/bluven/Workspace/whisper.cpp/build'
gmake[3]: Entering directory '/home/bluven/Workspace/whisper.cpp/build'
gmake[3]: Leaving directory '/home/bluven/Workspace/whisper.cpp/build'
[ 17%] Built target ggml-base
gmake[3]: Entering directory '/home/bluven/Workspace/whisper.cpp/build'
gmake[3]: Leaving directory '/home/bluven/Workspace/whisper.cpp/build'
gmake[3]: Entering directory '/home/bluven/Workspace/whisper.cpp/build'
[ 20%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ggml-cpu-aarch64.cpp.o
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp: In function ‘void ggml_gemv_q4_0_8x8_q8_0(int, float*, size_t, const void*, const void*, int, int)’:
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:860:82: error: invalid conversion from ‘const ggml_half*’ {aka ‘const short unsigned int*’} to ‘ggml_fp16_t*’ {aka ‘short unsigned int*’} [-fpermissive]
860 | const __m256 col_scale_f32 = GGML_F32Cx8_REARRANGE_LOAD(b_ptr[b].d, changemask);
| ~~~~~~~~~^
| |
| const ggml_half* {aka const short unsigned int*}
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:150:85: note: in definition of macro ‘GGML_F32Cx8_REARRANGE_LOAD’
150 | #define GGML_F32Cx8_REARRANGE_LOAD(x, arrangeMask) __avx_rearranged_f32cx8_load(x, arrangeMask)
| ^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:136:64: note: initializing argument 1 of ‘__m256 __avx_rearranged_f32cx8_load(ggml_fp16_t*, __m128i)’
136 | static inline __m256 __avx_rearranged_f32cx8_load(ggml_fp16_t *x, __m128i arrangeMask) {
| ~~~~~~~~~~~~~^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp: In function ‘void ggml_gemm_q4_0_8x8_q8_0(int, float*, size_t, const void*, const void*, int, int)’:
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:2988:76: error: invalid conversion from ‘const ggml_half*’ {aka ‘const short unsigned int*’} to ‘ggml_fp16_t*’ {aka ‘short unsigned int*’} [-fpermissive]
2988 | const __m256 col_scale_f32 = GGML_F32Cx8_LOAD(b_ptr[b].d);
| ~~~~~~~~~^
| |
| const ggml_half* {aka const short unsigned int*}
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:148:51: note: in definition of macro ‘GGML_F32Cx8_LOAD’
148 | #define GGML_F32Cx8_LOAD(x) __avx_f32cx8_load(x)
| ^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:117:53: note: initializing argument 1 of ‘__m256 __avx_f32cx8_load(ggml_fp16_t*)’
117 | static inline __m256 __avx_f32cx8_load(ggml_fp16_t *x) {
| ~~~~~~~~~~~~~^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:3065:92: error: invalid conversion from ‘const ggml_half*’ {aka ‘const short unsigned int*’} to ‘ggml_fp16_t*’ {aka ‘short unsigned int*’} [-fpermissive]
3065 | const __m256 row_scale_f32 = GGML_F32Cx8_REPEAT_LOAD(a_ptrs[rp][b].d, loadMask);
| ~~~~~~~~~~~~~~^
| |
| const ggml_half* {aka const short unsigned int*}
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:149:75: note: in definition of macro ‘GGML_F32Cx8_REPEAT_LOAD’
149 | #define GGML_F32Cx8_REPEAT_LOAD(x, loadMask) __avx_repeat_f32cx8_load(x)
| ^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:126:60: note: initializing argument 1 of ‘__m256 __avx_repeat_f32cx8_load(ggml_fp16_t*)’
126 | static inline __m256 __avx_repeat_f32cx8_load(ggml_fp16_t *x) {
| ~~~~~~~~~~~~~^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:3152:76: error: invalid conversion from ‘const ggml_half*’ {aka ‘const short unsigned int*’} to ‘ggml_fp16_t*’ {aka ‘short unsigned int*’} [-fpermissive]
3152 | const __m256 col_scale_f32 = GGML_F32Cx8_LOAD(b_ptr[b].d);
| ~~~~~~~~~^
| |
| const ggml_half* {aka const short unsigned int*}
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:148:51: note: in definition of macro ‘GGML_F32Cx8_LOAD’
148 | #define GGML_F32Cx8_LOAD(x) __avx_f32cx8_load(x)
| ^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:117:53: note: initializing argument 1 of ‘__m256 __avx_f32cx8_load(ggml_fp16_t*)’
117 | static inline __m256 __avx_f32cx8_load(ggml_fp16_t *x) {
| ~~~~~~~~~~~~~^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:3230:83: error: invalid conversion from ‘const ggml_half*’ {aka ‘const short unsigned int*’} to ‘ggml_fp16_t*’ {aka ‘short unsigned int*’} [-fpermissive]
3230 | const __m256 row_scale_f32 = GGML_F32Cx8_REPEAT_LOAD(a_ptr[b].d, loadMask);
| ~~~~~~~~~^
| |
| const ggml_half* {aka const short unsigned int*}
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:149:75: note: in definition of macro ‘GGML_F32Cx8_REPEAT_LOAD’
149 | #define GGML_F32Cx8_REPEAT_LOAD(x, loadMask) __avx_repeat_f32cx8_load(x)
| ^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:126:60: note: initializing argument 1 of ‘__m256 __avx_repeat_f32cx8_load(ggml_fp16_t*)’
126 | static inline __m256 __avx_repeat_f32cx8_load(ggml_fp16_t *x) {
| ~~~~~~~~~~~~~^
/home/bluven/Workspace/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp:2504:23: warning: unused variable ‘loadMask’ [-Wunused-variable]
2504 | const __m128i loadMask = _mm_blend_epi32(_mm_setzero_si128(), _mm_set1_epi32(0xFFFFFFFF), 3);
| ^~~~~~~~
gmake[3]: *** [ggml/src/CMakeFiles/ggml-cpu.dir/build.make:104: ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ggml-cpu-aarch64.cpp.o] Error 1
gmake[3]: Leaving directory '/home/bluven/Workspace/whisper.cpp/build'
gmake[2]: *** [CMakeFiles/Makefile2:318: ggml/src/CMakeFiles/ggml-cpu.dir/all] Error 2
gmake[2]: Leaving directory '/home/bluven/Workspace/whisper.cpp/build'
gmake[1]: *** [Makefile:136: all] Error 2
gmake[1]: Leaving directory '/home/bluven/Workspace/whisper.cpp/build'
make: *** [Makefile:56: tiny.en] Error 2
The verson is v1.7.4 and I buiit it in a virtualbox machine which has no GPU. I know nothing about neither c++ programming nor AI, there were also no anwsers availabe from Google, what should I do to fix those errors?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I executed
make tiny.en
and got a lot of 'invalid conversion' errors:The verson is v1.7.4 and I buiit it in a virtualbox machine which has no GPU. I know nothing about neither c++ programming nor AI, there were also no anwsers availabe from Google, what should I do to fix those errors?
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions