You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v1.8.6).
🤗 Optimum can be installed using
pip as follows:
python -m pip install optimum
If you’d like to use the accelerator-specific features of 🤗 Optimum, you can install the required dependencies according to the table below:
|Intel Neural Compressor (INC)|
|Habana Gaudi Processor (HPU)|
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:
python -m pip install git+https://github.com/huggingface/optimum.git
For the accelerator-specific features, you can install them by appending
#egg=optimum[accelerator_type] to the
pip command, e.g.
python -m pip install git+https://github.com/huggingface/optimum.git#egg=optimum[onnxruntime]