OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[NPU][WS] Enable the compiler-in-plugin functional tests (#34707)
Razvan Apetroaie0cbd6d4f33f8
diff --git a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cpp b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cppindex 8f401ef8dad..fca5a5a6b0a 100644--- a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cpp+++ b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.cpp@@ -6,19 +6,18 @@using namespace ov::test::behavior;-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::DRIVER)},{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,::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),- ::testing::ValuesIn(emptyConfig)),+ ::testing::ValuesIn(cipConfig)),WeightsSeparationTests::getTestCaseName);INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTest,diff --git a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hppindex de5f88070f3..84708832007 100644--- a/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp+++ b/src/plugins/intel_npu/tests/functional/behavior/weights_separation.hpp@@ -179,7 +179,7 @@ protected:*/TEST_P(WeightsSeparationTests, CheckOneShotVersionThrows) {model = createTestModel();- configuration.insert(ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::DRIVER));+ configuration[ov::intel_npu::compiler_type.name()] = ov::intel_npu::CompilerType::DRIVER;configuration.insert(ov::intel_npu::weightless_blob(true));configuration.insert(ov::intel_npu::separate_weights_version(ov::intel_npu::WSVersion::ONE_SHOT));OV_EXPECT_THROW(compiled_model = core->compile_model(model, target_device, configuration), ov::Exception, _);@@ -192,7 +192,6 @@ TEST_P(WeightsSeparationTests, CheckOneShotVersionThrows) {TEST_P(WeightsSeparationTests, CheckForFailureNoWeightlessCacheAttribute) {model = createTestModel(false);configuration.insert(ov::intel_npu::weightless_blob(true));- configuration.insert(ov::intel_npu::separate_weights_version(ov::intel_npu::WSVersion::ITERATIVE));OV_EXPECT_THROW(compiled_model = core->compile_model(model, target_device, configuration), ov::Exception, _);}@@ -205,7 +204,6 @@ TEST_P(WeightsSeparationTests, CorrectInferenceResultIfCachingUsed) {model = createTestModel();configuration.emplace(ov::cache_mode(ov::CacheMode::OPTIMIZE_SIZE));- 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);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.xmlindex 2566dafd391..f77ec9ad491 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@@ -784,10 +784,9 @@ Example:</skip_config><skip_config>- <message>Only "developer built" compilers support weights separation</message>+ <message>Non "developer build" CiDs don't support weights separation yet</message><filters>- <filter>.*WeightsSeparationTests.*</filter>- <filter>.*WeightsSeparationIterativeTests.*</filter>+ <filter>.*WeightsSeparationIterativeTests.*DRIVER.*</filter></filters></skip_config>@@ -818,13 +817,6 @@ Example:</filters></skip_config>- <skip_config>- <message>The "one shot" implementation of the weights separation feature is supported only in the compiler-in-plugin flow</message>- <filters>- <filter>.*WeightsSeparationOneShotTests.*</filter>- </filters>- </skip_config>-<skip_config><message>Tests skipped to reduce overall log length</message><filters>