# Installation 1. [Install from Pypi](#install-from-pypi) 2. [Install from Source](#install-from-source) 2.1. [Prerequisites](#prerequisites) 2.2. [Install Intel Extension for Transformers](#install-intel-extension-for-transformers) 3. [System Requirements](#system-requirements) 3.1. [Validated Hardware Environment](#validated-hardware-environment) 3.2. [Validated Software Environment](#validated-software-environment) ## Install from Pypi Binary builds for python 3.8, 3.9 and 3.10 are available in Pypi >**Note**: Recommend install protobuf <= 3.20.0 if use onnxruntime <= 1.11 ```Bash # install stable basic version from pypi pip install intel-extension-for-transformers ``` ```Bash # install nightly version pip install -i https://test.pypi.org/simple/ intel-extension-for-transformers # or install nightly version with only backend pip install -i https://test.pypi.org/simple/ intel-extension-for-transformers-backend ``` ```Bash # install stable basic version from from conda conda install -c intel intel_extension_for_transformers ``` ## Install from Source ### Prerequisites The following prerequisites and requirements must be satisfied for a successful installation: - Python version: 3.8 or 3.9 or 3.10 - GCC (on Linux) or Visual Studio (on Windows) ### Install Intel Extension for Transformers ```Bash git clone https://github.com/intel/intel-extension-for-transformers.git itrex cd itrex pip install -r requirements.txt # Install intel_extension_for_transformers pip install -v . ``` ## System Requirements ### Validated Hardware Environment IntelĀ® Extension for Transformers supports systems based on [Intel 64 architecture or compatible processors](https://en.wikipedia.org/wiki/X86-64) that are specifically optimized for the following CPUs: * Intel Xeon Scalable processor (formerly Cascade Lake, Icelake) * Future Intel Xeon Scalable processor (code name Sapphire Rapids) ### Validated Software Environment * OS version: CentOS 8.4, Ubuntu 20.04 * Python version: 3.8, 3.9, 3.10
| Framework | Intel TensorFlow | PyTorch | IPEX |
|---|---|---|---|
| Version | 2.12.0 2.11.0 | 2.0.0+cpu 1.13.1+cpu 1.12.0+cpu | 2.0.0 1.13.0 |
| Framework | Intel TensorFlow | PyTorch |
|---|---|---|
| Version | 2.9.1 | 2.0.0+cpu |