Installation
Installation
π Optimum can be installed using pip
as follows:
Copied
If youβd like to use the accelerator-specific features of π Optimum, you can install the required dependencies according to the table below:
pip install --upgrade-strategy eager install optimum[onnxruntime]
pip install --upgrade-strategy eager optimum[neural-compressor]
pip install --upgrade-strategy eager optimum[openvino,nncf]
pip install --upgrade-strategy eager optimum[habana]
pip install --upgrade-strategy eager optimum[furiosa]
The --upgrade-strategy eager
option is needed to ensure the different packages are upgraded to the latest possible version.
If youβd like to play with the examples or need the bleeding edge of the code and canβt wait for a new release, you can install the base library from source as follows:
Copied
For the accelerator-specific features, you can install them by appending optimum[accelerator_type]
to the pip
command, e.g.
Copied
Last updated