Skip to content

Setup: compatibility with python 3.13#235

Merged
jmitrevs merged 3 commits intofastmachinelearning:mainfrom
Giuseppe5:giuseppe/unpin_onnx
Feb 11, 2026
Merged

Setup: compatibility with python 3.13#235
jmitrevs merged 3 commits intofastmachinelearning:mainfrom
Giuseppe5:giuseppe/unpin_onnx

Conversation

@Giuseppe5
Copy link
Contributor

@Giuseppe5 Giuseppe5 commented Feb 10, 2026

Attempt to fix #234

The most recent versions of ONNX are needed for compatibility with torch 1.13, so this PR removes the maximum version requirement

Current status is as follow:

  • ONNX>1.17 is required for compatibility with python 3.13
  • onnxruntime>=1.24 requires python>=3.11
  • The latest ONNX release (1.20) requires latest onnxruntime to run
  • The latest ONNX release is not compatible with older versions of onnxruntime (like 1.23.2)

Combining all these requirements, it means that we need two different versions of ONNX, whether we are using python 3.11 or not.

Above python 3.11, we can install latest version of everything.
Below python 3.11, we need a slightly older version of ONNX (1.17) to maintain compatibility with a slightly older version of onnxruntime (1.23.2)
We do not need a conditional requirement for onnxruntime when using python<3.11 because it will automatically install the latest available version (1.23.2) and ignore the most recent ones that are not compatible.

@jmitrevs
Copy link
Collaborator

jmitrevs commented Feb 10, 2026

Note that #220 mentions why an upper limit was used in the past. Are there still such issues? Personally I have always been worried about upper limits.

@jmitrevs jmitrevs added this to the v1.0.0 milestone Feb 10, 2026
@nickfraser
Copy link
Contributor

Related issue: Xilinx/brevitas#1450

@Giuseppe5 Giuseppe5 changed the title Setup: remove max version of ONNX Setup: compatibility with python 3.13 Feb 11, 2026
@jmitrevs jmitrevs merged commit f5c9819 into fastmachinelearning:main Feb 11, 2026
2 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.

Python 3.13 compatibility

3 participants