Closed Tisha-linkenite closed 3 months ago
Hi Tisha, may I know what is your target device for the LLM finetuning workload? Is it an Intel Arc GPU? From this line in your traceback info
148 def _preload_cuda_deps(lib_folder, lib_name):
I guess you installed a cuda version pytorch.
And have you installed IPEX? I ask as I didn't see import intel_extension_for_pytorch as ipex
in your code.
Please check the install guide for how to utilize Intel GPU with IPEX environment.
Hi Zaili,
The LLM finetuning workload is Intel (R) UHD. I haven't installed IPEX, not sure which is the compatible version with torch Version: 2.3.1.
Hi Tisha, UHD devices are not officially supported by ipex, so you can give it a try for your workload, but it would be hard to be supported if meet with crash, performance or accuracy issues.
If needed, please refer to the link in my last post for IPEX installation. Please note you need to install torch
with the command in the installation tutorial, but not from official PyTorch site. The latest IPEX release version is 2.1.30+xpu
, which works with a patched PyTorch 2.1 version.
Hi Zaili, when I try for version 2.1.20+xpu, I am facing the below error -
ERROR: Could not find a version that satisfies the requirement intel-extension-for-pytorch==2.1.30+xpu (from versions: none) ERROR: No matching distribution found for intel-extension-for-pytorch==2.1.30+xpu
Can I try the below command instead - pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
Not sure if you followed the guide. The command for Windows should be
python -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 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
Please also beware that driver and oneAPI basekit need to be installed in prior.
Describe the bug
🐛 Describe the bug
I was working on fine tuning the llm, while executing the below piece of code encounter the [OSError] -
Error -
Stack Trace -
Code -
Versions
System Information
Package Information
Versions
Versions System Information OS: Windows OS Version: 10.0.22631 Python Version: 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] Environment: Virtual Environment (.venv)
Package Information langchain_core: 0.2.9 langchain: 0.2.5 langchain_community: 0.2.5 langsmith: 0.1.77 langchain_chroma: 0.1.1 langchain_openai: 0.1.8 langchain_text_splitters: 0.2.1