Skip to content

Commit 78d0b88

Browse files
authored
Archive (#7)
* archive * dont modify whats not mine * alias * fix component name * raname component * remove leftovers * test install * call * PATHS * include path * remove dummy call * try * test ubuntu * fix build * add subfolder * downgrade package * space * fix * no space * conditionally include build type into archive * skip ubuntu_genai_package * put archive back * openvino_genai->openvino/genai * don't modify macro
1 parent e7fa974 commit 78d0b88

File tree

10 files changed

+149
-40
lines changed

10 files changed

+149
-40
lines changed

.github/workflows/genai_package.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: genai_package
2+
on: pull_request
3+
jobs:
4+
ubuntu_genai_package:
5+
if: false
6+
runs-on: ubuntu-20.04
7+
steps:
8+
- uses: actions/checkout@v4
9+
with:
10+
submodules: recursive
11+
- uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.8
14+
- run: mkdir ./ov/
15+
- run: curl https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu20_2024.1.0.15008.f4afc983258_x86_64.tgz | tar --directory ./ov/ --strip-components 1 -xz
16+
- run: sudo ./ov/install_dependencies/install_openvino_dependencies.sh
17+
- run: source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
18+
- run: source ./ov/setupvars.sh && cmake --build ./build/ --config Release --target package -j
19+
- 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"
21+
- run: source ./ov/setupvars.sh && python -m pip install --upgrade-strategy eager -r text_generation/causal_lm/cpp/requirements.txt
22+
- run: source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers]
23+
- 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\ ""
25+
26+
windows_genai_package:
27+
runs-on: windows-latest
28+
defaults:
29+
run:
30+
shell: cmd
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
submodules: recursive
35+
- uses: actions/setup-python@v4
36+
with:
37+
python-version: 3.8
38+
- run: curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.2.0-15349-765302e0de1/w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64.zip
39+
- run: unzip ov.zip
40+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
41+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake --build ./build/ --config Release --target package -j
42+
- 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"
44+
- 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
45+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers]
46+
- 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\ ""
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: genai_lib
1+
name: genai_python_lib
22
on: pull_request
33
jobs:
4-
genai_lib_ubuntu:
4+
ubuntu_genai_python_lib:
55
runs-on: ubuntu-20.04
66
steps:
77
- uses: actions/checkout@v4
@@ -15,12 +15,12 @@ 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

