Skip to content

Commit

Permalink
NPU LLM Pipeline: Switch to STATEFUL by default (#1561)
Browse files Browse the repository at this point in the history
Prerequisites:
* openvinotoolkit/openvino#28473
* openvinotoolkit/openvino#28489

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
  • Loading branch information
dmatveev and ilya-lavrenov authored Jan 17, 2025
1 parent 1b3c68d commit cd46e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ LLMPipelineFactory::create(const std::filesystem::path& models_path,
const std::string& device,
const ov::AnyMap& config) {
auto properties = config;
const auto pipeline_mode = str_to_pipeline(pop_or_default(properties, "STATIC_PIPELINE", std::string("STATELESS")));
const auto pipeline_mode = str_to_pipeline(pop_or_default(properties, "STATIC_PIPELINE", std::string("STATEFUL")));
if (pipeline_mode == StaticPipelineKind::STATEFUL) {
return std::make_unique<ov::genai::static_llm::StatefulLLMPipeline>(models_path, tokenizer, device, properties);
}
Expand All @@ -1528,7 +1528,7 @@ std::unique_ptr<LLMPipelineImplBase> LLMPipelineFactory::create(const std::share
const ov::AnyMap& properties,
const ov::genai::GenerationConfig& generation_config) {
auto properties_copy = properties;
const auto pipeline_mode = str_to_pipeline(pop_or_default(properties_copy, "STATIC_PIPELINE", std::string("STATELESS")));
const auto pipeline_mode = str_to_pipeline(pop_or_default(properties_copy, "STATIC_PIPELINE", std::string("STATEFUL")));
if (pipeline_mode == StaticPipelineKind::STATEFUL) {
return std::make_unique<ov::genai::static_llm::StatefulLLMPipeline>(model,
model_desc,
Expand Down

0 comments on commit cd46e19

Please sign in to comment.