Skip to content

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

[NPU][WS] Add a test covering the WSVersion::ITERATIVE + CompilerType::PLUGIN scenario (#33059)

Razvan Apetroaie71d7d40b18f3
diff --git a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cpp b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cpp
index ba7e6a9599e..04d2f880267 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cpp
@@ -10,6 +10,10 @@ const std::vector<ov::AnyMap> emptyConfig = {{}};
const std::vector<ov::AnyMap> cipConfig = {
{ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::PLUGIN),
ov::intel_npu::platform(ov::test::utils::getTestsPlatformFromEnvironmentOr(ov::test::utils::DEVICE_NPU))}};
+const std::vector<ov::AnyMap> bothConfig = {
+ {},
+ {ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::PLUGIN),
+ ov::intel_npu::platform(ov::test::utils::getTestsPlatformFromEnvironmentOr(ov::test::utils::DEVICE_NPU))}};
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTest,
WeightsSeparationTests,
@@ -22,3 +26,9 @@ INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTest,
::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
::testing::ValuesIn(cipConfig)),
WeightsSeparationOneShotTests::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTest,
+ WeightsSeparationIterativeTests,
+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),
+ ::testing::ValuesIn(bothConfig)),
+ WeightsSeparationIterativeTests::getTestCaseName);
diff --git a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp
index dade16d10a1..1adcc1513fe 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp
@@ -172,21 +172,6 @@ TEST_P(WeightsSeparationTests, CheckForFailureNoWeightlessCacheAttribute) {
OV_EXPECT_THROW(compiled_model = core->compile_model(model, target_device, configuration), ov::Exception, _);
}
-/**
- * @brief Compiles a basic model and checks if it produces correct results.
- */
-TEST_P(WeightsSeparationTests, CorrectInferenceResultNoImportIterative) {
- model = createTestModel();
- configuration.insert(ov::intel_npu::weightless_blob(true));
- configuration.insert(ov::intel_npu::separate_weights_version(ov::intel_npu::WSVersion::ITERATIVE));
-
- OV_ASSERT_NO_THROW(compiled_model = core->compile_model(model, target_device, configuration));
- ASSERT_TRUE(compiled_model);
- EXPECT_FALSE(compiled_model.get_property(ov::loaded_from_cache));
-
- create_infer_request_and_check_result();
-}
-
/**
* @brief compile -> import using OV caching -> create inference request -> run one inference and check the result
*/
@@ -474,6 +459,23 @@ TEST_P(WeightsSeparationOneShotTests, CorrectInferenceResultNoImportOneShot) {
create_infer_request_and_check_result();
}
+using WeightsSeparationIterativeTests = WeightsSeparationTests;
+
+/**
+ * @brief Compiles a basic model and checks if it produces correct results.
+ */
+TEST_P(WeightsSeparationIterativeTests, CorrectInferenceResultNoImportIterative) {
+ model = createTestModel();
+ configuration.insert(ov::intel_npu::weightless_blob(true));
+ configuration.insert(ov::intel_npu::separate_weights_version(ov::intel_npu::WSVersion::ITERATIVE));
+
+ OV_ASSERT_NO_THROW(compiled_model = core->compile_model(model, target_device, configuration));
+ ASSERT_TRUE(compiled_model);
+ EXPECT_FALSE(compiled_model.get_property(ov::loaded_from_cache));
+
+ create_infer_request_and_check_result();
+}
+
} // namespace behavior
} // namespace test
} // namespace ov
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 606af7dd168..9d5df956f54 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
@@ -787,7 +787,7 @@ Example:
<message>Only "developer built" compilers support weights separation</message>
<filters>
<filter>.*WeightsSeparationTests.*</filter>
- <filter>.*WeightsSeparationNotSupportedTests.*</filter>
+ <filter>.*WeightsSeparationIterativeTests.*</filter>
</filters>
</skip_config>