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

Add option to carry initial_prompt with the sliding window #2343

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Sep 19, 2024

  1. 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.
    Kittsil committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    ce140e4 View commit details
    Browse the repository at this point in the history
  2. Prevent redundant initial_prompt_tokens

    Kittsil committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    fae8ede View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    207f5b9 View commit details
    Browse the repository at this point in the history
  4. Revert unnecessary .gitignore change

    Kittsil committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    afeccc1 View commit details
    Browse the repository at this point in the history