Skip to content

Backmerging with msft commits #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jul 23, 2025
Merged

Backmerging with msft commits #757

merged 21 commits into from
Jul 23, 2025

Conversation

jatinwadhwa921
Copy link

Backmerging with msft commits

fs-eire and others added 21 commits July 21, 2025 09:49
### Description

optimize search for nodejs in CMake.

### Motivation and Context

The default behavior of CMake's `find_program()` is to search `/bin/`
folder before `$PATH`. This may cause a very old Node.js to be used.
…icrosoft#25407)

### Description
The `QnnEpFactory` implementation currently initializes the underlying
provider by passing the `backend_type` configuration as `htp`, causing
the provider to find the appropriate backend-library, and load it
relative to the OnnxRuntime library. But if EP's are distributed
separately from the OnnxRuntime library - a major benefit of the EP ABI
- then the backend-library may-well not be relative to the OnnxRuntime.
Having the `QnnEpFactory` implementation look for its associated runtime
relative to _itself_ would allow the implementation to bring its own
runtime - and that's what this PR enables.

If the `QnnEpFactory` implementation is co-located with the OnnxRuntime
library, then this is consistent with the existing behavior, but an
`QnnEpFactory` implementation that is shipped 'out-of-band' will use a
backend-relative to itself.

WinML has been using a version of this fix, and this PR is 'upstreaming'
the change.

### Motivation and Context
To support out-of-band distribution of EP's - enabled by the EP ABI work
- then EP's should accommodate finding dependencies relative to the EP
library, and not the OnnxRuntime library.

---------

