Skip to content

Commit 3fe35ad

Browse files
authored
[IPEX] Fix ipex installation dependencies (#38)
* fix ipex installation dependencies * update ipex version to latest
1 parent c3b9631 commit 3fe35ad

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Run local LLMs on iGPU, APU and CPU (AMD , Intel, and Qualcomm (Coming Soon)). E
4646

4747
1. Custom Setup:
4848

49-
- **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.10 libuv; conda activate ellm`.
49+
- **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.11 libuv; conda activate ellm`.
5050
- **DirectML**: If you are using Conda Environment. Install additional dependencies: `conda install conda-forge::vs2015_runtime`.
5151

5252
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
6767

6868
1. Custom Setup:
6969

70-
- **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.10 libuv; conda activate ellm`.
70+
- **IPEX(XPU)**: Requires anaconda environment. `conda create -n ellm python=3.11 libuv; conda activate ellm`.
7171
- **DirectML**: If you are using Conda Environment. Install additional dependencies: `conda install conda-forge::vs2015_runtime`.
7272

7373
2. Install embeddedllm package. `ELLM_TARGET_DEVICE='directml' pip install -e .`. Note: currently support `cpu`, `directml` and `cuda`.

requirements-ipex.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
trl
2-
huggingface-hub~=0.24.3
2+
huggingface-hub>=0.24.3,<0.26.0
33
fsspec~=2024.5.0
44
transformers>=4.43.3
55
importlib-metadata

setup.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ def run(self):
9090
text=True,
9191
)
9292

93+
result = subprocess.run(
94+
["pip", "install", "importlib-metadata"],
95+
capture_output=True,
96+
text=True,
97+
)
98+
9399
if _is_directml():
94100
result = subprocess.run(
95101
["conda", "install", "conda-forge::vs2015_runtime", "-y"],
@@ -109,7 +115,7 @@ def run(self):
109115
"install",
110116
"--pre",
111117
"--upgrade",
112-
"ipex-llm[xpu]==2.1.0b20240731",
118+
"ipex-llm[xpu]==2.2.0b20240925",
113119
"--extra-index-url",
114120
"https://pytorch-extension.intel.com/release-whl/stable/xpu/us/",
115121
],
@@ -135,6 +141,12 @@ def run(self):
135141
text=True,
136142
)
137143

144+
result = subprocess.run(
145+
["pip", "install", "importlib-metadata"],
146+
capture_output=True,
147+
text=True,
148+
)
149+
138150
if _is_directml():
139151
result = subprocess.run(
140152
["conda", "install", "conda-forge::vs2015_runtime", "-y"],

0 commit comments

Comments
 (0)