Skip to content

Commit

Permalink
Build GenAI via OpenVINO wheel (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Dec 3, 2024
1 parent 65446e0 commit e44b6f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ jobs:
- name: Test bindings (wheel)
run: |
. "${{ env.OV_INSTALL_DIR }}/setupvars.ps1"
python -m pip install . --verbose
python -m pip install . --verbose --find-links ${env:OV_INSTALL_DIR}/wheels
python -m pytest -v ./tests/python_tests/ --ignore ./tests/python_tests/test_whisper_generate_api.py --ignore ./tests/python_tests/test_vlm_api.py -k "not test_set_chat_template"
genai_python_lib_whisper:
Expand Down Expand Up @@ -307,7 +307,7 @@ jobs:
- name: Test bindings (wheel)
run: |
. "${{ env.OV_INSTALL_DIR }}/setupvars.ps1"
python -m pip install . --verbose
python -m pip install . --verbose --find-links ${env:OV_INSTALL_DIR}/wheels
python -m pytest -v ./tests/python_tests/test_whisper_generate_api.py -k "not test_smoke"
genai_python_lib_vlm:
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ find_package(OpenVINODeveloperPackage ${OpenVINOGenAI_VERSION} QUIET
PATHS "${OpenVINO_DIR}")
if(NOT OpenVINODeveloperPackage_FOUND)
find_package(OpenVINO ${OpenVINOGenAI_VERSION} REQUIRED
COMPONENTS Runtime Threading)
COMPONENTS Runtime Threading
PATHS "${OpenVINO_DIR_PY}")
endif()

include(cmake/features.cmake)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ options = {"BUILD_TOKENIZERS" = "OFF"}

[build-system]
requires = [
"py-build-cmake==0.3.0",
"openvino~=2025.0.0.0.dev",
"py-build-cmake==0.3.1",
"pybind11-stubgen==2.5.1",
"openvino~=2024.5.0.0.dev",
"cmake~=3.23.0"
]
build-backend = "py_build_cmake.build"
Expand Down

0 comments on commit e44b6f3

Please sign in to comment.