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

Whisper pipeline: support stateful decoder #1474

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

as-suvorov
Copy link
Contributor

@as-suvorov as-suvorov commented Jan 3, 2025

Ticket: 159473
Optimum-intel PR: huggingface/optimum-intel#1078
This PR switches optimum-intel in tests to stateful seq2seq branch. Tests check both stateful and with past decoders. Once optimum-intel PR is merged I'll switch version back to master.

src/cpp/src/whisper/models/decoder.hpp Outdated Show resolved Hide resolved
src/cpp/src/whisper/models/with_past_decoder.hpp Outdated Show resolved Hide resolved
src/cpp/src/whisper_pipeline.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot added the category: samples GenAI samples label Jan 3, 2025
@github-actions github-actions bot added no-match-files and removed category: samples GenAI samples labels Jan 3, 2025
@ilya-lavrenov ilya-lavrenov added this to the 2025.0 milestone Jan 4, 2025
@github-actions github-actions bot added the category: tokenizers Tokenizer class or submodule update label Jan 9, 2025
@github-actions github-actions bot removed the category: tokenizers Tokenizer class or submodule update label Jan 9, 2025
} // namespace

namespace ov::genai {
WhisperWithPastDecoder::WhisperWithPastDecoder(const std::filesystem::path& models_path,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ilya-lavrenov @Wovchena I want to add deprecation note for this ctor. I saw OPENVINO_DEPRECATED macros but I think it doesn't fit here as I want to warn user at runtime.
Can I add just std::cout << "[Warning] Whisper decoder with past deprecated ..." ? Does OV have logging utilities we can reuse? Or there is a better way?

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't have a better way than a message in runtime

@as-suvorov as-suvorov marked this pull request as ready for review January 9, 2025 15:48
@github-actions github-actions bot added the category: GHA CI based on Github actions label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: GHA CI based on Github actions category: whisper Whisper pipeline no-match-files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants