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

Fixed with_state methods, to use the correct state #1519

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

sandrohanea
Copy link
Contributor

@sandrohanea sandrohanea commented Nov 18, 2023

I wanted to upgrade https://github.com/sandrohanea/whisper.net to latest whisper.cpp runtime (1.5.0) but discovered that some functions are not working anymore using external provided state.

This is because the context-based state was used in these methods.

If the methods are used from a state call (for parallel transformation using multiple states and same context), errors will arise.

Fix is relatively, simple.

Tested the new build and working as expected with state and searched for all ctx->state usages in the whisper.cpp and all of them seems correct now.

Copy link
Owner

@ggerganov ggerganov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ggerganov ggerganov merged commit 46cc26d into ggerganov:master Nov 19, 2023
36 checks passed
@sandrohanea sandrohanea deleted the fix/correct-state-usage branch November 19, 2023 09:33
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
…1519)

Co-authored-by: Sandro Hanea <sandrohanea@microsoft.com>
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