Skip to content
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

Unsupported model IR version: 10, max supported IR version: 9 #20559

Closed
lix19937 opened this issue May 4, 2024 · 3 comments
Closed

Unsupported model IR version: 10, max supported IR version: 9 #20559

lix19937 opened this issue May 4, 2024 · 3 comments

Comments

@lix19937
Copy link

lix19937 commented May 4, 2024

Describe the issue

sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from positional_encoding_poly.onnx failed:/onnxruntime_src/onnxruntime/core/graph/model.cc:179 onnxruntime::Model::Model(onnx::ModelProto&&, const onnxruntime::PathString&, const onnxruntime::IOnnxRuntimeOpSchemaRegistryList*, const onnxruntime::logging::Logger&, const onnxruntime::ModelOptions&) Unsupported model IR version: 10, max supported IR version: 9

To reproduce

onnx 1.16.0
onnx-graphsurgeon 0.3.21
onnx-simplifier 0.4.36
onnxruntime 1.17.1

Urgency

No response

Platform

Linux

OS Version

ubuntu20.04

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.16.0

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

@lix19937
Copy link
Author

lix19937 commented May 4, 2024

@snnn snnn closed this as completed May 9, 2024
@lix19937
Copy link
Author

downgrade the version of onnx to v1.15.0

@elias-Mimetrik
Copy link

elias-Mimetrik commented May 23, 2024

downgrade the version of onnx to v1.15.0

@lix19937 Doing this does not really solve it. Rather making sure these packages are installed:

pip install onnx==1.16.0
pip install onnx-graphsurgeon==0.5.2
pip install onnxruntime==1.17.3
pip install onnxruntime-gpu==1.17.1
pip install onnxscript==0.1.0.dev20240520

This solves it.

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

No branches or pull requests

3 participants