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] Accept blobs compiled with a limited set of minor version (#32532)
Alexandru Enache674ec7c235b3
diff --git a/src/plugins/intel_npu/src/plugin/include/metadata.hpp b/src/plugins/intel_npu/src/plugin/include/metadata.hppindex 8ad88ee69c4..ef75b017b72 100644--- a/src/plugins/intel_npu/src/plugin/include/metadata.hpp+++ b/src/plugins/intel_npu/src/plugin/include/metadata.hpp@@ -43,8 +43,6 @@ public:*/virtual void write(std::ostream& stream) = 0;- virtual bool is_compatible() = 0;-virtual uint64_t get_blob_size() const;/**@@ -229,21 +227,6 @@ public:*/void write(std::ostream& stream) override;- /**- * @brief Checks if metadata is supported.- *- * @return Returns:- * - false:- * - if blob metadata does not match current metadata.- * - if blob OpenVINO version does not match current one.- *- * - true: if all versions match.- *- * @note The version check can be disabled if the "OV_NPU_DISABLE_VERSION_CHECK" environment variable is set to- * 'YES'.- */- bool is_compatible() override;-size_t get_metadata_size() const override;protected:@@ -346,6 +329,9 @@ std::unique_ptr<MetadataBase> create_metadata(uint32_t version, uint64_t blobSiz** @return If the blob is versioned and its major version is supported, returns an unique pointer to the read* MetadataBase object; otherwise, returns 'nullptr'.+ *+ * @note The read of metadata can be disabled if the "OV_NPU_IMPORT_RAW_BLOB" environment variable is set to+ * 'YES'.*/std::unique_ptr<MetadataBase> read_metadata_from(std::istream& stream);diff --git a/src/plugins/intel_npu/src/plugin/src/metadata.cpp b/src/plugins/intel_npu/src/plugin/src/metadata.cppindex 28e8a68a061..19711dcc8de 100644--- a/src/plugins/intel_npu/src/plugin/src/metadata.cpp+++ b/src/plugins/intel_npu/src/plugin/src/metadata.cpp@@ -259,9 +259,16 @@ void Metadata<METADATA_VERSION_2_3>::write(std::ostream& stream) {}std::unique_ptr<MetadataBase> create_metadata(uint32_t version, uint64_t blobSize) {- if (MetadataBase::get_major(version) == CURRENT_METADATA_MAJOR_VERSION &&- MetadataBase::get_minor(version) >= CURRENT_METADATA_MINOR_VERSION) {- return std::make_unique<Metadata<CURRENT_METADATA_VERSION>>(blobSize);+ uint16_t major = MetadataBase::get_major(version), minor = MetadataBase::get_minor(version);+ if (major != CURRENT_METADATA_MAJOR_VERSION || minor > CURRENT_METADATA_MINOR_VERSION) {+ OPENVINO_THROW("Metadata version is not supported! Imported blob metadata version: ",+ major,+ ".",+ minor,+ " but the current version is: ",+ CURRENT_METADATA_MAJOR_VERSION,+ ".",+ CURRENT_METADATA_MINOR_VERSION);}switch (version) {@@ -271,31 +278,11 @@ std::unique_ptr<MetadataBase> create_metadata(uint32_t version, uint64_t blobSizreturn std::make_unique<Metadata<METADATA_VERSION_2_1>>(blobSize);case METADATA_VERSION_2_2:return std::make_unique<Metadata<METADATA_VERSION_2_2>>(blobSize);+ case METADATA_VERSION_2_3:+ return std::make_unique<Metadata<METADATA_VERSION_2_3>>(blobSize);default:- OPENVINO_THROW("Metadata version is not supported! Imported blob metadata version: ",- MetadataBase::get_major(version),- ".",- MetadataBase::get_minor(version),- " but the current version is: ",- CURRENT_METADATA_MAJOR_VERSION,- ".",- CURRENT_METADATA_MINOR_VERSION);- }-}--bool Metadata<METADATA_VERSION_2_0>::is_compatible() {- // checking if we can import the blob- if (_ovVersion != CURRENT_OPENVINO_VERSION) {- _logger.error("Imported blob OpenVINO version: %d.%d.%d, but the current OpenVINO version is: %d.%d.%d",- _ovVersion.get_major(),- _ovVersion.get_minor(),- _ovVersion.get_patch(),- OPENVINO_VERSION_MAJOR,- OPENVINO_VERSION_MINOR,- OPENVINO_VERSION_PATCH);- return false;+ return nullptr;}- return true;}std::streampos MetadataBase::getFileSize(std::istream& stream) {@@ -346,8 +333,14 @@ std::unique_ptr<MetadataBase> read_metadata_from(std::istream& stream) {stream.read(reinterpret_cast<char*>(&metaVersion), sizeof(metaVersion));std::unique_ptr<MetadataBase> storedMeta;- storedMeta = create_metadata(metaVersion, blobDataSize);- storedMeta->read(stream);+ try {+ storedMeta = create_metadata(metaVersion, blobDataSize);+ storedMeta->read(stream);+ } catch (const std::exception& ex) {+ OPENVINO_THROW("Can't read NPU metadata: ", ex.what());+ } catch (...) {+ OPENVINO_THROW("Unexpected exception while reading blob NPU metadata");+ }stream.seekg(-stream.tellg() + currentStreamPos, std::ios::cur);@@ -378,15 +371,7 @@ std::unique_ptr<MetadataBase> read_metadata_from(const ov::Tensor& tensor) {storedMeta = create_metadata(metaVersion, blobDataSize);storedMeta->read(roiTensor);} catch (const std::exception& ex) {- OPENVINO_THROW(ex.what(),- "Imported blob metadata version: ",- MetadataBase::get_major(metaVersion),- ".",- MetadataBase::get_minor(metaVersion),- " but the current version is: ",- CURRENT_METADATA_MAJOR_VERSION,- ".",- CURRENT_METADATA_MINOR_VERSION);+ OPENVINO_THROW("Can't read NPU metadata: ", ex.what());} catch (...) {OPENVINO_THROW("Unexpected exception while reading blob NPU metadata");}diff --git a/src/plugins/intel_npu/src/plugin/src/plugin.cpp b/src/plugins/intel_npu/src/plugin/src/plugin.cppindex 321d9b2ab72..1f864cecbd4 100644--- a/src/plugins/intel_npu/src/plugin/src/plugin.cpp+++ b/src/plugins/intel_npu/src/plugin/src/plugin.cpp@@ -905,15 +905,16 @@ std::shared_ptr<ov::ICompiledModel> Plugin::import_model(std::istream& stream, c: _globalConfig.get<IMPORT_RAW_BLOB>();std::unique_ptr<MetadataBase> metadata = nullptr;size_t blobSize = MetadataBase::getFileSize(stream);+if (!importRawBlob && !skipCompatibility) {// Read only metadata from the stream and check if blob is compatible. Load blob into memory only in case it// passes compatibility checks.metadata = read_metadata_from(stream);- if (!metadata->is_compatible()) {- OPENVINO_THROW("Incompatible blob version!");- }blobSize = metadata->get_blob_size();+ } else {+ _logger.info("Blob compatibility check skipped.");}+ov::Allocator customAllocator{utils::AlignedAllocator{utils::STANDARD_PAGE_SIZE}};ov::Tensor tensor(ov::element::u8, ov::Shape{blobSize}, customAllocator);if (blobSize > static_cast<decltype(blobSize)>(std::numeric_limits<std::streamsize>::max())) {@@ -965,12 +966,12 @@ std::shared_ptr<ov::ICompiledModel> Plugin::import_model(const ov::Tensor& compi: _globalConfig.get<IMPORT_RAW_BLOB>();std::unique_ptr<MetadataBase> metadata = nullptr;size_t blobSize = compiled_blob.get_byte_size();+if (!importRawBlob && !skipCompatibility) {metadata = read_metadata_from(compiled_blob);- if (!metadata->is_compatible()) {- OPENVINO_THROW("Incompatible blob version!");- }blobSize = metadata->get_blob_size();+ } else {+ _logger.info("Blob compatibility check skipped.");}const ov::Tensor roiTensor(compiled_blob,ov::Coordinate{0},diff --git a/src/plugins/intel_npu/tests/functional/CMakeLists.txt b/src/plugins/intel_npu/tests/functional/CMakeLists.txtindex 966d8b45ff4..a8239702cf5 100644--- a/src/plugins/intel_npu/tests/functional/CMakeLists.txt+++ b/src/plugins/intel_npu/tests/functional/CMakeLists.txt@@ -59,7 +59,6 @@ if(WIN32)endif()endif()-set_target_properties(${TARGET_NAME} PROPERTIES FOLDER ${CMAKE_CURRENT_SOURCE_DIR} CXX_STANDARD 17)@@ -70,7 +69,7 @@ endif()target_compile_definitions(${TARGET_NAME} PRIVATE CI_BUILD_NUMBER=\"mock_version\")-file(GLOB_RECURSE BLOBS "*.blob")+file(GLOB_RECURSE BLOBS "*.blob" "*.xml" "*.bin")file(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/intel_npu_blobs)add_custom_command(TARGET ${TARGET_NAME} POST_BUILDCOMMAND ${CMAKE_COMMAND} -E copy ${BLOBS}diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cppindex 3de3deb304a..791d289cfb2 100644--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp@@ -26,10 +26,10 @@ const auto all_models = []() -> std::vector<std::string> {const auto match_platform =!ov::test::utils::NpuTestEnvConfig::getInstance().IE_NPU_TESTS_PLATFORM.empty()- ? (PARSED_PLATFORMS.find(ov::test::utils::NpuTestEnvConfig::getInstance().IE_NPU_TESTS_PLATFORM) !=- PARSED_PLATFORMS.end()- ? PLATFORMS.at(- PARSED_PLATFORMS.at(ov::test::utils::NpuTestEnvConfig::getInstance().IE_NPU_TESTS_PLATFORM))+ ? (PARSED_PLATFORMS.find(ov::intel_npu::Platform::standardize(+ ov::test::utils::NpuTestEnvConfig::getInstance().IE_NPU_TESTS_PLATFORM)) != PARSED_PLATFORMS.end()+ ? PLATFORMS.at(PARSED_PLATFORMS.at(ov::intel_npu::Platform::standardize(+ ov::test::utils::NpuTestEnvConfig::getInstance().IE_NPU_TESTS_PLATFORM))): ""): "";@@ -68,22 +68,27 @@ const auto all_drivers_except_pv = []() -> std::vector<std::string> {return drivers;}();+const std::vector<ov::AnyMap> config = {{}};+INSTANTIATE_TEST_SUITE_P(smoke_Behavior_NPU,OVBlobCompatibilityNPU,::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),::testing::ValuesIn(all_models),::testing::Values(match_platform),::testing::ValuesIn(all_ov_releases),- ::testing::ValuesIn(all_drivers_except_pv)),+ ::testing::ValuesIn(all_drivers_except_pv),+ ::testing::ValuesIn(config)),ov::test::utils::appendPlatformTypeTestName<OVBlobCompatibilityNPU>);#ifdef _WIN32 // Linux supports only ELF backend-INSTANTIATE_TEST_SUITE_P(smoke_Behavior_NPU,- OVBlobCompatibilityNPU_PV_Driver_No_Throw,- ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),- ::testing::ValuesIn(pv_compatible_models),- ::testing::Values(match_platform),- ::testing::ValuesIn(all_ov_releases),- ::testing::Values(DRIVERS.at(E_DRIVERS::DRIVER_1688))),- ov::test::utils::appendPlatformTypeTestName<OVBlobCompatibilityNPU_PV_Driver_No_Throw>);+INSTANTIATE_TEST_SUITE_P(+ compatibility_smoke_Behavior_NPU,+ compatibility_OVBlobCompatibilityNPU_PV_Driver_No_Throw,+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),+ ::testing::ValuesIn(pv_compatible_models),+ ::testing::Values(match_platform),+ ::testing::ValuesIn(all_ov_releases),+ ::testing::Values(DRIVERS.at(E_DRIVERS::DRIVER_1688)),+ ::testing::ValuesIn(config)),+ ov::test::utils::appendPlatformTypeTestName<compatibility_OVBlobCompatibilityNPU_PV_Driver_No_Throw>);#endifdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.hpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.hppindex 621776bc068..4624fe22ffa 100644--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.hpp+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.hpp@@ -11,10 +11,11 @@namespace {-const char* const BLOB_PREFIX = "blob_compatibility_";+const char* const BLOB_PREFIX = "blob_compat_";const char* const OV_VERSION_PREFIX = "ov";const char* const DRIVER_PREFIX = "driver";const char* const BLOB_SUFFIX = ".blob";+const char* const BIN_SUFFIX = ".bin";enum class E_DUMMY_MODELS { DUMMY_MODEL, DUMMY_MODEL_STATEFUL, DUMMY_MODEL_DYNAMIC_SHAPES };@@ -23,26 +24,18 @@ const std::map<E_DUMMY_MODELS, std::string> DUMMY_MODELS{{E_DUMMY_MODELS::DUMMY_MODEL_STATEFUL, "dummy_model_stateful"},{E_DUMMY_MODELS::DUMMY_MODEL_DYNAMIC_SHAPES, "dummy_model_dynamic_shapes"}};-enum class E_PLATFORMS {- MTL,-};+enum class E_PLATFORMS { MTL, LNL };-const std::map<E_PLATFORMS, std::string> PLATFORMS{{E_PLATFORMS::MTL, "MTL"}};-const std::map<std::string, E_PLATFORMS> PARSED_PLATFORMS{{"NPU3720", E_PLATFORMS::MTL}};+const std::map<E_PLATFORMS, std::string> PLATFORMS{{E_PLATFORMS::MTL, "MTL"}, {E_PLATFORMS::LNL, "LNL"}};+const std::map<std::string, E_PLATFORMS> PARSED_PLATFORMS{{"3720", E_PLATFORMS::MTL}, {"4000", E_PLATFORMS::LNL}};-enum class E_OV_VERSIONS {- OV_2024_6_0,- OV_2025_0_0,- OV_2025_1_0,-};+enum class E_OV_VERSIONS { OV_2025_4_0 };-const std::map<E_OV_VERSIONS, std::string> OV_VERSIONS{{E_OV_VERSIONS::OV_2024_6_0, "2024_6_0"},- {E_OV_VERSIONS::OV_2025_0_0, "2025_0_0"},- {E_OV_VERSIONS::OV_2025_1_0, "2025_1_0"}};+const std::map<E_OV_VERSIONS, std::string> OV_VERSIONS{{E_OV_VERSIONS::OV_2025_4_0, "2025_4_0"}};-enum class E_DRIVERS { DRIVER_1688, DRIVER_3967 };+enum class E_DRIVERS { DRIVER_1688, DRIVER_4511 };-const std::map<E_DRIVERS, std::string> DRIVERS{{E_DRIVERS::DRIVER_1688, "1688"}, {E_DRIVERS::DRIVER_3967, "1003967"}};+const std::map<E_DRIVERS, std::string> DRIVERS{{E_DRIVERS::DRIVER_1688, "1688"}, {E_DRIVERS::DRIVER_4511, "2020509"}};} // namespace@@ -54,7 +47,8 @@ using BlobCompatibilityParams = std::tuple</* target_device = */ std::string,/* model_name = */ std::string,/* platform = */ std::string,/* ov_release = */ std::string,- /* driver = */ std::string>;+ /* driver = */ std::string,+ /* config = */ ov::AnyMap>;class OVBlobCompatibilityNPU : public OVCompiledNetworkTestBase,public testing::WithParamInterface<BlobCompatibilityParams> {@@ -62,61 +56,85 @@ public:void SetUp() override {SKIP_IF_CURRENT_TEST_IS_DISABLED();std::string model_name, platform, ov_release, driver;- std::tie(target_device, model_name, platform, ov_release, driver) = this->GetParam();- blobName = BLOB_PREFIX + model_name + "_" + platform + "_" + OV_VERSION_PREFIX + "_" + ov_release + "_" +- DRIVER_PREFIX + "_" + driver + BLOB_SUFFIX;+ std::tie(target_device, model_name, platform, ov_release, driver, config) = this->GetParam();+ const auto& blobName = BLOB_PREFIX + model_name + "_" + platform + "_" + OV_VERSION_PREFIX + "_" + ov_release ++ "_" + DRIVER_PREFIX + "_" + driver + BLOB_SUFFIX;+ blobPath = ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH + blobName;+ weightsPath = ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH + BLOB_PREFIX ++ model_name + BIN_SUFFIX;APIBaseTest::SetUp();}static std::string getTestCaseName(const testing::TestParamInfo<BlobCompatibilityParams>& obj) {std::string target_device, model_name, platform, ov_release, driver;- std::tie(target_device, model_name, platform, ov_release, driver) = obj.param;+ ov::AnyMap config;+ std::tie(target_device, model_name, platform, ov_release, driver, config) = obj.param;std::ostringstream result;result << "targetDevice=" << target_device << "_blobName=\"" << BLOB_PREFIX << model_name << "_" << platform<< "_" << OV_VERSION_PREFIX << "_" << ov_release << "_" << DRIVER_PREFIX << "_" << driver << BLOB_SUFFIX- << "\"";+ << "\"" << "_";++ if (!config.empty()) {+ for (auto& configItem : config) {+ result << "configItem=" << configItem.first << "_";+ configItem.second.print(result);+ }+ }return result.str();}protected:ov::Core core;- std::string blobName;+ std::string blobPath;+ std::string weightsPath;+ ov::AnyMap config;};-using OVBlobCompatibilityNPU_PV_Driver_No_Throw = OVBlobCompatibilityNPU;+using compatibility_OVBlobCompatibilityNPU_PV_Driver_No_Throw = OVBlobCompatibilityNPU;+using OVBlobCompatibilityNPU_Metadata_No_Throw = OVBlobCompatibilityNPU;#define NO_APPEND_EXPORT(ASSERT_TYPE, ...)-#define APPEND_EXPORT(ASSERT_TYPE) \- std::shared_ptr<ov::Model> nullModel(nullptr); \- ov::CompiledModel compiledModel; \- ASSERT_TYPE(compiledModel = core.compile_model(nullModel, \- target_device, \- {ov::hint::compiled_blob(ov::read_tensor_data(blobPath)), \- ov::intel_npu::disable_version_check(true)})); \- std::ostringstream outBlobStream; \- ASSERT_TYPE(compiledModel.export_model(outBlobStream)); \+#define APPEND_EXPORT(ASSERT_TYPE) \+ std::shared_ptr<ov::Model> nullModel(nullptr); \+ ov::CompiledModel compiledModel; \+ config.emplace(ov::hint::compiled_blob(ov::read_tensor_data(blobPath))); \+ ASSERT_TYPE(compiledModel = core.compile_model(nullModel, target_device, config)); \+ config.erase(ov::hint::compiled_blob.name()); \+ std::ostringstream outBlobStream; \+ ASSERT_TYPE(compiledModel.export_model(outBlobStream)); \EXPECT_TRUE(outBlobStream.tellp() > 0);#define APPEND_EXPORT_HELPER_(arg1, arg2, arg3, ...) arg3#define APPEND_EXPORT_HELPER(...) APPEND_EXPORT_HELPER_(__VA_ARGS__, NO_APPEND_EXPORT, APPEND_EXPORT)(__VA_ARGS__)-#define DEFAULT_TEST_BODY(ASSERT_TYPE, ...) \- const auto blobPath = ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH + blobName; \- std::ifstream blobStream(blobPath, std::ios::binary | std::ios::in); \- ASSERT_TYPE(core.import_model(blobStream, target_device, {ov::intel_npu::disable_version_check(true)}), \- ##__VA_ARGS__); \+#define DEFAULT_TEST_BODY(ASSERT_TYPE, ...) \+ std::ifstream blobStream(blobPath, std::ios::binary | std::ios::in); \+ config.emplace(ov::weights_path(weightsPath)); \+ ASSERT_TYPE(core.import_model(blobStream, target_device, config), ##__VA_ARGS__); \APPEND_EXPORT_HELPER(ASSERT_TYPE, ##__VA_ARGS__)TEST_P(OVBlobCompatibilityNPU, CanImportAllPrecompiledBlobsForAllOVVersionsAndDrivers) {- if (auto current_driver =- core.get_property(ov::test::utils::DEVICE_NPU, ov::intel_npu::driver_version.name()).as<std::string>();- current_driver == DRIVERS.at(E_DRIVERS::DRIVER_1688) && blobName.find(current_driver) == std::string::npos) {- GTEST_SKIP() << "FWD compatibility between drivers is not supported!";- }DEFAULT_TEST_BODY(OV_ASSERT_NO_THROW);}-TEST_P(OVBlobCompatibilityNPU_PV_Driver_No_Throw, CanImportExpectedModelsForPVDriverAndAllOVVersions) {+TEST_P(compatibility_OVBlobCompatibilityNPU_PV_Driver_No_Throw, CanImportExpectedModelsForPVDriverAndAllOVVersions) {+ size_t mtlPlatformPos = std::string::npos;+ const char slashDelimiter = '/';+ const char backSlashDelimiter = '\\';+ size_t lastSlashDelim = blobPath.find_last_of(slashDelimiter);+ size_t lastBackSlashDelim = blobPath.find_last_of(backSlashDelimiter);+ if (lastSlashDelim != std::string::npos && lastBackSlashDelim != std::string::npos) {+ mtlPlatformPos = blobPath.find(PLATFORMS.at(E_PLATFORMS::MTL), std::max(lastSlashDelim, lastBackSlashDelim));+ } else {+ mtlPlatformPos = blobPath.find(slashDelimiter) != std::string::npos+ ? blobPath.find(PLATFORMS.at(E_PLATFORMS::MTL), blobPath.rfind(slashDelimiter))+ : blobPath.find(backSlashDelimiter) != std::string::npos+ ? blobPath.find(PLATFORMS.at(E_PLATFORMS::MTL), blobPath.rfind(backSlashDelimiter))+ : blobPath.find(PLATFORMS.at(E_PLATFORMS::MTL));+ }+ if (mtlPlatformPos == std::string::npos) {+ GTEST_SKIP() << "PV driver blob tests designed for NPU3720";+ }DEFAULT_TEST_BODY(OV_ASSERT_NO_THROW);}diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model.bin b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model.binnew file mode 100644index 00000000000..83afc8a013dBinary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model.bin differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model.xml b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model.xmlnew file mode 100644index 00000000000..857b2db2dd7--- /dev/null+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model.xml@@ -0,0 +1,167 @@+<?xml version="1.0"?>+<net name="dummy_model" version="11">+ <layers>+ <layer id="0" name="Param_1" type="Parameter" version="opset1">+ <data shape="1,1,32,32" element_type="f32" />+ <output>+ <port id="0" precision="FP32" names="data">+ <dim>1</dim>+ <dim>1</dim>+ <dim>32</dim>+ <dim>32</dim>+ </port>+ </output>+ </layer>+ <layer id="1" name="Const_1" type="Const" version="opset1">+ <data element_type="i64" shape="4" offset="0" size="32" />+ <output>+ <port id="0" precision="I64" names="const1">+ <dim>4</dim>+ </port>+ </output>+ </layer>+ <layer id="2" name="Reshape_1" type="Reshape" version="opset1">+ <data special_zero="false" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>32</dim>+ <dim>32</dim>+ </port>+ <port id="1" precision="I64">+ <dim>4</dim>+ </port>+ </input>+ <output>+ <port id="2" precision="FP32" names="reshape1">+ <dim>1</dim>+ <dim>32</dim>+ <dim>1</dim>+ <dim>32</dim>+ </port>+ </output>+ </layer>+ <layer id="3" name="Constant_4" type="Const" version="opset1">+ <data element_type="f32" shape="4, 32, 1, 3" offset="32" size="1536" />+ <output>+ <port id="0" precision="FP32">+ <dim>4</dim>+ <dim>32</dim>+ <dim>1</dim>+ <dim>3</dim>+ </port>+ </output>+ </layer>+ <layer id="4" name="Conv_1" type="Convolution" version="opset1">+ <data strides="1, 1" dilations="1, 1" pads_begin="0, 0" pads_end="0, 0" auto_pad="explicit" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>32</dim>+ <dim>1</dim>+ <dim>32</dim>+ </port>+ <port id="1" precision="FP32">+ <dim>4</dim>+ <dim>32</dim>+ <dim>1</dim>+ <dim>3</dim>+ </port>+ </input>+ <output>+ <port id="2" precision="FP32" names="conv">+ <dim>1</dim>+ <dim>4</dim>+ <dim>1</dim>+ <dim>30</dim>+ </port>+ </output>+ </layer>+ <layer id="5" name="Pool_1" type="MaxPool" version="opset1">+ <data strides="1, 1" pads_begin="0, 0" pads_end="0, 0" kernel="1, 2" rounding_type="floor" auto_pad="explicit" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>4</dim>+ <dim>1</dim>+ <dim>30</dim>+ </port>+ </input>+ <output>+ <port id="1" precision="FP32" names="pool">+ <dim>1</dim>+ <dim>4</dim>+ <dim>1</dim>+ <dim>29</dim>+ </port>+ </output>+ </layer>+ <layer id="6" name="Relu_1" type="ReLU" version="opset1">+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>4</dim>+ <dim>1</dim>+ <dim>29</dim>+ </port>+ </input>+ <output>+ <port id="1" precision="FP32" names="relu">+ <dim>1</dim>+ <dim>4</dim>+ <dim>1</dim>+ <dim>29</dim>+ </port>+ </output>+ </layer>+ <layer id="7" name="Const_2" type="Const" version="opset1">+ <data element_type="i64" shape="2" offset="1568" size="16" />+ <output>+ <port id="0" precision="I64" names="const2">+ <dim>2</dim>+ </port>+ </output>+ </layer>+ <layer id="8" name="Reshape_2" type="Reshape" version="opset1">+ <data special_zero="false" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>4</dim>+ <dim>1</dim>+ <dim>29</dim>+ </port>+ <port id="1" precision="I64">+ <dim>2</dim>+ </port>+ </input>+ <output>+ <port id="2" precision="FP32" names="reshape2">+ <dim>1</dim>+ <dim>116</dim>+ </port>+ </output>+ </layer>+ <layer id="9" name="Result_10" type="Result" version="opset1">+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>116</dim>+ </port>+ </input>+ </layer>+ </layers>+ <edges>+ <edge from-layer="0" from-port="0" to-layer="2" to-port="0" />+ <edge from-layer="1" from-port="0" to-layer="2" to-port="1" />+ <edge from-layer="2" from-port="2" to-layer="4" to-port="0" />+ <edge from-layer="3" from-port="0" to-layer="4" to-port="1" />+ <edge from-layer="4" from-port="2" to-layer="5" to-port="0" />+ <edge from-layer="5" from-port="1" to-layer="6" to-port="0" />+ <edge from-layer="6" from-port="1" to-layer="8" to-port="0" />+ <edge from-layer="7" from-port="0" to-layer="8" to-port="1" />+ <edge from-layer="8" from-port="2" to-layer="9" to-port="0" />+ </edges>+ <rt_info />+</net>diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_LNL_ov_2025_4_0_driver_2020509.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_LNL_ov_2025_4_0_driver_2020509.blobnew file mode 100644index 00000000000..1fa22d2e3e0Binary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_LNL_ov_2025_4_0_driver_2020509.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_1_0_driver_1688.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_MTL_ov_2025_4_0_driver_1688.blobsimilarity index 93%rename from src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_1_0_driver_1688.blobrename to src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_MTL_ov_2025_4_0_driver_1688.blobindex 852d196312b..3b8b349a47a 100644Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_1_0_driver_1688.blob and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_MTL_ov_2025_4_0_driver_1688.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_MTL_ov_2025_4_0_driver_2020509.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_MTL_ov_2025_4_0_driver_2020509.blobnew file mode 100644index 00000000000..dc13a766c86Binary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_MTL_ov_2025_4_0_driver_2020509.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes.bin b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes.binnew file mode 100644index 00000000000..ca6050c86baBinary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes.bin differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes.xml b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes.xmlnew file mode 100644index 00000000000..1ee15257a73--- /dev/null+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes.xml@@ -0,0 +1,80 @@+<?xml version="1.0"?>+<net name="dummy_model_dynamic_shapes" version="11">+ <layers>+ <layer id="0" name="Parameter_97" type="Parameter" version="opset1">+ <data shape="1..32,1..32,64" element_type="f16" />+ <output>+ <port id="0" precision="FP16">+ <dim>-1</dim>+ <dim>-1</dim>+ <dim>64</dim>+ </port>+ </output>+ </layer>+ <layer id="1" name="Softmax_98" type="SoftMax" version="opset1">+ <data axis="2" />+ <input>+ <port id="0" precision="FP16">+ <dim>-1</dim>+ <dim>-1</dim>+ <dim>64</dim>+ </port>+ </input>+ <output>+ <port id="1" precision="FP16">+ <dim>-1</dim>+ <dim>-1</dim>+ <dim>64</dim>+ </port>+ </output>+ </layer>+ <layer id="2" name="Constant_99" type="Const" version="opset1">+ <data element_type="f16" shape="1, 1, 64" offset="0" size="128" />+ <output>+ <port id="0" precision="FP16">+ <dim>1</dim>+ <dim>1</dim>+ <dim>64</dim>+ </port>+ </output>+ </layer>+ <layer id="3" name="Add_100" type="Add" version="opset1">+ <data auto_broadcast="numpy" />+ <input>+ <port id="0" precision="FP16">+ <dim>-1</dim>+ <dim>-1</dim>+ <dim>64</dim>+ </port>+ <port id="1" precision="FP16">+ <dim>1</dim>+ <dim>1</dim>+ <dim>64</dim>+ </port>+ </input>+ <output>+ <port id="2" precision="FP16">+ <dim>-1</dim>+ <dim>-1</dim>+ <dim>64</dim>+ </port>+ </output>+ </layer>+ <layer id="4" name="Result_101" type="Result" version="opset1">+ <input>+ <port id="0" precision="FP16">+ <dim>-1</dim>+ <dim>-1</dim>+ <dim>64</dim>+ </port>+ </input>+ </layer>+ </layers>+ <edges>+ <edge from-layer="0" from-port="0" to-layer="1" to-port="0" />+ <edge from-layer="1" from-port="1" to-layer="3" to-port="0" />+ <edge from-layer="2" from-port="0" to-layer="3" to-port="1" />+ <edge from-layer="3" from-port="2" to-layer="4" to-port="0" />+ </edges>+ <rt_info />+</net>diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes_LNL_ov_2025_4_0_driver_2020509.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes_LNL_ov_2025_4_0_driver_2020509.blobnew file mode 100644index 00000000000..a63eb083c41Binary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes_LNL_ov_2025_4_0_driver_2020509.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes_MTL_ov_2025_4_0_driver_2020509.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes_MTL_ov_2025_4_0_driver_2020509.blobnew file mode 100644index 00000000000..a659238c5d3Binary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_dynamic_shapes_MTL_ov_2025_4_0_driver_2020509.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful.bin b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful.binnew file mode 100644index 00000000000..82221fda267Binary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful.bin differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful.xml b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful.xmlnew file mode 100644index 00000000000..461571195dc--- /dev/null+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful.xml@@ -0,0 +1,142 @@+<?xml version="1.0"?>+<net name="dummy_model_stateful" version="11">+ <layers>+ <layer id="0" name="parameter" type="Parameter" version="opset1">+ <data shape="1,1,2,4" element_type="f32" />+ <output>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </output>+ </layer>+ <layer id="1" name="Constant_55" type="Const" version="opset1">+ <data element_type="f32" shape="1, 1, 2, 4" offset="0" size="32" />+ <output>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </output>+ </layer>+ <layer id="2" name="read" type="ReadValue" version="opset3">+ <data variable_id="v0" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </input>+ <output>+ <port id="1" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </output>+ </layer>+ <layer id="3" name="concat" type="Concat" version="opset1">+ <data axis="3" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ <port id="1" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </input>+ <output>+ <port id="2" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>8</dim>+ </port>+ </output>+ </layer>+ <layer id="4" name="axis" type="Const" version="opset1">+ <data element_type="i64" shape="" offset="32" size="8" />+ <output>+ <port id="0" precision="I64" />+ </output>+ </layer>+ <layer id="5" name="split" type="Split" version="opset1">+ <data num_splits="2" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>8</dim>+ </port>+ <port id="1" precision="I64" />+ </input>+ <output>+ <port id="2" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ <port id="3" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </output>+ </layer>+ <layer id="6" name="assign" type="Assign" version="opset3">+ <data variable_id="v0" />+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </input>+ <output>+ <port id="1" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>4</dim>+ </port>+ </output>+ </layer>+ <layer id="7" name="result" type="Result" version="opset1">+ <input>+ <port id="0" precision="FP32">+ <dim>1</dim>+ <dim>1</dim>+ <dim>2</dim>+ <dim>8</dim>+ </port>+ </input>+ </layer>+ </layers>+ <edges>+ <edge from-layer="0" from-port="0" to-layer="3" to-port="0" />+ <edge from-layer="1" from-port="0" to-layer="2" to-port="0" />+ <edge from-layer="2" from-port="1" to-layer="3" to-port="1" />+ <edge from-layer="3" from-port="2" to-layer="5" to-port="0" />+ <edge from-layer="3" from-port="2" to-layer="7" to-port="0" />+ <edge from-layer="4" from-port="0" to-layer="5" to-port="1" />+ <edge from-layer="5" from-port="2" to-layer="6" to-port="0" />+ </edges>+ <rt_info />+</net>diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_LNL_ov_2025_4_0_driver_2020509.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_LNL_ov_2025_4_0_driver_2020509.blobnew file mode 100644index 00000000000..15f7572a420Binary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_LNL_ov_2025_4_0_driver_2020509.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_0_0_driver_1688.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_MTL_ov_2025_4_0_driver_1688.blobsimilarity index 93%rename from src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_0_0_driver_1688.blobrename to src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_MTL_ov_2025_4_0_driver_1688.blobindex a27a3340e64..8ed73a9fd89 100644Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_0_0_driver_1688.blob and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_MTL_ov_2025_4_0_driver_1688.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_MTL_ov_2025_4_0_driver_2020509.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_MTL_ov_2025_4_0_driver_2020509.blobnew file mode 100644index 00000000000..73d6784cfbcBinary files /dev/null and b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compat_dummy_model_stateful_MTL_ov_2025_4_0_driver_2020509.blob differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2024_6_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2024_6_0_driver_1003967.blobdeleted file mode 100644index aa644acf3ca..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2024_6_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2024_6_0_driver_1688.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2024_6_0_driver_1688.blobdeleted file mode 100644index 91f07f16143..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2024_6_0_driver_1688.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_0_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_0_0_driver_1003967.blobdeleted file mode 100644index b9dc6390e3f..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_0_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_0_0_driver_1688.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_0_0_driver_1688.blobdeleted file mode 100644index 7de4344fe31..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_0_0_driver_1688.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_1_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_1_0_driver_1003967.blobdeleted file mode 100644index 87426763a2b..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_MTL_ov_2025_1_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2024_6_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2024_6_0_driver_1003967.blobdeleted file mode 100644index c5e452de949..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2024_6_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2025_0_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2025_0_0_driver_1003967.blobdeleted file mode 100644index 09cc29a6ada..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2025_0_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2025_1_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2025_1_0_driver_1003967.blobdeleted file mode 100644index 3f1ad66ac69..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_dynamic_shapes_MTL_ov_2025_1_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2024_6_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2024_6_0_driver_1003967.blobdeleted file mode 100644index 4688bf73c27..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2024_6_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2024_6_0_driver_1688.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2024_6_0_driver_1688.blobdeleted file mode 100644index 424840724c8..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2024_6_0_driver_1688.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_0_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_0_0_driver_1003967.blobdeleted file mode 100644index 2a6d6e40827..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_0_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_1_0_driver_1003967.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_1_0_driver_1003967.blobdeleted file mode 100644index f55b12ea4de..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_1_0_driver_1003967.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_1_0_driver_1688.blob b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_1_0_driver_1688.blobdeleted file mode 100644index b5d22a4ad5d..00000000000Binary files a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/intel_npu_blobs/blob_compatibility_dummy_model_stateful_MTL_ov_2025_1_0_driver_1688.blob and /dev/null differdiff --git a/src/plugins/intel_npu/tests/functional/internal/compiler_adapter/zero_graph.hpp b/src/plugins/intel_npu/tests/functional/internal/compiler_adapter/zero_graph.hppindex 33cd4744af1..e70e471f868 100644--- a/src/plugins/intel_npu/tests/functional/internal/compiler_adapter/zero_graph.hpp+++ b/src/plugins/intel_npu/tests/functional/internal/compiler_adapter/zero_graph.hpp@@ -74,7 +74,7 @@ protected:std::tie(targetDevice, configuration, graphExtVersion) = this->GetParam();- const std::string BLOB_NAME = "blob_compatibility_dummy_model_MTL_ov_2025_1_0_driver_1003967.blob";+ const std::string BLOB_NAME = "blob_compat_dummy_model_MTL_ov_2025_4_0_driver_2020509.blob";blobPath = ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH + BLOB_NAME;model = ov::test::utils::make_multi_single_conv();@@ -323,7 +323,7 @@ TEST_P(ZeroGraphTest, SetUnalignedAddressBlob) {localZeGraphExt->getGraphDescriptor(serializedIR, "", bypassUmdCache()));const uint8_t* blobPtr = nullptr;std::vector<uint8_t> blobVec; // plugin needs to keep a copy of the blob for older drivers- size_t blobSize;+ size_t blobSize = 0;OV_ASSERT_NO_THROW(localZeGraphExt->getGraphBinary(localGraphDescriptor, blobVec, blobPtr, blobSize));alignedSize = calculate_size_with_alignment_padding(blobSize, ::utils::STANDARD_PAGE_SIZE);@@ -359,7 +359,7 @@ TEST_P(ZeroGraphTest, SetUnalignedSizeBlob) {localZeGraphExt->getGraphDescriptor(serializedIR, "", bypassUmdCache()));const uint8_t* blobPtr = nullptr;std::vector<uint8_t> blobVec; // plugin needs to keep a copy of the blob for older drivers- size_t blobSize;+ size_t blobSize = 0;OV_ASSERT_NO_THROW(localZeGraphExt->getGraphBinary(localGraphDescriptor, blobVec, blobPtr, blobSize));alignedSize = calculate_size_with_alignment_padding(blobSize, ::utils::STANDARD_PAGE_SIZE);@@ -395,7 +395,7 @@ TEST_P(ZeroGraphTest, SetAlignedBlob) {localZeGraphExt->getGraphDescriptor(serializedIR, "", bypassUmdCache()));const uint8_t* blobPtr = nullptr;std::vector<uint8_t> blobVec; // plugin needs to keep a copy of the blob for older drivers- size_t blobSize;+ size_t blobSize = 0;OV_ASSERT_NO_THROW(localZeGraphExt->getGraphBinary(localGraphDescriptor, blobVec, blobPtr, blobSize));alignedSize = calculate_size_with_alignment_padding(blobSize, ::utils::STANDARD_PAGE_SIZE);diff --git a/src/plugins/intel_npu/tests/functional/main.cpp b/src/plugins/intel_npu/tests/functional/main.cppindex ac14b336f62..b3d629b911b 100644--- a/src/plugins/intel_npu/tests/functional/main.cpp+++ b/src/plugins/intel_npu/tests/functional/main.cpp@@ -59,6 +59,26 @@ int main(int argc, char** argv, char** envp) {oss << *env << "; ";}+ auto blobPaths = ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH;+ if (blobPaths.empty()) {+ auto path = std::string_view(argv[0]);+ const char slashDelimiter = '/';+ const char backSlashDelimiter = '\\';+ size_t pos = std::string::npos;+ size_t lastSlashDelim = path.find_last_of(slashDelimiter);+ size_t lastBackSlashDelim = path.find_last_of(backSlashDelimiter);+ if (lastSlashDelim != std::string::npos && lastBackSlashDelim != std::string::npos) {+ pos = std::max(lastSlashDelim, lastBackSlashDelim);+ } else {+ pos = path.find_last_of(backSlashDelimiter) != std::string_view::npos+ ? path.find_last_of(backSlashDelimiter)+ : path.find_last_of(slashDelimiter);+ }+ ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH =+ pos != std::string_view::npos ? path.substr(0, pos + 1) : "";+ ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH += "intel_npu_blobs/";+ }+::testing::InitGoogleTest(&argc, argv);::testing::AddGlobalTestEnvironment(new ov::test::utils::NpuTestReportEnvironment());@@ -106,15 +126,5 @@ int main(int argc, char** argv, char** envp) {level.empty() ? ov::log::Level::ERR : intel_npu::OptionParser<ov::log::Level>::parse(level.c_str());log.setLevel(logLevel);- auto blobPaths = ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH;- if (blobPaths.empty()) {- auto path = std::string_view(argv[0]);- size_t pos =- path.find_last_of('\\') != std::string_view::npos ? path.find_last_of('\\') : path.find_last_of('/');- ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH =- pos != std::string_view::npos ? path.substr(0, pos + 1) : "";- ov::test::utils::NpuTestEnvConfig::getInstance().OV_NPU_TESTS_BLOBS_PATH += "intel_npu_blobs/";- }-return RUN_ALL_TESTS();}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 9d5df956f54..d26c47db802 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@@ -791,17 +791,6 @@ Example:</filters></skip_config>- <!-- C#165445 -->- <skip_config>- <message>OVBlobCompatibilityNPU tests designed for NPU3720</message>- <enable_rules>- <device>!3720</device>- </enable_rules>- <filters>- <filter>.*OVBlobCompatibilityNPU.*</filter>- </filters>- </skip_config>-<!-- E#170977 --><skip_config><message>Data type u1/u2 not supported by NPU3720.</message>diff --git a/src/plugins/intel_npu/tests/unit/npu/metadata_version.cpp b/src/plugins/intel_npu/tests/unit/npu/metadata_version.cppindex cbb04f2207f..fd52dd2f7b0 100644--- a/src/plugins/intel_npu/tests/unit/npu/metadata_version.cpp+++ b/src/plugins/intel_npu/tests/unit/npu/metadata_version.cpp@@ -48,14 +48,12 @@ TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlob) {std::unique_ptr<MetadataBase> storedMeta;OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(stream));- ASSERT_TRUE(storedMeta->is_compatible());stream.seekg(0, std::ios::beg);size_t streamSize = MetadataBase::getFileSize(stream);auto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});stream.read(tensor.data<char>(), tensor.get_byte_size());OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(tensor));- ASSERT_TRUE(storedMeta->is_compatible());}TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWithContent) {@@ -69,7 +67,6 @@ TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWithContent) {std::unique_ptr<MetadataBase> storedMeta;OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(stream));- ASSERT_TRUE(storedMeta->is_compatible());ASSERT_TRUE(storedMeta->get_blob_size() == blobSize);stream.seekg(0, std::ios::beg);@@ -77,7 +74,6 @@ TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWithContent) {auto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});stream.read(tensor.data<char>(), tensor.get_byte_size());OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(tensor));- ASSERT_TRUE(storedMeta->is_compatible());ASSERT_TRUE(storedMeta->get_blob_size() == blobSize);}@@ -90,14 +86,12 @@ TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWeightsSeparation)std::unique_ptr<MetadataBase> storedMeta;OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(stream));- ASSERT_TRUE(storedMeta->is_compatible());stream.seekg(0, std::ios::beg);size_t streamSize = MetadataBase::getFileSize(stream);auto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});stream.read(tensor.data<char>(), tensor.get_byte_size());OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(tensor));- ASSERT_TRUE(storedMeta->is_compatible());}TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWithContentAllAttributes) {@@ -116,7 +110,6 @@ TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWithContentAllAttristd::unique_ptr<MetadataBase> storedMeta;OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(stream));- ASSERT_TRUE(storedMeta->is_compatible());ASSERT_TRUE(storedMeta->get_blob_size() == blobSize);ASSERT_TRUE(storedMeta->get_init_sizes().has_value());ASSERT_TRUE(storedMeta->get_init_sizes()->size() == initSizes.size());@@ -141,7 +134,6 @@ TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWithContentAllAttriauto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});stream.read(tensor.data<char>(), tensor.get_byte_size());OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(tensor));- ASSERT_TRUE(storedMeta->is_compatible());ASSERT_TRUE(storedMeta->get_blob_size() == blobSize);ASSERT_TRUE(storedMeta->get_init_sizes().has_value());ASSERT_TRUE(storedMeta->get_init_sizes()->size() == initSizes.size());@@ -162,26 +154,6 @@ TEST_F(MetadataUnitTests, writeAndReadCurrentMetadataFromBlobWithContentAllAttri}}-TEST_F(MetadataUnitTests, writeAndReadInvalidOpenvinoVersion) {- uint64_t blobSize = 0;- std::stringstream stream;- OpenvinoVersion wrongOvVersion(0xF0C, 0xACC, 0x1A);- auto meta = MetadataTest(blobSize, wrongOvVersion);-- OV_ASSERT_NO_THROW(meta.write(stream));-- std::unique_ptr<MetadataBase> storedMeta;- OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(stream));- ASSERT_FALSE(storedMeta->is_compatible());-- stream.seekg(0, std::ios::beg);- size_t streamSize = MetadataBase::getFileSize(stream);- auto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});- stream.read(tensor.data<char>(), tensor.get_byte_size());- OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(tensor));- ASSERT_FALSE(storedMeta->is_compatible());-}-TEST_F(MetadataUnitTests, writeAndReadInvalidMetadataVersion) {uint64_t blobSize = 0;std::stringstream stream;@@ -211,15 +183,13 @@ TEST_F(MetadataUnitTests, writeAndReadMetadataWithNewerMinorVersion) {OV_ASSERT_NO_THROW(meta.write(stream));std::unique_ptr<MetadataBase> storedMeta;- OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(stream));- storedMeta->is_compatible();+ ASSERT_ANY_THROW(storedMeta = read_metadata_from(stream));stream.seekg(0, std::ios::beg);size_t streamSize = MetadataBase::getFileSize(stream);auto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});stream.read(tensor.data<char>(), tensor.get_byte_size());- OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(tensor));- storedMeta->is_compatible();+ ASSERT_ANY_THROW(storedMeta = read_metadata_from(tensor));}struct MetadataVersionTestFixture : Metadata<CURRENT_METADATA_VERSION>, ::testing::TestWithParam<uint32_t> {@@ -260,14 +230,12 @@ TEST_P(MetadataVersionTestFixture, writeAndReadInvalidMetadataVersion) {OV_ASSERT_NO_THROW(dummyMeta.write(blob));EXPECT_ANY_THROW(read_metadata_from(blob));- ASSERT_FALSE(dummyMeta.is_compatible());blob.seekg(0, std::ios::beg);size_t streamSize = MetadataBase::getFileSize(blob);auto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});blob.read(tensor.data<char>(), tensor.get_byte_size());EXPECT_ANY_THROW(read_metadata_from(tensor));- ASSERT_FALSE(dummyMeta.is_compatible());}const std::vector badMetadataVersions = {@@ -303,15 +271,13 @@ TEST_F(MetadataUnitTests, writeAndReadMetadataWithNewerFieldAtEnd) {stream << temp;std::unique_ptr<MetadataBase> storedMeta;- OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(stream));- ASSERT_FALSE(storedMeta->is_compatible());+ ASSERT_ANY_THROW(storedMeta = read_metadata_from(stream));stream.seekg(0, std::ios::beg);size_t streamSize = MetadataBase::getFileSize(stream);auto tensor = ov::Tensor(ov::element::u8, ov::Shape{streamSize});stream.read(tensor.data<char>(), tensor.get_byte_size());- OV_ASSERT_NO_THROW(storedMeta = read_metadata_from(tensor));- ASSERT_FALSE(storedMeta->is_compatible());+ ASSERT_ANY_THROW(storedMeta = read_metadata_from(tensor));}TEST_F(MetadataUnitTests, writeAndReadMetadataWithNewerFieldAtMiddle) {