Skip to content

Commit

Permalink
Support LNL Windows release (#12169)
Browse files Browse the repository at this point in the history
* Release for LNL on Windows

* Temp commit for release test

* Change option name

* Remove temp commit and change option name

* temp commit for test again

* Remove temp commit
  • Loading branch information
Oscilloscope98 authored Oct 9, 2024
1 parent 78d2531 commit aef1f67
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/llm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ def setup_package():
# default to ipex 2.1 for linux and windows
xpu_requires = copy.deepcopy(xpu_21_requires)

xpu_lnl_requires = copy.deepcopy(all_requires)
for exclude_require in cpu_torch_version:
xpu_lnl_requires.remove(exclude_require)
xpu_lnl_requires += ["torch==2.3.1+cxx11.abi",
"torchvision==0.18.1+cxx11.abi",
"intel-extension-for-pytorch==2.3.110+xpu",
"bigdl-core-xe-23==" + CORE_XE_VERSION,
"bigdl-core-xe-batch-23==" + CORE_XE_VERSION,
"bigdl-core-xe-addons-23==" + CORE_XE_VERSION]

cpp_requires = ["bigdl-core-cpp==" + CORE_XE_VERSION,
"onednn-devel==2024.2.1;platform_system=='Windows'"]
Expand Down Expand Up @@ -334,6 +343,7 @@ def setup_package():
"xpu": xpu_requires, # default to ipex 2.1 for linux and windows
"npu": npu_requires,
"xpu-2-1": xpu_21_requires,
"xpu-lnl": xpu_lnl_requires,
"serving": serving_requires,
"cpp": cpp_requires,
"llama-index": llama_index_requires}, # for internal usage when upstreaming for llama-index
Expand Down

0 comments on commit aef1f67

Please sign in to comment.