Skip to content

Implementing Encoder Begin Callback for golang binding #2291

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

Closed
wants to merge 4 commits into from

Conversation

aderbedr
Copy link
Contributor

@aderbedr aderbedr commented Jul 8, 2024

Adding in EncoderBeginCallback to the Context's Process callback. This optional callback function returns false if computation should be aborted.

Adding in EncoderBeginCallback to the Context's Process callback.
This optional callback function returns false if computation should
be aborted.
@ggerganov
Copy link
Member

Could you help fixing the Go CI?

Updating the default parameters to match the C++ binary's parameters. This includes:
- updating the strategy to SAMPLING_BEAM_SEARCH
- greedy.best_of (previously -1)
- thold_pt  (previously .01)
- thold_ptsum  (previously .01)
Adding in a function, GetDetectedLanguage, which will retrieve the detected language, if available.
@aderbedr
Copy link
Contributor Author

Are you alright if I close this PR and open a separate that just contains the Encoder Begin Callback commit? I forgot about this PR and put a slew of other commits on the same branch, ruining this PR, then noticed it was failing because of a test file that needed updating. master...aderbedr:whisper.cpp:feat/encoderBeginCallback2 would be the branch just for this change.

@ggerganov
Copy link
Member

Yes, feel free to open a new PR with just the callback change.

@aderbedr aderbedr closed this Mar 17, 2025
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