Skip to content
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

ggml_graph_compute: Assertion `false' failed #26

Closed
muoten opened this issue Oct 7, 2022 · 2 comments
Closed

ggml_graph_compute: Assertion `false' failed #26

muoten opened this issue Oct 7, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@muoten
Copy link

muoten commented Oct 7, 2022

Examples work fine for me, but I get an error when trying different wavefiles larger than 21s:

./main -m models/ggml-base.en.bin mycut-22s-16khz.wav
whisper_model_load: loading model from 'models/ggml-base.en.bin'
[...]
main: processing 'mycut-22s-16khz.wav' (352000 samples, 22.0 sec), 2 threads, lang = en, task = transcribe, timestamps = 1 ...
[...]

main: ggml.c:6658: ggml_graph_compute: Assertion `false' failed.
Aborted (core dumped)

It's apparently fixed if I comment the assert and substitute by cgraph->work = NULL; in ggml.c. But I guess it's not the best workaround, as it crashes again with sigfault if audio duration is more than 43s aproximately.

Running on Ubuntu 18.04 LTS (GNU/Linux 4.15.0-187-generic x86_64), after fixing CACHE_LINE_SIZE and initializers issues #11

Any hint? Thanks!

@ggerganov
Copy link
Owner

Hi, I am pretty sure that the suggested initializer fix in #11 is wrong.
You have to use struct ggml_cgraph gf = {}:

struct ggml_cgraph gf = {}; gf.n_threads = n_threads;

I've already pushed this fix on master, so I think you can simply update to HEAD.

@ggerganov ggerganov added the bug Something isn't working label Oct 7, 2022
@muoten
Copy link
Author

muoten commented Oct 7, 2022

It works! Thank you very much!

Amazing work, btw. Kudos :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants