Skip to content

Conversation

@ankitm3k
Copy link

@ankitm3k ankitm3k commented Oct 27, 2025

Description

This PR removes the OV SDK Version Check for EpCtx flow for pre-compiled blobs import on NPU.
Note: CPU/ GPU still have the SDK version check.

https://jira.devtools.intel.com/browse/CVS-174235

@preetha-intel
Copy link

@ankitm3k As per the report in this ticket https://jira.devtools.intel.com/browse/CVS-174362 the error message from OV plugin for CPU and GPU is not specific to version mismatch . Is it okay to just remove the existing check ?

I think we should come up with a custom throw based on OV plugins error. Something like " recompile model with appropriate OV version "

@ankitm3k
Copy link
Author

@ankitm3k As per the report in this ticket https://jira.devtools.intel.com/browse/CVS-174362 the error message from OV plugin for CPU and GPU is not specific to version mismatch . Is it okay to just remove the existing check ?

I think we should come up with a custom throw based on OV plugins error. Something like " recompile model with appropriate OV version "

The requirement for this activity to make the import flow OV version agnostic for the EPCtx blobs which is fulfilled in this PR.

@ankitm3k ankitm3k force-pushed the ankit/epctx_sdk_version_check_removed branch from 8325a2f to 40544c5 Compare October 28, 2025 17:23
@ankitm3k ankitm3k force-pushed the ankit/epctx_sdk_version_check_removed branch 3 times, most recently from 0382e7a to 6de292f Compare November 11, 2025 14:23
@MayureshV1 MayureshV1 marked this pull request as draft November 15, 2025 06:58
@ankitm3k ankitm3k force-pushed the ankit/epctx_sdk_version_check_removed branch from 6de292f to 67d4087 Compare November 18, 2025 11:19
// If the model stream is not an XML (i.e. precompiled blob), the OpenVINO SDK version that it was
// exported with must match the version that is currently running.
native_blob_path = std::move(blob_filepath);
ORT_ENFORCE((attrs.count(EP_SDK_VER) == 1) && (attrs.at(EP_SDK_VER).s() == openvino_sdk_version_),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we specifically remove this check for NPU device only for now?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed as requested

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ankitm3k . Functionally the change looks good and meets the requirement.

Unfortunately, the side effect of this device specific behavior is to pass the session context to ctx_helper. Is there any way to avoid. Should we just pass device_type?
@javier-intel , @ericcraw, @preetha-intel .. any suggestions?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have amended the change to accept std::string device_type to keep things simple & clean

@ankitm3k ankitm3k force-pushed the ankit/epctx_sdk_version_check_removed branch from b98ffde to 20e3420 Compare January 8, 2026 06:38
@ankitm3k ankitm3k marked this pull request as ready for review January 8, 2026 06:38
@ankitm3k
Copy link
Author

ankitm3k commented Jan 8, 2026

@vthaniel please validate this on priority as requested by @MayureshV1

@MayureshV1 MayureshV1 changed the title CVS-174235 : OV SDK Version Check Removed for EpCtx Flow CVS-174235 : OV SDK Version Check Removed for EpCtx Consumption Flow on NPU Jan 8, 2026
Copy link

@MayureshV1 MayureshV1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ankit. The changes look good now.

@ankitm3k ankitm3k force-pushed the ankit/epctx_sdk_version_check_removed branch from 0d00c57 to e51c5e0 Compare January 8, 2026 15:01
@ankitm3k ankitm3k merged commit cbec774 into ovep-develop Jan 8, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants