-
1.1. Prerequisites
1.2. Install from Binary
1.3. Install from Source
You can install Neural Compressor from binary or source.
The following prerequisites and requirements must be satisfied for a successful installation:
- Python version: 3.8 or 3.9 or 3.10 or 3.11
# install stable basic version from pypi
pip install onnx-neural-compressor
git clone https://github.com/onnx/neural-compressor.git
cd neural-compressor
pip install -r requirements.txt
pip install .
ONNX Neural Compressor supports CPUs based on Intel 64 architecture or compatible processors:
- Intel Xeon Scalable processor (formerly Skylake, Cascade Lake, Cooper Lake, Ice Lake, and Sapphire Rapids)
- Intel Xeon CPU Max Series (formerly Sapphire Rapids HBM)
- OS version: CentOS 8.4, Ubuntu 22.04, MacOS Ventura 13.5
- Python version: 3.8, 3.9, 3.10, 3.11
- ONNX Runtime version: 1.14.1, 1.15.1, 1.16.3