Skip to content

Conversation

ggerganov
Copy link
Member

No description provided.

@ggerganov ggerganov merged commit 4b7de08 into master Aug 9, 2024
@ggerganov ggerganov deleted the sync branch August 9, 2024 06:58
ldfrancis pushed a commit to ldfrancis/whisper.cpp that referenced this pull request Jun 6, 2025
…2343)

* Add option to carry initial_prompt with the sliding window

Add an option `carry_initial_prompt = False` to `whisper.transcribe()`.
When set to `True`, `initial_prompt` is prepended to each internal `decode()` call's `prompt`.
If there is not enough context space at the start of the prompt, the prompt is left-sliced to make space.

* Prevent redundant initial_prompt_tokens

* Revert unnecessary .gitignore change

---------

Co-authored-by: Kittsil <[email protected]>
Co-authored-by: Jong Wook Kim <[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