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

Abort callback improvements #1345

Merged
merged 2 commits into from Oct 8, 2023
Merged

Abort callback improvements #1345

merged 2 commits into from Oct 8, 2023

Conversation

mkiol
Copy link
Contributor

@mkiol mkiol commented Oct 5, 2023

This PR improves abort_callback in the following way:

  • adds missing initialization to nullptr (sorry, I missed that in 2f668c3)
  • adds the example in main.cpp explaining how to use it

Additionally I have few questions:

  • Is there any reason to keep encoder_begin_callback? Having two callbacks is quite confusing. Maybe both should be merged? I would be pleased to prepare such change.
  • There are many bindings to other langs. Should I expose abort_callback to these bindings as well?

@ggerganov ggerganov merged commit 940cdb1 into ggerganov:master Oct 8, 2023
35 checks passed
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
* whisper : initialize abort_callback to null

* whisper : add example how to use abort_callback
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
* whisper : initialize abort_callback to null

* whisper : add example how to use abort_callback
vonstring pushed a commit to vonstring/whisper.cpp that referenced this pull request Nov 7, 2023
* whisper : initialize abort_callback to null

* whisper : add example how to use abort_callback
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
* whisper : initialize abort_callback to null

* whisper : add example how to use abort_callback
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.

None yet

2 participants