Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[NPU] Caching Properties update (#33366)

Sorin Butnariue557b9ea7243
diff --git a/src/plugins/intel_npu/src/plugin/include/properties.hpp b/src/plugins/intel_npu/src/plugin/include/properties.hpp
index 0589d2dfcf9..165d84c9b01 100644
--- a/src/plugins/intel_npu/src/plugin/include/properties.hpp
+++ b/src/plugins/intel_npu/src/plugin/include/properties.hpp
@@ -73,8 +73,12 @@ private:
const std::vector<ov::PropertyName> _cachingProperties = {
ov::cache_mode.name(),
+ ov::enable_profiling.name(),
ov::device::architecture.name(),
ov::hint::execution_mode.name(),
+ ov::hint::inference_precision.name(),
+ ov::hint::performance_mode.name(),
+ ov::intel_npu::batch_compiler_mode_settings.name(),
ov::intel_npu::batch_mode.name(),
ov::intel_npu::compilation_mode.name(),
ov::intel_npu::compilation_mode_params.name(),
@@ -82,8 +86,13 @@ private:
ov::intel_npu::compiler_type.name(),
ov::intel_npu::dma_engines.name(),
ov::intel_npu::driver_version.name(),
+ ov::intel_npu::dynamic_shape_to_static.name(),
ov::intel_npu::enable_strides_for.name(),
+ ov::intel_npu::max_tiles.name(),
ov::intel_npu::tiles.name(),
+ ov::intel_npu::turbo.name(),
+ ov::intel_npu::qdq_optimization.name(),
+ ov::intel_npu::qdq_optimization_aggressive.name(),
// NPUW caching properties
ov::intel_npu::use_npuw.name(),
ov::intel_npu::npuw::devices.name(),
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp
index 4f83a6837cb..0e413547b28 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp
@@ -120,4 +120,30 @@ INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests_CachingSupportCase_NPU,
::testing::ValuesIn(NPUCompiledKernelsCacheTest)),
ov::test::utils::appendPlatformTypeTestName<CompiledKernelsCacheTest>);
+const std::vector<ov::AnyMap> cachingProperties = {
+ {ov::enable_profiling(true)},
+ {ov::hint::execution_mode(ov::hint::ExecutionMode::PERFORMANCE)},
+ {ov::hint::inference_precision(ov::element::i8)},
+ {ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT)},
+ {ov::intel_npu::batch_compiler_mode_settings("NPU_BATCH_SIZE=4")},
+ {ov::intel_npu::batch_mode(ov::intel_npu::BatchMode::COMPILER)},
+ {ov::intel_npu::compilation_mode("ReferenceSW")},
+ {ov::intel_npu::compilation_mode_params("dummy-op-replacement=true")},
+ {ov::intel_npu::compiler_dynamic_quantization()},
+ {ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::DRIVER)},
+ {ov::intel_npu::dma_engines(1)},
+ {ov::intel_npu::dynamic_shape_to_static("true")},
+ {ov::intel_npu::max_tiles(64)},
+ {ov::intel_npu::tiles(2)},
+ {ov::intel_npu::turbo(true)},
+ {ov::intel_npu::qdq_optimization(true)},
+ {ov::intel_npu::qdq_optimization_aggressive(true)}
+};
+
+INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests_CachingSupportCase_NPU_Check_Config,
+ CompileModelLoadFromCacheTest,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
+ ::testing::ValuesIn(cachingProperties)),
+ ov::test::utils::appendPlatformTypeTestName<CompileModelLoadFromCacheTest>);
+
} // namespace
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml b/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml
index 3a6bbd910b2..0d8ec13ee65 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml
@@ -855,4 +855,27 @@ Example:
</filters>
</skip_config>
+ <skip_config>
+ <message>Set of caching properties that are not suported by PV driver</message>
+ <enable_rules>
+ <backend>LEVEL0</backend>
+ <driver_version>1688</driver_version>
+ <operating_system>windows</operating_system>
+ </enable_rules>
+ <filters>
+ <filter>.*CompileModelLoadFromCacheTest.*EXECUTION_MODE_HINT.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*INFERENCE_PRECISION_HINT.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_BATCH_COMPILER_MODE_SETTINGS.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_BATCH_MODE.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_COMPILER_DYNAMIC_QUANTIZATION.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_DYNAMIC_SHAPE_TO_STATIC.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_MAX_TILES.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_TILES.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_TURBO.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_QDQ_OPTIMIZATION.*</filter>
+ <filter>.*CompileModelLoadFromCacheTest.*NPU_QDQ_OPTIMIZATION_AGGRESSIVE.*</filter>
+
+ </filters>
+ </skip_config>
+
</skip_configs>