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

[LLM] [NPU] StaticLLMPipeline: support weightless caching #1635

Merged
Prev Previous commit
Next Next commit
Address review comment
smirnov-alexey committed Jan 31, 2025
commit a62b5270baca550d0a2112df2750fbd7b3c9ae0c
4 changes: 2 additions & 2 deletions src/cpp/src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
@@ -722,8 +722,8 @@ StatefulLLMPipeline::StatefulLLMPipeline(
ov::AnyMap properties = config;
std::shared_ptr<ov::CompiledModel> compiled;
// CACHE_DIR + weightless flow support
auto cache_mode = get_option<std::string>(config, "CACHE_MODE");
if (cache_mode.has_value() && *cache_mode == "OPTIMIZE_SIZE") {
auto cache_mode = get_option<CacheMode>(config, "CACHE_MODE");
if (cache_mode.has_value() && *cache_mode == CacheMode::OPTIMIZE_SIZE) {
compiled = setupAndCompileModel(models_path / "openvino_model.xml", model_desc, properties);
} else {
auto model = genai::utils::singleton_core().read_model(models_path / "openvino_model.xml", {}, config);