-
Notifications
You must be signed in to change notification settings - Fork 200
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
Whisper pipeline: support stateful decoder #1474
Conversation
} // namespace | ||
|
||
namespace ov::genai { | ||
WhisperWithPastDecoder::WhisperWithPastDecoder(const std::filesystem::path& models_path, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
|
||
class Logger { | ||
public: | ||
static void warn(std::string message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static void warn(std::string message) { | |
static void warn(const std::string& message) { |
const ov::AnyMap& properties) { | ||
Logger::warn("Whisper decoder models with past is deprecated. Support will be removed in 2026.0.0 release.\n" | ||
"To obtain stateful decoder model use latest `optimum-intel` package:\n" | ||
"pip install optimum-intel@git+https://github.com/huggingface/optimum-intel.git\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can provide the minimum version containing stateful whisper by specifying pip install "optimum-intel>=VERSION"
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.