Skip to content

Commit b679fc7

Browse files
committed
install samples
1 parent 5577e84 commit b679fc7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/genai_package.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
- run: source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
1818
- run: source ./ov/setupvars.sh && cmake --build ./build/ --config Release --target package -j
1919
- run: source ./ov/setupvars.sh && cmake --install ./build/ --config Release --prefix ov
20-
- run: ov/samples/cpp/build_samples.sh -b "${{ github.workspace }}/s pace"
20+
- run: ov/samples/cpp/build_samples.sh -i ${{ github.workspace }}/s\ pace
2121
- run: source ./ov/setupvars.sh && python -m pip install --upgrade-strategy eager -r text_generation/causal_lm/cpp/requirements.txt
2222
- run: source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers]
2323
- run: source ./ov/setupvars.sh && optimum-cli export openvino --trust-remote-code --weight-format fp16 --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 TinyLlama-1.1B-Chat-v1.0
24-
- run: source ./ov/setupvars.sh && timeout 50s "${{ github.workspace }}/s pace/intel64/Release/greedy_causal_lm" ./TinyLlama-1.1B-Chat-v1.0/ ""
24+
- run: source ./ov/setupvars.sh && timeout 50s "${{ github.workspace }}/s\ pace/samples_bin/greedy_causal_lm" ./TinyLlama-1.1B-Chat-v1.0/ ""
2525

2626
windows_genai_package:
2727
runs-on: windows-latest
@@ -40,8 +40,8 @@ jobs:
4040
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
4141
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake --build ./build/ --config Release --target package -j
4242
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake --install ./build/ --config Release --prefix w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64
43-
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\samples\cpp\build_samples_msvc.bat -b "${{ github.workspace }}/samples_build"
43+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\samples\cpp\build_samples_msvc.bat -i "${{ github.workspace }}/samples_install"
4444
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install --upgrade-strategy eager -r text_generation/causal_lm/cpp/requirements.txt
4545
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers]
4646
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && optimum-cli export openvino --trust-remote-code --weight-format fp16 --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 TinyLlama-1.1B-Chat-v1.0
47-
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && "${{ github.workspace }}/samples_build/intel64/Release/greedy_causal_lm" .\TinyLlama-1.1B-Chat-v1.0\ ""
47+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && "${{ github.workspace }}/samples_install/samples_bin/greedy_causal_lm" .\TinyLlama-1.1B-Chat-v1.0\ ""

.github/workflows/genai_python_lib.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: genai_python_lib
22
on: pull_request
33
jobs:
44
ubuntu_genai_python_lib:
5-
runs-on: ubuntu-20.04-16-cores
5+
runs-on: ubuntu-20.04
66
steps:
77
- uses: actions/checkout@v4
88
with:

text_generation/causal_lm/cpp/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ target_link_libraries(chat_sample PRIVATE openvino::genai)
5151
target_include_directories(chat_sample PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
5252
set_target_properties(chat_sample PROPERTIES CXX_STANDARD 17)
5353
set_target_properties(chat_sample PROPERTIES CXX_STANDARD_REQUIRED ON)
54+
55+
install(TARGETS greedy_causal_lm beam_search_causal_lm speculative_decoding_lm prompt_lookup_decoding_lm chat_sample
56+
RUNTIME DESTINATION samples_bin/
57+
COMPONENT samples_bin
58+
EXCLUDE_FROM_ALL)

0 commit comments

Comments
 (0)