diff --git a/README.md b/README.md index 526dcbb..05ff211 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Run local LLMs on iGPU, APU and CPU (AMD , Intel, and Qualcomm (Coming Soon)). E 1. Custom Setup: - - **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.10 libuv; conda activate ellm`. + - **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.11 libuv; conda activate ellm`. - **DirectML**: If you are using Conda Environment. Install additional dependencies: `conda install conda-forge::vs2015_runtime`. 2. Install embeddedllm package. `$env:ELLM_TARGET_DEVICE='directml'; pip install -e .`. Note: currently support `cpu`, `directml` and `cuda`. @@ -67,7 +67,7 @@ Run local LLMs on iGPU, APU and CPU (AMD , Intel, and Qualcomm (Coming Soon)). E 1. Custom Setup: - - **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.10 libuv; conda activate ellm`. + - **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.11 libuv; conda activate ellm`. - **DirectML**: If you are using Conda Environment. Install additional dependencies: `conda install conda-forge::vs2015_runtime`. 2. Install embeddedllm package. `ELLM_TARGET_DEVICE='directml' pip install -e .`. Note: currently support `cpu`, `directml` and `cuda`. diff --git a/requirements-ipex.txt b/requirements-ipex.txt index 468357e..cd92c86 100644 --- a/requirements-ipex.txt +++ b/requirements-ipex.txt @@ -1,5 +1,5 @@ trl -huggingface-hub~=0.24.3 +huggingface-hub>=0.24.3,<0.26.0 fsspec~=2024.5.0 transformers>=4.43.3 importlib-metadata \ No newline at end of file diff --git a/setup.py b/setup.py index 009aad2..4520ee6 100644 --- a/setup.py +++ b/setup.py @@ -90,6 +90,12 @@ def run(self): text=True, ) + result = subprocess.run( + ["pip", "install", "importlib-metadata"], + capture_output=True, + text=True, + ) + if _is_directml(): result = subprocess.run( ["conda", "install", "conda-forge::vs2015_runtime", "-y"], @@ -109,7 +115,7 @@ def run(self): "install", "--pre", "--upgrade", - "ipex-llm[xpu]==2.1.0b20240731", + "ipex-llm[xpu]==2.2.0b20240925", "--extra-index-url", "https://pytorch-extension.intel.com/release-whl/stable/xpu/us/", ], @@ -135,6 +141,12 @@ def run(self): text=True, ) + result = subprocess.run( + ["pip", "install", "importlib-metadata"], + capture_output=True, + text=True, + ) + if _is_directml(): result = subprocess.run( ["conda", "install", "conda-forge::vs2015_runtime", "-y"],