Skip to content

Commit 02d3382

Browse files
committed
include path
1 parent d3d680d commit 02d3382

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.github/workflows/genai_lib.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
- run: sudo ./ov/install_dependencies/install_openvino_dependencies.sh
1616
- run: source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
1717
- run: source ./ov/setupvars.sh && cmake --build ./build/ --config Release -j
18-
- run: python -m pip install openvino # Can't load CentOS libraries from the archive
18+
- run: python -m pip install --pre openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly # Can't load CentOS libraries from the archive
1919
- run: PYTHONPATH=./src/python/ python -c "from openvino_genai.py_generate_pipeline import LLMPipeline"
20-
- run: source ./ov/setupvars.sh && python -m pip install --pre --upgrade . --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
20+
- run: source ./ov/setupvars.sh && python -m pip install --pre . --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
2121
- run: python -c "from openvino_genai.py_generate_pipeline import LLMPipeline"
2222

2323
genai_lib_windows:

.github/workflows/genai_package.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ jobs:
3333
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
3434
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && cmake --build ./build/ --config Release --target package -j
3535
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && cmake --install ./build/ --config Release --prefix w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64
36-
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\samples/cpp/build_samples_msvc.bat -b ${{ github.workspace }}/samples-build
36+
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\samples\cpp\build_samples_msvc.bat -b ${{ github.workspace }}/samples-build
3737
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && ${{ github.workspace }}/samples-build/intel64/Release/greedy_causal_lm asdf
38+
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && python -m pip install --upgrade-strategy eager -r text_generation/causal_lm/cpp/requirements.txt
39+
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers]
40+
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_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
41+
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && ${{ github.workspace }}/samples-build/intel64/Release/greedy_causal_lm .\TinyLlama-1.1B-Chat-v1.0\ ""

src/cpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ add_library(openvino::${TARGET_NAME} ALIAS ${TARGET_NAME})
5151
target_include_directories(${TARGET_NAME}
5252
# TODO: remove it, because beam_search algo should not be exposed to end users
5353
PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../text_generation/causal_lm/cpp/>"
54-
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<INSTALL_INTERFACE:include>")
54+
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<INSTALL_INTERFACE:runtime/include>")
5555

5656
target_link_libraries(${TARGET_NAME} PUBLIC openvino::runtime PRIVATE nlohmann_json::nlohmann_json jinja2cpp)
5757

text_generation/causal_lm/cpp/CMakeLists.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ else()
1010
set(OPENVINO_TOKENIZERS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/openvino_tokenizers.dll) # TODO: I'll go away after the generate() gets a way to find openvino_tokenizers
1111
endif()
1212

13-
find_package(openvino_genai REQUIRED
14-
PATHS
15-
"${CMAKE_BINARY_DIR}" # Reuse the package from the build.
16-
${OpenVINO_DIR} # GenAI may be installed alogside with OpenVINO.
13+
find_package(openvino_genai REQUIRED PATHS
14+
"${CMAKE_BINARY_DIR}" # Reuse the package from the build.
15+
${OpenVINO_DIR} # GenAI may be installed alogside OpenVINO.
1716
)
1817

1918
add_executable(greedy_causal_lm greedy_causal_lm.cpp)

0 commit comments

Comments
 (0)