Skip to content

Commit e7db7e8

Browse files
committed
update
1 parent fc5b753 commit e7db7e8

File tree

5 files changed

+410
-1157
lines changed

5 files changed

+410
-1157
lines changed

.github/workflows/genai_lib.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: genai_lib
22
on: pull_request
33
jobs:
4-
genai_lib:
4+
genai_lib_ubuntu:
55
runs-on: ubuntu-20.04
66
steps:
77
- uses: actions/checkout@v4
@@ -15,6 +15,20 @@ jobs:
1515
mkdir ./ov/
1616
curl https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.1.0-14645-e6dc0865128/l_openvino_toolkit_ubuntu20_2024.1.0.dev20240304_x86_64.tgz | tar --directory ./ov/ --strip-components 1 -xz
1717
sudo ./ov/install_dependencies/install_openvino_dependencies.sh
18-
- run: python -m pip install scikit-build
1918
- run: source ./ov/setupvars.sh && python -m pip install .
2019
- run: python -c "from openvino.genai.py_generate_pipeline import LLMPipeline"
20+
21+
genai_lib_windows:
22+
runs-on: windows-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
27+
- uses: actions/setup-python@v4
28+
with:
29+
python-version: 3.8
30+
- 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
31+
- run: unzip ov.zip
32+
- run: call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64\setupvars.bat && python -m pip install .
33+
shell: cmd
34+
- run: python -c "from openvino.genai.py_generate_pipeline import LLMPipeline"

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ classifiers = [
1616
"Programming Language :: Python :: 3.12",
1717
]
1818
dependencies = [
19-
"openvino_tokenizers==2024.1.0.0"
19+
"openvino_tokenizers~=2024.1.0.0"
2020
]
2121

2222
[tool.scikit-build]
@@ -27,6 +27,7 @@ install.components = ["genai", "genai_python"]
2727
sdist.cmake = true
2828
wheel.packages = ["src/python/openvino"]
2929
wheel.install-dir = "openvino/genai"
30+
wheel.build-tag = "000"
3031
wheel.py-api = ""
3132
wheel.license-files = ["LICENSE", "SECURITY.md", "third-party-programs.txt"]
3233

@@ -37,5 +38,5 @@ __version__ = "${version}"
3738
'''
3839

3940
[build-system]
40-
requires = ["scikit-build-core>=0.8.0"]
41+
requires = ["scikit-build-core~=0.8.0"] # See https://github.com/openvinotoolkit/openvino_tokenizers/pull/123
4142
build-backend = "scikit_build_core.build"

src/python/CMakeLists.txt

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

1818
pybind11_add_module(py_generate_pipeline py_generate_pipeline.cpp)
19-
target_compile_features(py_generate_pipeline PUBLIC cxx_std_17)
2019
target_link_libraries(py_generate_pipeline PRIVATE generate_pipeline_lib)
2120
install(TARGETS py_generate_pipeline LIBRARY DESTINATION . COMPONENT genai_python)

src/python/openvino/genai/__init__.py

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

44
import openvino # add_dll_directory for openvino lib
55
import os
6+
from .__version__ import __version__
7+
68

79
if hasattr(os, "add_dll_directory"):
810
os.add_dll_directory(os.path.dirname(__file__))

0 commit comments

Comments
 (0)