Skip to content

Build models expecting the operator support of onnxruntime >=1.26.0 - #235

Open
Christian Bourjau (cbourjau) wants to merge 6 commits into
mainfrom
target-onnxruntime-1_26_0
Open

Christian Bourjau (cbourjau) wants to merge 6 commits into
mainfrom
target-onnxruntime-1_26_0

Conversation

@cbourjau

@cbourjau Christian Bourjau (cbourjau) commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

We deploy many workarounds for bugs and missing kernel support in onnxruntime. Currently, we build models targeting onnxruntime >= 1.20.1. We couldn't update this for a long time due to various regressions upstream. However, onnxruntime >=1.26.0 is finally in a good enough shape that we can rely on it. Note that upstream is already on 1.29.2, but there are no fixes in those newer versions relevant to these workarounds, so we can target 1.26.0 without missing anything for now.

The possibly most impactful removed workaround is for a bug in basic arithmetic operations on zero-sized arrays, which could lead to segfaults in onnxruntime. We mitigated that using an unsqueeze-op-squeeze pattern, which significantly increased graph size and even runtime in some circumstances.

Note that this long-overdue update is not an indication of how conservative we want to be about this in the future. Ideally, we will update the minimally expected onnxruntime version within about a month after a new relevant onnxruntime version becomes available on conda-forge.

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.

1 participant