To install Optimum for Intel Gaudi and run examples:
- Get access to an Intel Gaudi accelerator node.
- Using Intel Gaudi software v1.19.0,† run the Docker* image for PyTorch*.
- Install the Optimum for Intel Gaudi library:
Install the Examples repository:
Select Hugging Face Tasks from the following location, and then follow the README directions included in the 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.