To install Optimum for Intel Gaudi and run examples:
- Get access to an Intel Gaudi accelerator node.
- Using Intel Gaudi software v1.18.0,† run the Docker* image for PyTorch*.
- Install the Optimum for Intel Gaudi library:
pip install optimum[habana]==1.14.1
Install the Examples repository:
cd ~
git clone -b v1.14.1 https://github.com/huggingface/optimum-habana
Select Hugging Face Tasks from the following location, and then follow the README directions included in the examples:
cd ~/optimum-Habana/examples
†If you are unsure what version of Intel Gaudi software you are running, see Software Verification and Support Matrix.
The installation is the most recent version of the optimum-habana library from Python* Package Index (PyPI) and checking out the same tag in GitHub for the optimum-habana model examples.
To use the latest working version, install the optimum-habana library from source:
pip install git+https://github.com/huggingface/optimum-habana.git
Use the main branch from Github for all model examples.