From 72a106475070509d7fa74f88fb53f20426cab0b6 Mon Sep 17 00:00:00 2001 From: Pavel Esir Date: Wed, 22 May 2024 13:38:26 +0200 Subject: [PATCH] install openvino_tokenizers for genai_python_lib --- .github/workflows/genai_python_lib.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/genai_python_lib.yml b/.github/workflows/genai_python_lib.yml index 58e78d3b36..a291aed4ba 100644 --- a/.github/workflows/genai_python_lib.yml +++ b/.github/workflows/genai_python_lib.yml @@ -16,14 +16,14 @@ jobs: - run: source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/ - run: source ./ov/setupvars.sh && cmake --build ./build/ --config Release -j - 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 + - run: source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] - run: PYTHONPATH=./src/python/ python -c "from openvino_genai import LLMPipeline" - run: source ./ov/setupvars.sh && python -m pip install --pre . --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly - - run: source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] - run: python -c "from openvino_genai import LLMPipeline" - name: GenAI Python API tests run: | source ./ov/setupvars.sh - cd ./tests/ + cd ./tests/python_tests/ python -m pip install -r requirements.txt models=$(python3 generate_models.py) echo "$models" | while read -r model_name model_path; do @@ -51,4 +51,5 @@ jobs: - run: python -m pip install "numpy<1.27" - run: set "PYTHONPATH=./src/python;" && call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -c "from openvino_genai import LLMPipeline" # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that. - run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install . + - run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] - run: python -c "from openvino_genai import LLMPipeline"