inisis/OnnxSlim
A Toolkit to Help Optimize Onnx Model
What it solves
OnnxSlim reduces the complexity of ONNX models by removing unnecessary operators. This process "slims" the model to improve inference speed and reduce the number of operators without sacrificing the model's accuracy.
How it works
It provides a Python package and a command-line interface (CLI) that allows users to process an existing ONNX model. By applying optimization passes, it simplifies the graph structure of the model, resulting in a more efficient version of the same model.
Who it’s for
AI developers and ML engineers who use ONNX models for deployment, specifically those looking to optimize performance and load speeds on various hardware targets.
Highlights
- Widespread Integration: Integrated into major frameworks like NVIDIA TensorRT-Model-Optimizer, HuggingFace optimum, and transformers.js.
- Proven Performance: Ranked 1st in the AICAS LLM inference optimization challenges for both 2024 and 2025.
- Easy to Use: Offers both a simple one-line bash command and a Python API for integration into scripts.
- High Adoption: Has achieved over 10 million downloads on PyPI.
Related
- Project
- Project
- Project
- Project
- Project