nihui / OnnxSlim

A Toolkit to Help Optimize Large Onnx Model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OnnxSlim

OnnxSlim can help you slim your onnx model, with less operators, but same accuracy, better inference speed.

  • 🚀 OnnxSlim is merged to mnn-llm, performance increased by 5%

Installation

Using Prebuilt

pip install onnxslim

Build From Source

pip install .

How to use

onnxslim your_onnx_model slimmed_onnx_model

For more usage, see onnxslim -h or refer to our examples

References

Contact

QQ Group: 873569894

About

A Toolkit to Help Optimize Large Onnx Model

License:MIT License


Languages

Language:Python 100.0%Language:Shell 0.0%