Skip to content

Added OpenVino init on state #2464

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

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

sandrohanea
Copy link
Contributor

Hello @ggerganov,
I am trying to add support for OpenVino for whisper.net and observed that the init function whisper_ctx_init_openvino_encoder can only be called on the default context-owned state which I'm not using as I manage multiple parallel states.

This PR is adding a new API function whisper_ctx_init_openvino_encoder_with_state that basically is doing the same thing on the provided state.

@sandrohanea
Copy link
Contributor Author

I'll test this soon and will update here if everything will work as expected. Didn't expect that you'll review so fast :)
Thank you!

@sandrohanea
Copy link
Contributor Author

I'll test this soon and will update here if everything will work as expected. Didn't expect that you'll review so fast :) Thank you!

Just tested this change and now it's working as expected:
image

@ggerganov ggerganov merged commit fdbfb46 into ggml-org:master Oct 8, 2024
44 checks passed
@sandrohanea sandrohanea deleted the sandro/openvino-init branch October 9, 2024 17:20
bygreencn added a commit to bygreencn/whisper.cpp that referenced this pull request Oct 21, 2024
* ggerganov/master:
  readme : update links and make commands (ggml-org#2489)
  ruby : fix bindings (ggml-org#2484)
  readme : add Vulkan notice (ggml-org#2488)
  make : fix GGML_VULKAN=1 build (ggml-org#2485)
  whisper : add dtw preset for large-v3-turbo (ggml-org#2481)
  convert : handle max_target_positions (ggml-org#2477)
  readme : update the Quick Start section (ggml-org#2475)
  whisper : add OpenVINO init with state (ggml-org#2464)
lyapple2008 pushed a commit to lyapple2008/whisper.cpp.mars that referenced this pull request Nov 2, 2024
* Fixed OpenVino init on state

* Removed an empty line

* Fixed typo

* Replaced tabs with spaces

---------

Co-authored-by: Sandro Hanea <[email protected]>
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 this pull request may close these issues.

2 participants