Skip to content

Commit 5bdd695

Browse files
committed
Add deprecation message
1 parent 445ce5a commit 5bdd695

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/windows.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,9 @@ jobs:
311311
python -m pip install . --verbose --find-links ${env:OV_INSTALL_DIR}/wheels
312312
python -m pip install ./tools/who_what_benchmark --find-links ${env:OV_INSTALL_DIR}/wheels
313313
314-
# will install transformers 4.46.3 version
315314
# transformers 4.46.3 will enable return_timestamps tests
316315
# this check enabled for windows only. Ticket: 160205.
317-
python -m pip install git+https://github.com/huggingface/optimum-intel.git@753f84db6e0966580eb9eaa74a808213be730631
316+
python -m pip install transformers==4.46.3
318317
319318
python -m pytest -v ./tests/python_tests/test_whisper_pipeline.py -k "not test_smoke"
320319

src/cpp/src/logger.hpp

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (C) 2025 Intel Corporation
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
#pragma once
5+
#include <iostream>
6+
#include <string>
7+
8+
namespace ov::genai {
9+
10+
class Logger {
11+
public:
12+
static void warn(std::string message) {
13+
std::cout << "[WARN] " << message << '\n';
14+
};
15+
};
16+
17+
} // namespace ov::genai

src/cpp/src/whisper/models/with_past_decoder.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <regex>
77

8+
#include "logger.hpp"
89
#include "utils.hpp"
910

1011
namespace {
@@ -40,6 +41,10 @@ namespace ov::genai {
4041
WhisperWithPastDecoder::WhisperWithPastDecoder(const std::filesystem::path& models_path,
4142
const std::string& device,
4243
const ov::AnyMap& properties) {
44+
Logger::warn("Whisper decoder models with past is deprecated. Support will be removed in 2026.0.0 release.\n"
45+
"To obtain stateful decoder model use latest `optimum-intel` package:\n"
46+
"pip install optimum-intel@git+https://github.com/huggingface/optimum-intel.git\n"
47+
"optimum-cli export openvino --trust-remote-code --model openai/whisper-tiny whisper-tiny");
4348
ov::Core core = utils::singleton_core();
4449

4550
auto compiled_model = core.compile_model(models_path / "openvino_decoder_model.xml", device, properties);

0 commit comments

Comments
 (0)