-
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 .
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)
- Intel Core Ultra Processors (Meteor Lake, Lunar Lake)
- OS version: CentOS 8.4, Ubuntu 22.04
- Python version: 3.10
- ONNX Runtime version: 1.18.1