onnx
v1.19.0
published 2 days ago
19,503 stars
3,785 forks
436 watchers
Apache License 2.0
public
0 assets
Maintained byDaisuke Nishimatsu
v1.19.0
August 26, 2025
[expand for release notes]

PyPI - Version CI CII Best Practices OpenSSF Scorecard REUSE compliant Ruff Black

Open Neural Network Exchange (ONNX) is an open ecosystem that empowers AI developers to choose the right tools as their project evolves. ONNX provides an open source format for AI models, both deep learning and traditional ML. It defines an extensible computation graph model, as well as definitions of built-in operators and standard data types. Currently we focus on the capabilities needed for inferencing (scoring).

ONNX is widely supported and can be found in many frameworks, tools, and hardware. Enabling interoperability between different frameworks and streamlining the path from research to production helps increase the speed of innovation in the AI community. We invite the community to join us and further evolve ONNX.

Use ONNX

Learn about the ONNX spec

Programming utilities for working with ONNX Graphs

Contribute

ONNX is a community project and the open governance model is described here. We encourage you to join the effort and contribute feedback, ideas, and code. You can participate in the Special Interest Groups and Working Groups to shape the future of ONNX.

Check out our contribution guide to get started.

If you think some operator should be added to ONNX specification, please read this document.

Community meetings

The schedules of the regular meetings of the Steering Committee, the working groups and the SIGs can be found here

Community Meetups are held at least once a year. Content from previous community meetups are at:

Discuss

We encourage you to open Issues, or use Slack (If you have not joined yet, please use this link to join the group) for more real-time discussion.

Follow Us

Stay up to date with the latest ONNX news. [Facebook] [Twitter/X]

Roadmap

A roadmap process takes place every year. More details can be found here

Installation

ONNX released packages are published in PyPi.

pip install onnx # or pip install onnx[reference] for optional reference implementation dependencies

ONNX weekly packages are published in PyPI to enable experimentation and early testing.

Detailed install instructions, including Common Build Options and Common Errors can be found here

Testing

ONNX uses pytest as test driver. In order to run tests, you will first need to install pytest:

pip install pytest

After installing pytest, use the following command to run tests.

pytest

Development

Check out the contributor guide for instructions.

Reproducible Builds (Linux)

This project provides reproducible builds for Linux.

A reproducible build means that the same source code will always produce identical binary outputs, no matter who builds it or where it is built.

To achieve this, we use the SOURCE_DATE_EPOCH standard. This ensures that build timestamps and other time-dependent information are fixed, making the output bit-for-bit identical across different environments.

Why this matters

  • Transparency: Anyone can verify that the distributed binaries were created from the published source code.
  • Security: Prevents tampering or hidden changes in the build process.
  • Trust: Users can be confident that the binaries they download are exactly what the maintainers intended.

If you prefer, you can use the prebuilt reproducible binaries instead of building from source yourself.

License

Apache License v2.0

Trademark

Checkout https://trademarks.justia.com for the trademark.

General rules of the Linux Foundation on Trademark usage

Code of Conduct

ONNX Open Source Code of Conduct