23-
genai_lib_windows:
23+
windows_genai_python_lib:
2424
runs-on: windows-latest
2525
defaults:
2626
run:
@@ -32,11 +32,11 @@ jobs:
3232
- uses: actions/setup-python@v4
3333
with:
3434
python-version: 3.8
35-
- run: curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.1.0-14645-e6dc0865128/w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64.zip
35+
- run: curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.2.0-15349-765302e0de1/w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64.zip
3636
- run: unzip ov.zip
37-
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
38-
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && cmake --build ./build/ --config Release -j
37+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
38+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake --build ./build/ --config Release -j
3939
- run: python -m pip install "numpy<1.27"
40-
- run: set "PYTHONPATH=./src/python;" && call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && python -c "from openvino_genai.py_generate_pipeline import LLMPipeline" # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that.
41-
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && python -m pip install .
40+
- run: set "PYTHONPATH=./src/python;" && call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -c "from openvino_genai.py_generate_pipeline import LLMPipeline" # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that.
41+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install .
4242
- run: python -c "from openvino_genai.py_generate_pipeline import LLMPipeline"

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# They are copied to python folder during the build to allow skipping wheel installation
2-
src/python/openvino_genai/*generate_pipeline_lib*
2+
src/python/openvino_genai/*genai*
33
src/python/openvino_genai/py_generate_pipeline*
44

55
# build/artifact dirs

CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ cmake_minimum_required(VERSION 3.15)
77
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "CMake build type")
88
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release" "Debug" "RelWithDebInfo" "MinSizeRel")
99

10-
project(openvino_genai)
10+
project(openvino_genai VERSION 2024.2.0.0)
1111

1212
add_subdirectory(./thirdparty/openvino_tokenizers/ "${CMAKE_CURRENT_BINARY_DIR}/openvino_tokenizers/")
1313
add_subdirectory(src)
1414
add_subdirectory(text_generation/causal_lm/cpp)
15+
16+
install(DIRECTORY text_generation/causal_lm/cpp/ DESTINATION samples/cpp/causal_lm COMPONENT cpp_samples_genai)
17+
install(FILES LICENSE third-party-programs.txt DESTINATION licensing_genai COMPONENT licensing_genai) # TODO: how to merge with OPenvino
18+
set(CPACK_GENERATOR "ZIP")
19+
include(CPack)

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ dependencies = [
2222
[tool.scikit-build]
2323
cmake.source-dir = "./"
2424
cmake.build-type = "Release"
25-
cmake.targets = ["py_generate_pipeline", "generate_pipeline_lib"]
26-
install.components = ["genai", "genai_python"]
25+
cmake.targets = ["py_generate_pipeline", "genai"]
26+
install.components = ["core_genai", "pygenai"]
2727
sdist.cmake = true
2828
wheel.packages = ["src/python/openvino_genai"]
2929
wheel.install-dir = "openvino_genai"

src/cpp/CMakeLists.txt

+47-10
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,62 @@ ov_genai_build_jinja2cpp()
4444

4545
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
4646

47-
set(TARGET_NAME generate_pipeline_lib)
47+
set(TARGET_NAME genai)
4848
add_library(${TARGET_NAME} SHARED ${SOURCE_FILES})
49+
add_library(openvino::${TARGET_NAME} ALIAS ${TARGET_NAME})
4950

5051
target_include_directories(${TARGET_NAME}
5152
# TODO: remove it, because beam_search algo should not be exposed to end users
52-
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../text_generation/causal_lm/cpp/
53-
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
53+
PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../text_generation/causal_lm/cpp/>"
54+
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<INSTALL_INTERFACE:runtime/include>")
5455

5556
target_link_libraries(${TARGET_NAME} PUBLIC openvino::runtime PRIVATE nlohmann_json::nlohmann_json jinja2cpp)
5657

5758
target_compile_definitions(${TARGET_NAME} PRIVATE OPENVINO_TOKENIZERS_PATH=\"$<TARGET_FILE:openvino_tokenizers>\")
5859

5960
target_compile_features(${TARGET_NAME} PUBLIC cxx_std_17)
6061

61-
install(TARGETS ${TARGET_NAME} LIBRARY DESTINATION . COMPONENT genai RUNTIME DESTINATION . COMPONENT genai)
62-
63-
# Populate python with the libraries to allow skipping wheel installation
64-
add_custom_command(TARGET generate_pipeline_lib POST_BUILD
62+
# Copy the library to python to allow skipping wheel installation
63+
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
6564
COMMAND "${CMAKE_COMMAND}" -E copy
66-
"$<TARGET_FILE:generate_pipeline_lib>"
67-
"${CMAKE_CURRENT_SOURCE_DIR}/../python/openvino_genai/$<TARGET_FILE_NAME:generate_pipeline_lib>"
68-
COMMENT "Copy generate_pipeline_lib to src/python/openvino_genai")
65+
"$<TARGET_FILE:${TARGET_NAME}>"
66+
"${CMAKE_CURRENT_SOURCE_DIR}/../python/openvino_genai/$<TARGET_FILE_NAME:${TARGET_NAME}>"
67+
COMMENT "Copy ${TARGET_NAME} to src/python/openvino_genai")
68+
69+
install(TARGETS ${TARGET_NAME} LIBRARY DESTINATION . COMPONENT core_genai RUNTIME DESTINATION . COMPONENT core_genai)
70+
71+
# - Windows: `<openvino_dir>\runtime\bin\intel64\Release\`
72+
# - MacOS_x86: `<openvino_dir>/runtime/lib/intel64/Release`
73+
# - MacOS_arm64: `<openvino_dir>/runtime/lib/arm64/Release/`
74+
# - Linux_x86: `<openvino_dir>/runtime/lib/intel64/`
75+
# - Linux_arm64: `<openvino_dir>/runtime/lib/aarch64/`
76+
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH_DIR)
77+
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
78+
set(ARCH_DIR intel64)
79+
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^(arm64.*|aarch64.*|AARCH64.*|ARM64.*)")
80+
if(APPLE)
81+
set(ARCH_DIR "arm64")
82+
else()
83+
set(ARCH_DIR "aarch64")
84+
endif()
85+
elseif(ARCH_DIR STREQUAL "x86_64" OR ARCH_DIR STREQUAL "amd64" # Windows detects Intel's 64-bit CPU as AMD64
86+
OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
87+
set(ARCH_DIR intel64)
88+
endif()
89+
if(MSVC OR APPLE)
90+
set(ARCH_DIR ${ARCH_DIR}/${CMAKE_BUILD_TYPE})
91+
endif()
92+
install(TARGETS ${TARGET_NAME} EXPORT openvino_genaiTargets
93+
LIBRARY DESTINATION runtime/lib/${ARCH_DIR} COMPONENT core_genai_dev
94+
ARCHIVE DESTINATION runtime/lib/${ARCH_DIR} COMPONENT core_genai_dev
95+
RUNTIME DESTINATION runtime/bin/${ARCH_DIR} COMPONENT core_genai_dev
96+
INCLUDES DESTINATION runtime/include)
97+
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION runtime/include COMPONENT core_genai_dev)
98+
install(EXPORT openvino_genaiTargets FILE openvino_genaiTargets.cmake NAMESPACE openvino:: DESTINATION runtime/cmake)
99+
include(CMakePackageConfigHelpers)
100+
configure_package_config_file(openvino_genaiConfig.cmake.in "${CMAKE_BINARY_DIR}/openvino_genaiConfig.cmake" INSTALL_DESTINATION runtime/cmake)
101+
install(FILES "${CMAKE_BINARY_DIR}/openvino_genaiConfig.cmake" "${CMAKE_BINARY_DIR}/openvino_genaiConfigVersion.cmake" DESTINATION runtime/cmake COMPONENT core_genai_dev)
102+
include(CMakePackageConfigHelpers)
103+
write_basic_package_version_file("${CMAKE_BINARY_DIR}/openvino_genaiConfigVersion.cmake" VERSION ${CMAKE_PROJECT_VERSION} COMPATIBILITY AnyNewerVersion)
104+
export(EXPORT openvino_genaiTargets FILE "${CMAKE_BINARY_DIR}/openvino_genaiTargets.cmake" NAMESPACE openvino::)
105+
# export(TARGETS ${TARGET_NAME} NAMESPACE openvino:: FILE "${CMAKE_BINARY_DIR}/openvino_genaiConfig.cmake") TODO

src/cpp/include/openvino/genai/visibility.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "openvino/core/visibility.hpp"
55

6-
#ifdef generate_pipeline_lib_EXPORTS
6+
#ifdef genai_EXPORTS
77
# define OPENVINO_GENAI_EXPORTS OPENVINO_CORE_EXPORTS
88
#else
99
# define OPENVINO_GENAI_EXPORTS OPENVINO_CORE_IMPORTS
10-
#endif // generate_pipeline_lib_EXPORTS
10+
#endif // genai_EXPORTS

src/cpp/openvino_genaiConfig.cmake.in

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@PACKAGE_INIT@
2+
3+
include(CMakeFindDependencyMacro)
4+
find_dependency(OpenVINO COMPONENTS Runtime)
5+
6+
if(NOT TARGET genai)
7+
include("${CMAKE_CURRENT_LIST_DIR}/openvino_genaiTargets.cmake")
8+
endif()
9+
10+
check_required_components(openvino_genai)

src/python/CMakeLists.txt

+8-5
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ if(NOT pybind11_POPULATED)
1616
endif()
1717

1818
pybind11_add_module(py_generate_pipeline py_generate_pipeline.cpp)
19-
target_link_libraries(py_generate_pipeline PRIVATE generate_pipeline_lib)
19+
target_link_libraries(py_generate_pipeline PRIVATE genai)
2020

21-
install(TARGETS py_generate_pipeline LIBRARY DESTINATION . COMPONENT genai_python)
21+
install(TARGETS py_generate_pipeline LIBRARY DESTINATION . COMPONENT pygenai)
2222

2323
# setting RPATH / LC_RPATH depending on platform
2424
if(LINUX)
25-
# to find libgenerate_pipeline_lib.so in the same folder
25+
# to find libgenai.so in the same folder
2626
set(rpaths "$ORIGIN")
2727
elseif(APPLE)
28-
# to find libgenerate_pipeline_lib.dylib in the same folder
28+
# to find libgenai.dylib in the same folder
2929
set(rpaths "@loader_path")
3030
if(DEFINED SKBUILD)
3131
# in case we build pip package, we need to refer to libopenvino.dylib from 'openvino' package
@@ -37,9 +37,12 @@ if(rpaths)
3737
set_target_properties(py_generate_pipeline PROPERTIES INSTALL_RPATH "${rpaths}")
3838
endif()
3939

40-
# Populate python with the libraries to allow skipping wheel installation
40+
# Copy the library to python to allow skipping wheel installation
4141
add_custom_command(TARGET py_generate_pipeline POST_BUILD
4242
COMMAND "${CMAKE_COMMAND}" -E copy
4343
"$<TARGET_FILE:py_generate_pipeline>"
4444
"${CMAKE_CURRENT_SOURCE_DIR}/openvino_genai/$<TARGET_FILE_NAME:py_generate_pipeline>"
4545
COMMENT "Copy py_generate_pipeline to src/python/openvino_genai/")
46+
47+
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
48+
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/openvino_genai/ DESTINATION python/openvino_genai/ COMPONENT pygenai_${Python_VERSION_MAJOR}_${Python_VERSION_MINOR})

text_generation/causal_lm/cpp/CMakeLists.txt

+16-9
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,30 @@
44
cmake_minimum_required(VERSION 3.15)
55
project(causal_lm)
66

7-
if(NOT TARGET openvino_tokenizers)
8-
add_subdirectory(../../../thirdparty/openvino_tokenizers/ "${CMAKE_CURRENT_BINARY_DIR}/openvino_tokenizers/")
7+
if(TARGET openvino_tokenizers)
8+
set(OPENVINO_TOKENIZERS_PATH $<TARGET_FILE:openvino_tokenizers>)
9+
else()
10+
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
911
endif()
1012

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.
16+
)
17+
1118
add_executable(greedy_causal_lm greedy_causal_lm.cpp)
12-
target_compile_definitions(greedy_causal_lm PRIVATE OPENVINO_TOKENIZERS_PATH=\"$<TARGET_FILE:openvino_tokenizers>\")
13-
target_link_libraries(greedy_causal_lm PRIVATE generate_pipeline_lib)
19+
target_compile_definitions(greedy_causal_lm PRIVATE OPENVINO_TOKENIZERS_PATH="${OPENVINO_TOKENIZERS_PATH}")
20+
target_link_libraries(greedy_causal_lm PRIVATE openvino::genai)
1421
set_target_properties(greedy_causal_lm PROPERTIES CXX_STANDARD 17)
1522
set_target_properties(greedy_causal_lm PROPERTIES CXX_STANDARD_REQUIRED ON)
1623

1724
add_executable(beam_search_causal_lm beam_search_causal_lm.cpp)
18-
target_link_libraries(beam_search_causal_lm PRIVATE generate_pipeline_lib)
25+
target_link_libraries(beam_search_causal_lm PRIVATE openvino::genai)
1926
set_target_properties(beam_search_causal_lm PROPERTIES CXX_STANDARD 17)
2027
set_target_properties(beam_search_causal_lm PROPERTIES CXX_STANDARD_REQUIRED ON)
2128

2229
add_executable(speculative_decoding_lm speculative_decoding_lm.cpp)
23-
target_compile_definitions(speculative_decoding_lm PRIVATE OPENVINO_TOKENIZERS_PATH=\"$<TARGET_FILE:openvino_tokenizers>\")
30+
target_compile_definitions(speculative_decoding_lm PRIVATE OPENVINO_TOKENIZERS_PATH="${OPENVINO_TOKENIZERS_PATH}")
2431
target_include_directories(speculative_decoding_lm PRIVATE ./)
2532
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
2633
target_link_libraries(speculative_decoding_lm PRIVATE openvino::runtime)
@@ -30,7 +37,7 @@ find_package(TBB REQUIRED COMPONENTS tbb)
3037
target_link_libraries(speculative_decoding_lm PRIVATE TBB::tbb)
3138

3239
add_executable(prompt_lookup_decoding_lm prompt_lookup_decoding_lm.cpp)
33-
target_compile_definitions(prompt_lookup_decoding_lm PRIVATE OPENVINO_TOKENIZERS_PATH=\"$<TARGET_FILE:openvino_tokenizers>\")
40+
target_compile_definitions(prompt_lookup_decoding_lm PRIVATE OPENVINO_TOKENIZERS_PATH="${OPENVINO_TOKENIZERS_PATH}")
3441
target_include_directories(prompt_lookup_decoding_lm PRIVATE ./)
3542
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
3643
target_link_libraries(prompt_lookup_decoding_lm PRIVATE openvino::runtime)
@@ -40,13 +47,13 @@ find_package(TBB REQUIRED COMPONENTS tbb)
4047
target_link_libraries(prompt_lookup_decoding_lm PRIVATE TBB::tbb)
4148

4249
add_executable(generate_sample generate_pipeline/generate_sample.cpp)
43-
target_link_libraries(generate_sample PRIVATE generate_pipeline_lib)
50+
target_link_libraries(generate_sample PRIVATE openvino::genai)
4451
target_include_directories(generate_sample PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
4552
set_target_properties(generate_sample PROPERTIES CXX_STANDARD 17)
4653
set_target_properties(generate_sample PROPERTIES CXX_STANDARD_REQUIRED ON)
4754

4855
add_executable(chat_sample generate_pipeline/chat_sample.cpp)
49-
target_link_libraries(chat_sample PRIVATE generate_pipeline_lib)
56+
target_link_libraries(chat_sample PRIVATE openvino::genai)
5057
target_include_directories(chat_sample PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
5158
set_target_properties(chat_sample PROPERTIES CXX_STANDARD 17)
5259
set_target_properties(chat_sample PROPERTIES CXX_STANDARD_REQUIRED ON)

0 commit comments

Comments
 (0)