# onnxsim

Simplify your onnx model

Canonical page: https://www.reposhelf.co.uk/projects/github/onnxsim/onnxsim.html

- Project ID: onnxsim/onnxsim
- Source: GitHub
- Original project: https://github.com/onnxsim/onnxsim
- Description attribution: project author metadata
- Categories: Education
- Technologies: Python
- Licence: Apache-2.0
- Repository availability checked: 2026-11-04T21:16:11.914Z
- Demo page loaded: 2026-11-12T13:22:32.934Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> ONNX is great, but sometimes too complicated.

- Constant folding. Evaluates the constant parts of the graph and replaces
- redundant operators with their computed outputs. By default initializers count as constants; pass --initializers-as-non-constants \(Python: initializersasconstants=False\) to keep weights as tunable tensors so nodes…
- Graph optimization passes. Runs onnx-optimizer's fusions and eliminations
- \(e.g. fuse BatchNorm into Conv\). List them with onnxsim --list-default-optimizers; skip all or some with --skip-optimization \[pass ...\]. A pass not in the default set \(typically a graph-shape rewrite rather than a pure…
- Shape inference. Propagates tensor shapes through the graph — including

## Author-documented requirements and audience

> ONNX is great, but sometimes too complicated.



- Account — Not required: The recommended INT8 recipe is AMD Quark's XINT8 config \(pip install amd-quark, no AMD login needed\), then onnxsim's Vitis AI legalizer, then the EP with target=X2 \(the backend for Strix/KrackanPoint; no xclbin\):
- Account — Optional: That directory also has a real-compiler backend \(voyagerbackend.py, an optional heavy install\): running it confirmed onnxsim's Conv+BatchNorm fusion produces bit-identical quantized output through Voyager SDK's actual quantizer, and cross-checked the scraped constraint data against the real compiler's own error messages -- see that README for the full account, including what…

Not recorded: External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/onnxsim/onnxsim/blob/master/README.md

Extraction checked: 2026-10-24T23:46:32.543Z

Last recorded source update: 2026-11-03T11:21:42.000Z

Saved release: v0.8.1 — 2026-10-09T06:31:48.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=onnxsim%2Fonnxsim). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
