Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion requirements-ipex.txt
Original file line number Diff line number Diff line change
@@ -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
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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/",
],
Expand All @@ -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"],
Expand Down