A script to benchmark the performance for PEFT finetuning LLM model on Intel GPU.
Supported PEFT methods:
- QLORA
- CPU: 13th Gen Intel® Core™ Processor Family or 4th Gen Xeon Scalable Processors and above
- GPU: Intel® Arc™ A770 Graphics (16GB)
- RAM: 64GB
- SSD: 512GB
Install the latest Ubuntu* 22.04 LTS Desktop. Refer to Ubuntu Desktop installation tutorial if needed.
2. Install Intel® GPU driver: link
3. Intel® oneAPI Base Toolkit (version 2024.2.0): link
sudo apt update
sudo apt install -y python3.11 python3.11-venv
python3.11 -m venv .venv
source .venv/bin/activate
python3 -m pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
python3 -m pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 oneccl_bind_pt==2.1.300+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
python3 -m pip install setuptools==69.5.1 numpy==1.26.4
python3 -m pip install transformers==4.43.3 accelerate==0.33.0 datasets==2.20.0 peft==0.12.0 bitsandbytes==0.43.2 scipy==1.14.0 fire==0.6.0 trl==0.9.6
source .venv/bin/activate
./benchmark.sh
tail -f logs/training.log
This script is just used for getting the training efficiency related usage and don't guarantee convergence of training.