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

Does have a way to load the model only once and use it for multi audio file in the same time? #28

Closed
farmer00317558 opened this issue Apr 12, 2023 · 2 comments · Fixed by #33

Comments

@farmer00317558
Copy link

I want to process multi audio files in the same time instead process them one by one.

I tried making the WhisperContext as a Singleton, but when got an error:

Assertion failed: (sum > 0.0f), function ggml_compute_forward_flash_attn_f16, file ggml.c, line 6299.

Maybe it's a problem of whisper.cpp.

@tazz4843
Copy link
Owner

whisper.cpp does not support this, you must load a new model for each thread.

@tazz4843
Copy link
Owner

whisper.cpp version 1.3.0 was released two days ago, and should support this now. I'll be working on adding the features into whisper-rs tonight.

@tazz4843 tazz4843 linked a pull request Apr 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants