onnx-tool
A tool for parsing, editing, optimizing, and profiling ONNX models.
Decision gist · record as of 2026-08-14
Yes. The package fills a genuine need for ONNX model analysis and optimization with low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is most valuable for developers working with LLMs, diffusion models, or deploying neural networks to resource-constrained environments where profiling and compression are critical.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with three straightforward runtime dependencies (onnx, numpy, tabulate).
- Active maintenance with recent commits and steady development since 2022.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal legal friction.
last release 2026-04-19 (117 days) · last repo commit 2026-06-08 · 491 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 110,862 downloads/mo, #12,439 on PyPI
Alternatives
Verify before relying
pip install onnx-tool
from onnx_tool import Model
model = Model('model.onnx')
graph = model.graph
node = graph.nodemap['Conv_0']
model.save_model('modified.onnx')- Whether shape inference handles all dynamic dimension scenarios in production models
- Performance characteristics of the compute graph engine on very large models
- Compatibility with ONNX opset versions beyond those explicitly documented
What it is and what it does
onnx-tool is a comprehensive toolkit for working with ONNX neural network models. It provides parsing and editing capabilities through an intuitive API, allowing you to load ONNX files, access computation graphs, modify operators and tensor data, and save changes. The package excels at analyzing model structure and performance characteristics through rapid shape inference and detailed profiling that computes MACs, parameter counts, and memory footprint with sparsity awareness.
Beyond analysis, the toolkit offers optimization and transformation features including constant folding, operator fusion, weight quantization (FP16, INT8/INT4 with multiple schemes), and activation memory compression. It includes specialized support for large language models with KV cache analysis, diffusion models, and computer vision architectures. The compute graph engine removes shape-calculation overhead for efficient inference integration, making it useful for both model development and deployment preparation.
Use it for
- Profile LLM architectures (BERT, GPT, LLaMa, Qwen) to estimate MACs, parameters, and KV cache requirements before deployment
- Optimize Stable Diffusion and other diffusion models by analyzing and compressing activation memory across encoder, decoder, and UNet components
- Prepare quantized models for edge deployment by analyzing weight compression ratios and memory footprint reduction across INT8/INT4 schemes
- Integrate ONNX models into custom inference engines by extracting compute graphs with minimal shape-calculation overhead
- Validate model transformations through shape regression testing after applying constant folding or operator fusion optimizations
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package fills a genuine need for ONNX model analysis and optimization with low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is most valuable for developers working with LLMs, diffusion models, or deploying neural networks to resource-constrained environments where profiling and compression are critical.
Install
onnx-tool on PyPI
Before you install
Low friction install with three straightforward runtime dependencies (onnx, numpy, tabulate). Active maintenance with recent commits and steady development since 2022.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal legal friction.
Quickstart
pip install onnx-tool
from onnx_tool import Model
model = Model('model.onnx')
graph = model.graph
node = graph.nodemap['Conv_0']
model.save_model('modified.onnx')
Verify before relying
- Whether shape inference handles all dynamic dimension scenarios in production models
- Performance characteristics of the compute graph engine on very large models
- Compatibility with ONNX opset versions beyond those explicitly documented
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesonnxnumpytabulate |
| Maintenance | Actively maintained 117 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,862 / month, #12,439 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3 |
Evidence: onnx_tool-1.0.1-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 › “onnx model analysis and optimization”
- onnx-toolParse, analyze, optimize, and profile ONNX neural network models with…
- onnxoptimizerApplies graph-level optimizations to ONNX models, including a library…
- spo4onnxApplies specialized optimization techniques to ONNX neural network…
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 onnxoptimizer · qonnx · nncf · onnxsim · nvidia-modelopt · optimum-onnx · polygraphy · onnx-weekly · tensorflow-model-optimization · ssi4onnx