OnnxSlim: A Toolkit to Help Optimize Large Onnx Model
Project description
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%
- 🚀 Rank 1st in the AICAS 2024 LLM inference optimization challenge held by Arm and T-head
- 🚀 OnnxSlim is merged into ultralytics ❤️❤️❤️
- 🚀 OnnxSlim is merged into transformers.js 🤗🤗🤗
Installation
Using Prebuilt
pip install onnxslim
Install From Source
pip install git+https://github.com/inisis/OnnxSlim@main
Install From Local
git clone https://github.com/inisis/OnnxSlim && cd OnnxSlim/
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
Discord: https://discord.gg/nRw2Fd3VUS QQ Group: 873569894
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onnxslim-0.1.32.tar.gz
(116.4 kB
view hashes)
Built Distribution
onnxslim-0.1.32-py3-none-any.whl
(130.5 kB
view hashes)
Close
Hashes for onnxslim-0.1.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f537821bc83fb5401f0938eb3951f096af2c2454c7af960f31c671b21e935ceb |
|
MD5 | c336e27f806a8804ba11994a3be2f78b |
|
BLAKE2b-256 | b2354bbb4b54a4ac95cfbcf04dbf34402b9be10182279d619f886dd0484f173f |