-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
whisper : replace tensor->n_dims
with ggml_n_dims(tensor)
#1694
Conversation
I don't know if it is an issue here, but |
Ah, I see. But then, why did we deprecate Lines 506 to 544 in 37a709f
|
Please feel free to correct me if I'm mistaken. I believe a good strategy to avoid this issue is to sanitize the input during the creation of a |
In practice, |
I tried the fix, it was successfully built, but got this error when trying to test it. Converting the model went like the following. and generated two files ggml-base.en-encoder-openvino.bin and ggml-base.en-encoder-openvino.xml |
You only need to provide the path of the standard model to the main. Ensure that both the standard model and the OPENVINO encoder model have matching names and are located in the same directory. For instance, if the standard model is named
This is just a warning. Ignore it. |
./build/bin/main -m ./models/ggml-base.en.bin -f ./samples/jfk.wav I starting to believe I'm doing something dumb, does intel atom z8500 support openvino? |
Although OpenVINO supports the Z8500, the issue likely arises because the Z8500 lacks AVX support, yet OpenVINO still utilizes it, leading to illegal instructions. Try adding the flags |
cmake -B build -DWHISPER_OPENVINO=1 -DWHISPER_NO_AVX=1 -DWHISPER_NO_AVX2=1 cmake --build build -j --config Release ./build/bin/main -m ./models/ggml-base.en.bin -f ./samples/jfk.wav whisper_init_from_file_with_params_no_state: loading model from './models/ggml-base.en.bin' Looks like it didn't work. |
Alright, please go to the OpenVINO repository and create an issue. I thought this issue was resolved in 2020, but it appears there's a regression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot test OpenVINO build, but I think the usage of ggml_n_dims
here is correct
Since
tensor->n_dims
is now deprecated, we've switched to usingggml_n_dims
as its replacement.Even though slaren mentioned that
ggml_n_dims
isn't a direct substitute fortensor::n_dims
, it's not a concern in this case. This is because bothne[0]
andne[1]
should exceed1
for tensormel
andout
.Close #1690