Skip to content

Disable log and switch flash_attn to go binding. #3200

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vlegio
Copy link

@vlegio vlegio commented May 28, 2025

Add disable_log to WHISPER_API, add disable_log and flash_attn switch to go binding

@@ -99,9 +101,14 @@ var (

// Allocates all memory needed for the model and loads the model from the given file.
// Returns NULL on failure.
func Whisper_init(path string) *Context {
func Whisper_init(path string, flashAttn, disableLog bool) *Context {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure about adding these context parameters like this. Perhaps instead there should be a method that takes ContextParams as an argument similar to the Java binding?

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