qonnx
Frontend and utilities for QONNX
Decision gist · record as of 2026-08-14
Yes, if you work with quantized neural networks and need a common representation for export, analysis, or deployment. The package is actively maintained, has no known vulnerabilities, uses permissive licensing, and integrates with established QAT frameworks and FPGA toolchains. Install friction is low. Not necessary if you only work with standard full-precision ONNX models.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with a pure-Python wheel.
- Active maintenance as of June 2026 with 191 repository stars.
- Depends on 11 runtime packages including numpy, onnx, onnxruntime, and protobuf—all established libraries.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.
last release 2026-02-19 (176 days) · last repo commit 2026-06-10 · 191 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 74,027 downloads/mo, #14,888 on PyPI
Alternatives
Verify before relying
pip install qonnx
from qonnx.core.modelwrapper import ModelWrapper
from qonnx.core.onnx_exec import execute_onnx
import numpy as np
model = ModelWrapper("my-qonnx-model.onnx")
idict = {"in0": np.load("in0.npy"), "in1": np.load("in1.npy")}
odict = execute_onnx(idict)- Minimum Python version requirement (requires_python field is unspecified in metadata)
- Whether all 11 runtime dependencies are strictly required or if some are optional for specific features
What it is and what it does
QONNX is a toolkit for representing and working with quantized neural networks in ONNX format. It introduces custom operators—IntQuant, FloatQuant, BipolarQuant, and Trunc—that enable arbitrary-precision integer and minifloat quantization while remaining compatible with standard ONNX protobuf. Quantized values are stored as standard floats to maintain compatibility.
The package provides utilities for executing QONNX models for functional verification, performing shape inference and constant folding, calculating inference costs in terms of mixed-precision MACs and memory volume, and transforming models between quantization representations. It integrates with quantization-aware training frameworks like Brevitas, QKeras, and HAWQ for export, and supports deployment via FPGA-focused frameworks like FINN and hls4ml.
Use it for
- Export quantized models from Brevitas or QKeras and verify their behavior by executing them with QONNX utilities
- Analyze inference cost of a quantized model in terms of bit operations, memory footprint, and per-layer MAC counts
- Convert quantized models from QONNX representation to QCDQ-style quantization for different deployment targets
- Develop custom quantization transformations and executable operators using QONNX's Python infrastructure
- Prepare quantized neural networks for FPGA deployment via FINN or hls4ml by using QONNX as an intermediate representation
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with quantized neural networks and need a common representation for export, analysis, or deployment.
The package is actively maintained, has no known vulnerabilities, uses permissive licensing, and integrates with established QAT frameworks and FPGA toolchains. Install friction is low. Not necessary if you only work with standard full-precision ONNX models.
Install
qonnx on PyPI
Before you install
Low friction installation with a pure-Python wheel. Active maintenance as of June 2026 with 191 repository stars. Depends on 11 runtime packages including numpy, onnx, onnxruntime, and protobuf—all established libraries.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.
Quickstart
pip install qonnx
from qonnx.core.modelwrapper import ModelWrapper
from qonnx.core.onnx_exec import execute_onnx
import numpy as np
model = ModelWrapper("my-qonnx-model.onnx")
idict = {"in0": np.load("in0.npy"), "in1": np.load("in1.npy")}
odict = execute_onnx(idict)
Verify before relying
- Minimum Python version requirement (requires_python field is unspecified in metadata)
- Whether all 11 runtime dependencies are strictly required or if some are optional for specific features
Package facts
| License | Apache-2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 11 packagesimportlib-metadataattrsclizeprotobufbitstringnumpyonnxonnxruntimeonnxscriptsigtoolstoposort |
| Maintenance | Actively maintained 176 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,027 / month, #14,888 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaProgramming Language :: Python |
Evidence: qonnx-1.0.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “quantized neural networks ONNX”
- qonnxQONNX provides Python utilities to work with quantized neural…
- onnxruntime-gpuExecutes ONNX machine learning models on GPU hardware, providing…
- snc4onnxMerges multiple ONNX neural network models into a single combined…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also onnx-tool · optimum-quanto · nncf · nvidia-modelopt · diffq · qwix · onnxsim · onnxruntime_extensions · model-compression-toolkit · onnxoptimizer