onnx/onnx

Pythononnx.ai

Open standard for machine learning interoperability

deep-learningdeep-neural-networksneural-networkonnxpytorchtensorflowkerasscikit-learnmlmachine-learningdnnai
Star Growth
Stars
21.4k
Forks
4k
Weekly Growth
+39
Issues
160
10k20k
Jan 2023Mar 2024Jun 2025Sep 2026
ArtifactsPyPI
README

PyPI - Version CI CII Best Practices OpenSSF Scorecard SLSA 2 REUSE compliant Ruff abi3 compatible

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 in ROADMAP.md.

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

Python ABI3 Compatibility

This package provides abi3-compatible wheels, allowing a single binary wheel to work across multiple Python versions (from 3.12 onwards).

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 Build Support

ONNX build and release workflows set SOURCE_DATE_EPOCH to the source commit timestamp. This removes timestamp-dependent variation from supported build steps and makes independent build comparison easier.

SOURCE_DATE_EPOCH alone does not guarantee byte-for-byte identical artifacts across different environments. A reproducibility check must also use the same source revision, dependency versions, toolchain, target platform, and build configuration, and then compare the resulting artifacts.

Why this matters

A fixed build timestamp removes one known source of nondeterminism. When independent builds use the same controlled inputs, their artifacts can be compared byte for byte, with cryptographic digests providing a practical shortcut. A byte-for-byte match demonstrates identical outputs, while a mismatch identifies a difference that needs investigation. This comparison complements release provenance attestations; it does not replace them.

Release artifacts are available from PyPI.

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

Related repositories
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

C++Apache License 2.0tensorflowmachine-learning
tensorflow.org
199.3k76.3k
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

PythonPyPIApache License 2.0nlpnatural-language-processing
huggingface.co/transformers
165.1k34.5k
AUTOMATIC1111/stable-diffusion-webui

Stable Diffusion web UI

PythonPyPIGNU Affero General Public License v3.0deep-learningdiffusion
164.9k30.5k
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

Jupyter NotebookOthergptlarge-language-models
amzn.to/4fqvn0D
104.7k16k
pytorch/pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

PythonPyPIOtherneural-networkautograd
pytorch.org
102.9k29.2k
opencv/opencv

Open Source Computer Vision Library

C++Apache License 2.0opencvc-plus-plus
opencv.org
90.8k57k
Developer-Y/cs-video-courses

List of Computer Science courses with video lectures.

computer-sciencealgorithms
83.5k11.5k
d2l-ai/d2l-zh

《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。

PythonPyPItutorialApache License 2.0deep-learningbook
zh.d2l.ai
80.5k12.4k
dair-ai/Prompt-Engineering-Guide

🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.

MDXMIT Licensedeep-learningprompt-engineering
promptingguide.ai
78.2k8.6k
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

Jupyter NotebooktutorialMIT Licensedeep-learningartificial-intelligence
68.3k13.2k
labmlai/annotated_deep_learning_paper_implementations

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠

PythonPyPIMIT Licensedeep-learningdeep-learning-tutorial
nn.labml.ai
67.4k6.8k
keras-team/keras

Deep Learning for humans

PythonPyPIApache License 2.0deep-learningtensorflow
keras.io
64.3k19.8k