Co-authored-by: George Wu <[email protected]>
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.3 to 0.12.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/releases">ruff's
releases</a>.</em></p>
<blockquote>
<h2>0.12.4</h2>
<h2>Release Notes</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-type-checking</code>, <code>pyupgrade</code>,
<code>ruff</code>] Add <code>from __future__ import annotations</code>
when it would allow new fixes (<code>TC001</code>, <code>TC002</code>,
<code>TC003</code>, <code>UP037</code>, <code>RUF013</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19100">#19100</a>)</li>
<li>[<code>flake8-use-pathlib</code>] Add autofix for
<code>PTH109</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19245">#19245</a>)</li>
<li>[<code>pylint</code>] Detect indirect <code>pathlib.Path</code>
usages for <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19304">#19304</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-bugbear</code>] Fix <code>B017</code> false negatives
for keyword exception arguments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19217">#19217</a>)</li>
<li>[<code>flake8-use-pathlib</code>] Fix false negative on direct
<code>Path()</code> instantiation (<code>PTH210</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19388">#19388</a>)</li>
<li>[<code>flake8-django</code>] Fix <code>DJ008</code> false positive
for abstract models with type-annotated <code>abstract</code> field (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19221">#19221</a>)</li>
<li>[<code>isort</code>] Fix <code>I002</code> import insertion after
docstring with multiple string statements (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19222">#19222</a>)</li>
<li>[<code>isort</code>] Treat form feed as valid whitespace before a
semicolon (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19343">#19343</a>)</li>
<li>[<code>pydoclint</code>] Fix <code>SyntaxError</code> from fixes
with line continuations (<code>D201</code>, <code>D202</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19246">#19246</a>)</li>
<li>[<code>refurb</code>] <code>FURB164</code> fix should validate
arguments and should usually be marked unsafe (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19136">#19136</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-use-pathlib</code>] Skip single dots for
<code>invalid-pathlib-with-suffix</code> (<code>PTH210</code>) on
versions &gt;= 3.14 (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19331">#19331</a>)</li>
<li>[<code>pep8_naming</code>] Avoid false positives on standard library
functions with uppercase names (<code>N802</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/18907">#18907</a>)</li>
<li>[<code>pycodestyle</code>] Handle brace escapes for t-strings in
logical lines (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19358">#19358</a>)</li>
<li>[<code>pylint</code>] Extend invalid string character rules to
include t-strings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19355">#19355</a>)</li>
<li>[<code>ruff</code>] Allow <code>strict</code> kwarg when checking
for <code>starmap-zip</code> (<code>RUF058</code>) in Python 3.14+ (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19333">#19333</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>[<code>flake8-type-checking</code>] Make <code>TC010</code> docs
example more realistic (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19356">#19356</a>)</li>
<li>Make more documentation examples error out-of-the-box (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19288">#19288</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19272">#19272</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19291">#19291</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19296">#19296</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19292">#19292</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19295">#19295</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19297">#19297</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19309">#19309</a>)</li>
</ul>
<h2>Contributors</h2>
<ul>
<li><a
href="https://github.com/AlexWaygood"><code>@​AlexWaygood</code></a></li>
<li><a
href="https://github.com/BurntSushi"><code>@​BurntSushi</code></a></li>
<li><a href="https://github.com/Gankra"><code>@​Gankra</code></a></li>
<li><a
href="https://github.com/MatthewMckee4"><code>@​MatthewMckee4</code></a></li>
<li><a
href="https://github.com/MeGaGiGaGon"><code>@​MeGaGiGaGon</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a
href="https://github.com/UnboundVariable"><code>@​UnboundVariable</code></a></li>
<li><a
href="https://github.com/chirizxc"><code>@​chirizxc</code></a></li>
<li><a
href="https://github.com/close2code-palm"><code>@​close2code-palm</code></a></li>
<li><a
href="https://github.com/corneliusroemer"><code>@​corneliusroemer</code></a></li>
<li><a
href="https://github.com/danparizher"><code>@​danparizher</code></a></li>
<li><a
href="https://github.com/dcreager"><code>@​dcreager</code></a></li>
<li><a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a></li>
<li><a href="https://github.com/dylwil3"><code>@​dylwil3</code></a></li>
<li><a
href="https://github.com/github-actions"><code>@​github-actions</code></a></li>
<li><a href="https://github.com/ntBre"><code>@​ntBre</code></a></li>
<li><a
href="https://github.com/oconnor663"><code>@​oconnor663</code></a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's
changelog</a>.</em></p>
<blockquote>
<h2>0.12.4</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-type-checking</code>, <code>pyupgrade</code>,
<code>ruff</code>] Add <code>from __future__ import annotations</code>
when it would allow new fixes (<code>TC001</code>, <code>TC002</code>,
<code>TC003</code>, <code>UP037</code>, <code>RUF013</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19100">#19100</a>)</li>
<li>[<code>flake8-use-pathlib</code>] Add autofix for
<code>PTH109</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19245">#19245</a>)</li>
<li>[<code>pylint</code>] Detect indirect <code>pathlib.Path</code>
usages for <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19304">#19304</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-bugbear</code>] Fix <code>B017</code> false negatives
for keyword exception arguments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19217">#19217</a>)</li>
<li>[<code>flake8-use-pathlib</code>] Fix false negative on direct
<code>Path()</code> instantiation (<code>PTH210</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19388">#19388</a>)</li>
<li>[<code>flake8-django</code>] Fix <code>DJ008</code> false positive
for abstract models with type-annotated <code>abstract</code> field (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19221">#19221</a>)</li>
<li>[<code>isort</code>] Fix <code>I002</code> import insertion after
docstring with multiple string statements (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19222">#19222</a>)</li>
<li>[<code>isort</code>] Treat form feed as valid whitespace before a
semicolon (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19343">#19343</a>)</li>
<li>[<code>pydoclint</code>] Fix <code>SyntaxError</code> from fixes
with line continuations (<code>D201</code>, <code>D202</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19246">#19246</a>)</li>
<li>[<code>refurb</code>] <code>FURB164</code> fix should validate
arguments and should usually be marked unsafe (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19136">#19136</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-use-pathlib</code>] Skip single dots for
<code>invalid-pathlib-with-suffix</code> (<code>PTH210</code>) on
versions &gt;= 3.14 (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19331">#19331</a>)</li>
<li>[<code>pep8_naming</code>] Avoid false positives on standard library
functions with uppercase names (<code>N802</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/18907">#18907</a>)</li>
<li>[<code>pycodestyle</code>] Handle brace escapes for t-strings in
logical lines (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19358">#19358</a>)</li>
<li>[<code>pylint</code>] Extend invalid string character rules to
include t-strings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19355">#19355</a>)</li>
<li>[<code>ruff</code>] Allow <code>strict</code> kwarg when checking
for <code>starmap-zip</code> (<code>RUF058</code>) in Python 3.14+ (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19333">#19333</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>[<code>flake8-type-checking</code>] Make <code>TC010</code> docs
example more realistic (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19356">#19356</a>)</li>
<li>Make more documentation examples error out-of-the-box (<a
href="https://redirect.github.com/astral-sh/ruff/pull/19288">#19288</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19272">#19272</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19291">#19291</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19296">#19296</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19292">#19292</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19295">#19295</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19297">#19297</a>,<a
href="https://redirect.github.com/astral-sh/ruff/pull/19309">#19309</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/ee2759b365448e58503b63636c1cedaa65360bd1"><code>ee2759b</code></a>
Bump 0.12.4 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/19406">#19406</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/35f33d9bf5b9dd1cdf4af96999c0f61b8e900579"><code>35f33d9</code></a>
[ty] publish settings diagnostics (<a
href="https://redirect.github.com/astral-sh/ruff/issues/19335">#19335</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/5d78b3117aecccbf02a43f10b759127149ae6ce3"><code>5d78b31</code></a>
[<code>flake8-use-pathlib</code>] Add autofix for <code>PTH109</code>
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/19245">#19245</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/c2a05b4825a51d9875b88e5b8b05720ceb4b0e51"><code>c2a05b4</code></a>
[ty] Use <code>bitflags</code> for resolved client capabilities (<a
href="https://redirect.github.com/astral-sh/ruff/issues/19393">#19393</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/fae0b5c89e266237d10e5879df80f452fe2d4ad9"><code>fae0b5c</code></a>
[ty] Initial implementation of declaration and definition providers. (<a
href="https://redirect.github.com/astral-sh/ruff/issues/19371">#19371</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/cbe94b094b4d8ab88feea1ec8343e0ff033e8cae"><code>cbe94b0</code></a>
[ty] Support empty function bodies in <code>if TYPE_CHECKING</code>
blocks (<a
href="https://redirect.github.com/astral-sh/ruff/issues/19372">#19372</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/029de784f1ea5ef470cf1471c89e2cbe320f125a"><code>029de78</code></a>
[<code>flake8-use-pathlib</code>] Fix false negative on direct
<code>Path()</code> instantiation (`...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/ff94fe7447a8aff4f408fcac8d7dd1d686c50688"><code>ff94fe7</code></a>
Treat form feed as valid whitespace before a semicolon (<a
href="https://redirect.github.com/astral-sh/ruff/issues/19343">#19343</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b2501b45e06ecdc653ae52565e90dd163aa30f8a"><code>b2501b4</code></a>
[<code>pylint</code>] Detect indirect <code>pathlib.Path</code> usages
for <code>unspecified-encoding</code> (...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/291699b375f694c659fe82bdd68b149bde2494ee"><code>291699b</code></a>
[<code>refurb</code>] <code>FURB164</code> fix should validate arguments
and should usually be mark...</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.12.3...0.12.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.12.3&new-version=0.12.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ft#25458)

### Description 
- Low Power Block Quantization(LPBQ) is widely used to accelerate accuracy sensitive models via QNN(Qualcomm Neural Network) stack.
- LPBQ encoding format is Qualcomm's alternative for BlockQuantization technique.
- The current implementation expects LPBQ encodings packed in a node sequence (DQ -> Q -> DQ)
- This PR folds LPBQ pattern on Weight of Gemm nodes into a Qnn BlockExpansion encoding structure.
 - This PR adds INT4 Quantization support

### Motivation and Context
- This enables acceleration of accuracy sensitive models that require block quantization kind of encodings via QNN EP
- This avoids fallback of nodes consuming block quantized tensors on CPU EP and further improves inference time.
Short term solution for IO binding issue with `update_inplace` method of `OrtValue`.

### Description
With ORT 1.23 (main), there seem to be an issue with IOBind feature with 4k aligned preferred allocator.
Remove the 4k alignment requirement for now for a temp fix.

### Motivation and Context
- Fixes issues with IO Binding for few critical models.
- Will bring back 4k alignment when we have a appropriate fix in.
### Description

Re-enable tests and remove workarounds that were introduced as part of a QNN <= 2.35.0 upgrade but are no longer necessary.

### Motivation and Context
QNN/QAIRT releases about once a month. As ONNX Runtime adopts these new versions, some number of tests are often found to be impacted.
Consequently, tests are skipped and tolerances are loosened. This change reverts as many of those workarounds as possible that were made for QNN upgrades between 2.17 and 2.35, inclusive.
### Description
<!-- Describe your changes. -->

!. implemented the GetVendorId 

### 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. -->
Have EP compatibility as per WinML usage.
### Description
<!-- Describe your changes. -->
This PR proposes two new ABI methods to better support precompiled
models. We introduce the concept of a compatibility information string,
which is a piece of data produced by an EP implementor to describe the
stack that may have been used to compile a model. The
`GetCompiledModelCompatibilityInfo` function on the `OrtEp` interface
creates this string.

ORT will get the compatibility information string when precompiling a
model and will store the output in the model's metadata. When creating
sessions against any precompiled models, ORT will use the
`ValidateCompiledModelCompatibilityInfo` function to confirm that the
model is still EP-compatible. The EP implementor decides how
compatibility is defined for their stack and communicates this via the
possible states in the `OrtCompiledModelCompatibility` enum.

The validation API is stored on the `OrtEpFactory` to allow for cases
where a model may not be present on the device yet (e.g., perhaps an
application is trying to decide on a pre-compiled model to download
based on the state of the system).

### Motivation and Context
The APIs proposed in this PR address two requirements:

1. Apps that have an already pre-compiled model on device need a way to
determine if the pre-compiled app is still valid (given the EPs /
drivers / etc. on the system).
2. Apps may have many different pre-compiled versions of a model stored
on a remote server, and want to figure out which of those models they
should download for the device where they are running.

Co-authored-by: Aditya Rastogi <[email protected]>
### Description
The build error started after ONNXRuntime update abseil (microsoft#25033). 
The EP needs to explicitly add the abseil target to its link
dependencies.


### Motivation and Context
For fix the issue microsoft#25486

Co-authored-by: liumingyue <[email protected]>
…oft#25485)

### Description

Fix runtime error caused by buffer release too early

### Motivation and Context

microsoft#25276 introduces buffer usage optimization, which reduced the peak GPU
memory usage. However, the implementation may cause issue in some
situations because the buffer is released too early. This PR fixes the
issue.
… simple getters. (microsoft#25459)

### Description
<!-- Describe your changes. -->
Update some new API functions to directly return the value if they're
simple getters.

### 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. -->
Simplify API usage.
### Description
Fix an issue from warning as error for QNN EP
Always enable warning as error for QNN EP CIs
### Description
This PR change enables below features -
- This feature adds an OpenVINO Plugin to the OpenVINO Execution
Provider, allowing it to be used as a Provider Bridge. The OpenVINO
Plugin adds `CreateEpFactories` and `ReleaseEpFactory` exports for ABI
bridge interface, that create an `OrtEpFactory` that represents an
`OpenVINOEpPluginFactory` instance. The `OpenVINOEpPluginFactory` class
implements the `GetSupportedDevices` function, to get descriptions of
EP's available for a specific device, and then implements
`OpenVINO_Provider::CreateIExecutionProvider` as a mechanism to create
an `IExecutionProvider`.

- Minor Fixes within legacy code.

---------

Signed-off-by: Jianhui Dai <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: bfilipek <[email protected]>
Co-authored-by: jatinwadhwa921 <[email protected]>
Co-authored-by: n1harika <[email protected]>
Co-authored-by: sfatimar <[email protected]>
Co-authored-by: Jaskaran Singh Nagi <[email protected]>
Co-authored-by: Eric Crawford <[email protected]>
Co-authored-by: Sushanth Rajasankar <[email protected]>
Co-authored-by: Scott McKay <[email protected]>
Co-authored-by: Seungtaek Kim <[email protected]>
Co-authored-by: co63oc <[email protected]>
Co-authored-by: Jambay Kinley <[email protected]>
Co-authored-by: Hector Li <[email protected]>
Co-authored-by: Jian Chen <[email protected]>
Co-authored-by: Yulong Wang <[email protected]>
Co-authored-by: Jiajia Qin <[email protected]>
Co-authored-by: Alessio Soldano <[email protected]>
Co-authored-by: Changming Sun <[email protected]>
Co-authored-by: Ashish Garg <[email protected]>
Co-authored-by: Ashish Garg <[email protected]>
Co-authored-by: Jie Chen <[email protected]>
Co-authored-by: wp <[email protected]>
Co-authored-by: Satya Kumar Jandhyala <[email protected]>
Co-authored-by: Prathik Rao <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tianlei Wu <[email protected]>
Co-authored-by: Jianhui Dai <[email protected]>
Co-authored-by: xhcao <[email protected]>
Co-authored-by: Wanming Lin <[email protected]>
Co-authored-by: Mark Schofield <[email protected]>
Co-authored-by: jiangzhaoming <[email protected]>
Co-authored-by: Yi-Hong Lyu <[email protected]>
Co-authored-by: vraspar <[email protected]>
Co-authored-by: Chi Lo <[email protected]>
Co-authored-by: saurabh <[email protected]>
Co-authored-by: Ranjit Ranjan <[email protected]>
Co-authored-by: Baiju Meswani <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jatinwadhwa921 <[email protected]>
Co-authored-by: Pallavi Gupta <[email protected]>
Co-authored-by: Nikolay Proshunin <[email protected]>
Co-authored-by: Preetha Veeramalai <[email protected]>
Co-authored-by: Javier Martinez <[email protected]>
Co-authored-by: Bartlomiej Filipek <[email protected]>
Co-authored-by: bopeng1234 <[email protected]>
Co-authored-by: MayureshV1 <[email protected]>
Co-authored-by: TejalKhade28 <[email protected]>
Co-authored-by: Vishnudas Thaniel S <[email protected]>
Co-authored-by: Yaru Du <[email protected]>
Co-authored-by: Ryan Metcalfe <[email protected]>
Co-authored-by: Dvoretckii, Mikhail <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Adrian Lizarraga <[email protected]>
Co-authored-by: Fei Chen <[email protected]>
Co-authored-by: qti-yuduo <[email protected]>
Co-authored-by: Akupadhye <[email protected]>
Co-authored-by: Wang Ning <[email protected]>
Co-authored-by: Maximilian Müller <[email protected]>
Co-authored-by: George Wu <[email protected]>
Co-authored-by: quic-calvnguy <[email protected]>
Co-authored-by: Wei-Sheng Chin <[email protected]>
Co-authored-by: quic-hungjuiw <[email protected]>
Co-authored-by: Ian Hunter <[email protected]>
Co-authored-by: kunal-vaishnavi <[email protected]>
Co-authored-by: Jeff Kilpatrick <[email protected]>
Co-authored-by: Jeff Kilpatrick <[email protected]>
Co-authored-by: Nenad Banfic <[email protected]>
Co-authored-by: derdeljan-msft <[email protected]>
Co-authored-by: Ryan Metcalfe <[email protected]>
Add Int4 and UInt4 support for `Cast`.

There were a few QNN pipelines
[failing](https://aiinfra.visualstudio.com/PublicPackages/_build/results?buildId=841810&view=logs&j=9d976e38-31ec-50dd-b1f8-279fbf889fca&t=85ed5ad3-b72a-52c3-abe0-a87b66004fd0&l=1773)
for this PR, which are fixed by this onnx PR [Update input and output
tensors in pb files to match the
model](onnx/onnx#7074). The problem is that
onnxruntime, which uses onnx as a submodule in `cmake/external/onnx`,
points to the latest release of onnx (1.18.0), but in order to have the
pipeline run with my onnx fix, we would need to point to a newer
version.

Since we can't update the onnx submodule to point to a non-release
commit, waiting for a new onnx release might take a long time, and
creating a patch under
[onnxruntime/cmake/patches/onnx](https://github.com/microsoft/onnxruntime/tree/main/cmake/patches/onnx)
with the changes in my onnx PR is tricky because that fix changes some
binary files, this PR skips the tests which are currently failing in the
QNN pipelines.
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.0 to
4.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/form-data/form-data/releases">form-data's
releases</a>.</em></p>
<blockquote>
<h2>v4.0.1</h2>
<h3>Fixes</h3>
<ul>
<li>npmignore temporary build files (<a
href="https://redirect.github.com/form-data/form-data/issues/532">#532</a>)</li>
<li>move util.isArray to Array.isArray (<a
href="https://redirect.github.com/form-data/form-data/issues/564">#564</a>)</li>
</ul>
<h3>Tests</h3>
<ul>
<li>migrate from travis to GHA</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/form-data/form-data/blob/master/CHANGELOG.md">form-data's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/form-data/form-data/compare/v4.0.3...v4.0.4">v4.0.4</a>
- 2025-07-16</h2>
<h3>Commits</h3>
<ul>
<li>[meta] add <code>auto-changelog</code> <a
href="https://github.com/form-data/form-data/commit/811f68282fab0315209d0e2d1c44b6c32ea0d479"><code>811f682</code></a></li>
<li>[Tests] handle predict-v8-randomness failures in node &lt; 17 and
node &gt; 23 <a
href="https://github.com/form-data/form-data/commit/1d11a76434d101f22fdb26b8aef8615f28b98402"><code>1d11a76</code></a></li>
<li>[Fix] Switch to using <code>crypto</code> random for boundary values
<a
href="https://github.com/form-data/form-data/commit/3d1723080e6577a66f17f163ecd345a21d8d0fd0"><code>3d17230</code></a></li>
<li>[Tests] fix linting errors <a
href="https://github.com/form-data/form-data/commit/5e340800b5f8914213e4e0378c084aae71cfd73a"><code>5e34080</code></a></li>
<li>[meta] actually ensure the readme backup isn’t published <a
href="https://github.com/form-data/form-data/commit/316c82ba93fd4985af757b771b9a1f26d3b709ef"><code>316c82b</code></a></li>
<li>[Dev Deps] update <code>@ljharb/eslint-config</code> <a
href="https://github.com/form-data/form-data/commit/58c25d76406a5b0dfdf54045cf252563f2bbda8d"><code>58c25d7</code></a></li>
<li>[meta] fix readme capitalization <a
href="https://github.com/form-data/form-data/commit/2300ca19595b0ee96431e868fe2a40db79e41c61"><code>2300ca1</code></a></li>
</ul>
<h2><a
href="https://github.com/form-data/form-data/compare/v4.0.2...v4.0.3">v4.0.3</a>
- 2025-06-05</h2>
<h3>Fixed</h3>
<ul>
<li>[Fix] <code>append</code>: avoid a crash on nullish values <a
href="https://redirect.github.com/form-data/form-data/issues/577"><code>[#577](https://github.com/form-data/form-data/issues/577)</code></a></li>
</ul>
<h3>Commits</h3>
<ul>
<li>[eslint] use a shared config <a
href="https://github.com/form-data/form-data/commit/426ba9ac440f95d1998dac9a5cd8d738043b048f"><code>426ba9a</code></a></li>
<li>[eslint] fix some spacing issues <a
href="https://github.com/form-data/form-data/commit/20941917f0e9487e68c564ebc3157e23609e2939"><code>2094191</code></a></li>
<li>[Refactor] use <code>hasown</code> <a
href="https://github.com/form-data/form-data/commit/81ab41b46fdf34f5d89d7ff30b513b0925febfaa"><code>81ab41b</code></a></li>
<li>[Fix] validate boundary type in <code>setBoundary()</code> method <a
href="https://github.com/form-data/form-data/commit/8d8e4693093519f7f18e3c597d1e8df8c493de9e"><code>8d8e469</code></a></li>
<li>[Tests] add tests to check the behavior of <code>getBoundary</code>
with non-strings <a
href="https://github.com/form-data/form-data/commit/837b8a1f7562bfb8bda74f3fc538adb7a5858995"><code>837b8a1</code></a></li>
<li>[Dev Deps] remove unused deps <a
href="https://github.com/form-data/form-data/commit/870e4e665935e701bf983a051244ab928e62d58e"><code>870e4e6</code></a></li>
<li>[meta] remove local commit hooks <a
href="https://github.com/form-data/form-data/commit/e6e83ccb545a5619ed6cd04f31d5c2f655eb633e"><code>e6e83cc</code></a></li>
<li>[Dev Deps] update <code>eslint</code> <a
href="https://github.com/form-data/form-data/commit/4066fd6f65992b62fa324a6474a9292a4f88c916"><code>4066fd6</code></a></li>
<li>[meta] fix scripts to use prepublishOnly <a
href="https://github.com/form-data/form-data/commit/c4bbb13c0ef669916657bc129341301b1d331d75"><code>c4bbb13</code></a></li>
</ul>
<h2><a
href="https://github.com/form-data/form-data/compare/v4.0.1...v4.0.2">v4.0.2</a>
- 2025-02-14</h2>
<h3>Merged</h3>
<ul>
<li>[Fix] set <code>Symbol.toStringTag</code> when available <a
href="https://redirect.github.com/form-data/form-data/pull/573"><code>[#573](https://github.com/form-data/form-data/issues/573)</code></a></li>
<li>[Fix] set <code>Symbol.toStringTag</code> when available <a
href="https://redirect.github.com/form-data/form-data/pull/573"><code>[#573](https://github.com/form-data/form-data/issues/573)</code></a></li>
<li>fix (npmignore): ignore temporary build files <a
href="https://redirect.github.com/form-data/form-data/pull/532"><code>[#532](https://github.com/form-data/form-data/issues/532)</code></a></li>
<li>fix (npmignore): ignore temporary build files <a
href="https://redirect.github.com/form-data/form-data/pull/532"><code>[#532](https://github.com/form-data/form-data/issues/532)</code></a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>[Fix] set <code>Symbol.toStringTag</code> when available (<a
href="https://redirect.github.com/form-data/form-data/issues/573">#573</a>)
<a
href="https://redirect.github.com/form-data/form-data/issues/396"><code>[#396](https://github.com/form-data/form-data/issues/396)</code></a></li>
<li>[Fix] set <code>Symbol.toStringTag</code> when available (<a
href="https://redirect.github.com/form-data/form-data/issues/573">#573</a>)
<a
href="https://redirect.github.com/form-data/form-data/issues/396"><code>[#396](https://github.com/form-data/form-data/issues/396)</code></a></li>
<li>[Fix] set <code>Symbol.toStringTag</code> when available <a
href="https://redirect.github.com/form-data/form-data/issues/396"><code>[#396](https://github.com/form-data/form-data/issues/396)</code></a></li>
</ul>
<h3>Commits</h3>
<ul>
<li>Merge tags v2.5.3 and v3.0.3 <a
href="https://github.com/form-data/form-data/commit/92613b9208556eb4ebc482fdf599fae111626fb6"><code>92613b9</code></a></li>
<li>[Tests] migrate from travis to GHA <a
href="https://github.com/form-data/form-data/commit/806eda77740e6e3c67c7815afb216f2e1f187ba5"><code>806eda7</code></a></li>
<li>[Tests] migrate from travis to GHA <a
href="https://github.com/form-data/form-data/commit/8fdb3bc6b5d001f8909a9fca391d1d1d97ef1d79"><code>8fdb3bc</code></a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/form-data/form-data/commit/41996f5ac73a867046d48512cab62e64fc846dad"><code>41996f5</code></a>
v4.0.4</li>
<li><a
href="https://github.com/form-data/form-data/commit/316c82ba93fd4985af757b771b9a1f26d3b709ef"><code>316c82b</code></a>
[meta] actually ensure the readme backup isn’t published</li>
<li><a
href="https://github.com/form-data/form-data/commit/2300ca19595b0ee96431e868fe2a40db79e41c61"><code>2300ca1</code></a>
[meta] fix readme capitalization</li>
<li><a
href="https://github.com/form-data/form-data/commit/811f68282fab0315209d0e2d1c44b6c32ea0d479"><code>811f682</code></a>
[meta] add <code>auto-changelog</code></li>
<li><a
href="https://github.com/form-data/form-data/commit/5e340800b5f8914213e4e0378c084aae71cfd73a"><code>5e34080</code></a>
[Tests] fix linting errors</li>
<li><a
href="https://github.com/form-data/form-data/commit/1d11a76434d101f22fdb26b8aef8615f28b98402"><code>1d11a76</code></a>
[Tests] handle predict-v8-randomness failures in node &lt; 17 and node
&gt; 23</li>
<li><a
href="https://github.com/form-data/form-data/commit/58c25d76406a5b0dfdf54045cf252563f2bbda8d"><code>58c25d7</code></a>
[Dev Deps] update <code>@ljharb/eslint-config</code></li>
<li><a
href="https://github.com/form-data/form-data/commit/3d1723080e6577a66f17f163ecd345a21d8d0fd0"><code>3d17230</code></a>
[Fix] Switch to using <code>crypto</code> random for boundary
values</li>
<li><a
href="https://github.com/form-data/form-data/commit/d8d67dc8ac79285154edf7d3f57dbab593b9a146"><code>d8d67dc</code></a>
v4.0.3</li>
<li><a
href="https://github.com/form-data/form-data/commit/e6e83ccb545a5619ed6cd04f31d5c2f655eb633e"><code>e6e83cc</code></a>
[meta] remove local commit hooks</li>
<li>Additional commits viewable in <a
href="https://github.com/form-data/form-data/compare/v4.0.0...v4.0.4">compare
view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a
href="https://www.npmjs.com/~ljharb">ljharb</a>, a new releaser for
form-data since your current version.</p>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=form-data&package-manager=npm_and_yarn&previous-version=4.0.0&new-version=4.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
Dependabot will merge this PR once CI passes on it, as requested by
@fs-eire.

[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/onnxruntime/network/alerts).

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
### Description
<!-- Describe your changes. -->
Add entry for MinimumOSVersion.

### 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. -->
Make the frameworks we build more correct.
…osoft#25497)

### Description
This change corrects the signatures on the new precompiled model
compatibility APIs to use the recommended macros.

### 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 fix addresses PR feedback from microsoft#25454 .

---------

Co-authored-by: Aditya Rastogi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
### Description

Make protobuf weights refer to OrtValues on load.
Create OrtValues for initializers that are loaded from ORT format for
uniformity.
Create OrtValues for ORT format initializers.
Adjust exporting Graph::ToGraphProto() so it does not export in memory
references in external data.
Make CoreML process external data including in memory references so it
can copy it.

### Motivation and Context
Follow up for microsoft#23979
@jatinwadhwa921 jatinwadhwa921 requested a review from ankitm3k July 23, 2025 09:06
@ankitm3k ankitm3k merged commit e1b2c28 into ovep-develop Jul 23, 2025
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.