Skip to content

Commit 81a0f96

Browse files
jingxu10zejun-chen
andauthored
PTI, LLM setup scripts, depdency json (#4694)
* [profiler] install libpti.so and libpti_view.so Signed-off-by: Chen, Zejun <[email protected]> * bug fix * update compile bundle * fix advanced config not correctly displayed issue * add pti to llm env setup scripts * update llm env setup scripts * unify docker image build commands * change dependency_version.yml to dependency_version.json --------- Signed-off-by: Chen, Zejun <[email protected]> Co-authored-by: Chen, Zejun <[email protected]>
1 parent df76aab commit 81a0f96

File tree

133 files changed

+188
-31612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+188
-31612
lines changed

csrc/gpu/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ if(USE_PTI)
6666
find_library(PTI_VIEW_LIBRARY NAMES pti_view PATHS "${PTI_INCLUDE_DIR}/../lib")
6767
set(PTI_LIBRARY ${PTI_VIEW_LIBRARY} CACHE STRING "Imported PTI library.")
6868
set(PTI_INCLUDE_DIR ${PTI_INCLUDE_DIR} CACHE STRING "PTI include directory.")
69+
70+
# install libpti.so.0.9 and libpti_view.so.0.9
71+
# FIXME: the library name is hardwritten here because PTI should create soft link for its library
72+
# FIXME: when PTI can be isolated installed by pip, remove here installation code
73+
find_file(PTI_LIBRARY_NEED_INSTALL NAMES libpti.so.0.9 PATHS "${PTI_INCLUDE_DIR}/../lib")
74+
find_file(PTI_VIEW_LIBRARY_NEED_INSTALL NAMES libpti_view.so.0.9 PATHS "${PTI_INCLUDE_DIR}/../lib")
75+
76+
install(FILES ${PTI_LIBRARY_NEED_INSTALL} DESTINATION ${CMAKE_INSTALL_LIBDIR})
77+
install(FILES ${PTI_VIEW_LIBRARY_NEED_INSTALL} DESTINATION ${CMAKE_INSTALL_LIBDIR})
78+
6979
endif()
7080
endif(USE_PTI)
7181

dependency_version.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"gcc": {
3+
"max-version": "",
4+
"min-version": "12.3.0"
5+
},
6+
"llvm": {
7+
"version": "16.0.6"
8+
},
9+
"pytorch": {
10+
"version": "2.3.1+cxx11.abi",
11+
"commit": "v2.3.1"
12+
},
13+
"torchaudio": {
14+
"version": "2.3.0+cxx11.abi",
15+
"commit": "v2.3.0"
16+
},
17+
"torchvision": {
18+
"version": "0.18.0+cxx11.abi",
19+
"commit": "v0.18.0"
20+
},
21+
"torch-ccl": {
22+
"version": "2.3.100+xpu",
23+
"commit": "master"
24+
},
25+
"basekit": {
26+
"dpcpp-cpp-rt": {
27+
"version": "2024.2.1"
28+
},
29+
"mkl-dpcpp": {
30+
"version": "2024.2.1"
31+
},
32+
"oneccl-devel": {
33+
"version": "2021.13.1"
34+
},
35+
"impi-devel": {
36+
"version": "2021.13.1"
37+
}
38+
}
39+
}

dependency_version.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

docker/Dockerfile.compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN cp ./intel-extension-for-pytorch/scripts/compile_bundle.sh ./ && \
4242
sed -i "s/VER_IPEX=.*/VER_IPEX=/" compile_bundle.sh
4343
RUN . ./miniforge3/bin/activate && \
4444
conda create -y -n compile_py310 python=3.10 && conda activate compile_py310 && \
45-
bash compile_bundle.sh /opt/intel/oneapi/compiler/latest /opt/intel/oneapi/mkl/latest /opt/intel/oneapi/ccl/latest /opt/intel/oneapi/mpi/latest /opt/intel/oneapi/pti/latest pvc,ats-m150,acm-g11 && \
45+
bash compile_bundle.sh /opt/intel/oneapi/compiler/latest /opt/intel/oneapi/mkl/latest /opt/intel/oneapi/ccl/latest /opt/intel/oneapi/mpi/latest /opt/intel/oneapi/pti/latest pvc,ats-m150,xe-lpg && \
4646
mkdir wheels && cp pytorch/dist/*.whl vision/dist/*.whl audio/dist/*.whl intel-extension-for-pytorch/dist/*.whl torch-ccl/dist/*.whl ./wheels
4747

4848
FROM base AS deploy

docs/tutorials/features/advanced_configuration.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ The default settings for Intel® Extension for PyTorch\* are sufficient for most
88
The following build options are supported by Intel® Extension for PyTorch\*. Users who install Intel® Extension for PyTorch\* via source compilation could override the default configuration by explicitly setting a build option ON or OFF, and then build.
99

1010
| **Build Option** | **Default<br>Value** | **Description** |
11-
| ------ | ------ | ------ |
1211

1312
For above build options which can be configured to ON or OFF, users can configure them to 1 or 0 also, while ON equals to 1 and OFF equals to 0.
1413

@@ -17,13 +16,10 @@ For above build options which can be configured to ON or OFF, users can configur
1716
The following launch options are supported in Intel® Extension for PyTorch\*. Users who execute AI models on XPU could override the default configuration by explicitly setting the option value at runtime using environment variables, and then launch the execution.
1817

1918
| **Launch Option<br>CPU, GPU** | **Default<br>Value** | **Description** |
20-
| ------ | ------ | ------ |
2119

2220
| **Launch Option<br>GPU ONLY** | **Default<br>Value** | **Description** |
23-
| ------ | ------ | ------ |
2421

2522
| **Launch Option<br>Experimental** | **Default<br>Value** | **Description** |
26-
| ------ | ------ | ------ |
2723

2824
| **Distributed Option<br>GPU ONLY** | **Default<br>Value** | **Description** |
2925
| ------ | ------ | ------ |

examples/cpu/features/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/cpu/features/fast_bert/README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/cpu/features/fast_bert/fast_bert_inference_bf16.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/cpu/features/fast_bert/fast_bert_training_bf16.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/cpu/features/graph_capture.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)