Skip to content

Move model compatibility checks ahead of session initialization#27037

Merged
adrastogi merged 1 commit intomainfrom
adrastogi/move-compat-check
Jan 21, 2026
Merged

Move model compatibility checks ahead of session initialization#27037
adrastogi merged 1 commit intomainfrom
adrastogi/move-compat-check

Conversation

@adrastogi
Copy link
Contributor

Description

The current infrastructure for validating compatibility of a precompiled model does the check after session initialization occurs, which turns out to be quite costly. The check should ideally happen beforehand, to short-circuit those expensive operations.

Motivation and Context

This change will make it more tractable for applications to rely on the existing session machinery to check compatibility of any of their models.

@adrastogi adrastogi requested review from adrianlizarraga and skottmckay and removed request for adrianlizarraga January 16, 2026 18:10
@adrastogi adrastogi marked this pull request as ready for review January 21, 2026 00:36
Copy link
Contributor

@skottmckay skottmckay left a comment

Choose a reason for hiding this comment

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

:shipit:

@adrastogi adrastogi merged commit 080d968 into main Jan 21, 2026
104 of 106 checks passed
@adrastogi adrastogi deleted the adrastogi/move-compat-check branch January 21, 2026 23:50
tianleiwu pushed a commit that referenced this pull request Jan 27, 2026
### Description
<!-- Describe your changes. -->
The current infrastructure for validating compatibility of a precompiled
model does the check after session initialization occurs, which turns
out to be quite costly. The check should ideally happen beforehand, to
short-circuit those expensive operations.


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This change will make it more tractable for applications to rely on the
existing session machinery to check compatibility of any of their
models.

Co-authored-by: Aditya Rastogi <adityar@ntdev.microsoft.com>
tianleiwu added a commit that referenced this pull request Jan 27, 2026
| Commit | Commit Title | Author |
| :--- | :--- | :--- |
| `11dde2d9e` | [NV TensorRT RTX EP] Fix external tensorrt_plugins load
path (#26814) | keshavv27 |
| `080d96818` | Move model compatibility checks ahead of session
initialization (#27037) | adrastogi |
| `ec4f6bfa1` | [QNN EP] Fix error messages being logged as VERBOSE
instead of ERROR (#24931) | Copilot |
| `0432e7125` | perftest: support plugin eps for compile_ep_context
(#27121) | Jaskaran Singh Nagi |
| `727db0d3d` | Engine compatibility validity API implementation
(#26774) | umangb-09 |
| `27013522f` | Deprecate transformers model examples (#27156) | Jambay
Kinley |
| `f83d4d06e` | [QNN-EP] Implement file mapped weights feature (#26952)
| quic-calvnguy |

---------

Co-authored-by: keshavv27 <165012837+keshavv27@users.noreply.github.com>
Co-authored-by: adrastogi <aditya.rastogi@microsoft.com>
Co-authored-by: Aditya Rastogi <adityar@ntdev.microsoft.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vraspar <51386888+vraspar@users.noreply.github.com>
Co-authored-by: yuslepukhin <11303988+yuslepukhin@users.noreply.github.com>
Co-authored-by: Dmitri Smirnov <yuslepukhin@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dmitri Smirnov <dmitrism@microsoft.com>
Co-authored-by: Jaskaran Singh Nagi <jaskaran.singh.nagi@intel.com>
Co-authored-by: umangb-09 <umangb@nvidia.com>
Co-authored-by: Jambay Kinley <jambaykinley@microsoft.com>
Co-authored-by: quic-calvnguy <quic_calvnguy@quicinc.com>
Co-authored-by: quic_calvnguy <quic_calvnguy@quic_inc.com>
@tianleiwu tianleiwu added cherry-picked Cherry-picked for a cherrypicks branch and removed release:1.24.0 labels Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked Cherry-picked for a cherrypicks branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants