Skip to content

Commit 6a9be8b

Browse files
authored
Merge branch 'master' into b_whisper_unification
2 parents 8f0820a + 294be89 commit 6a9be8b

File tree

93 files changed

+4003
-1298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+4003
-1298
lines changed

.github/dependency_review.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
fail-on-severity: 'low'
1+
fail-on-severity: "low"
22
allow-licenses:
3-
- 'BSD-2-Clause'
4-
- 'BSD-3-Clause'
5-
- 'MIT'
6-
- 'Apache-2.0'
7-
- 'ISC'
8-
- 'BlueOak-1.0.0'
9-
- '0BSD'
10-
- 'Python-2.0'
11-
- 'MIT-CMU' # Pillow's license
3+
- "BSD-2-Clause"
4+
- "BSD-3-Clause"
5+
- "MIT"
6+
- "Apache-2.0"
7+
- "ISC"
8+
- "BlueOak-1.0.0"
9+
- "0BSD"
10+
- "Python-2.0"
11+
- "MIT-CMU" # Pillow's license
1212
fail-on-scopes:
13-
- 'runtime'
14-
- 'development'
15-
- 'unknown'
13+
- "runtime"
14+
- "development"
15+
- "unknown"
1616
license-check: true
1717
vulnerability-check: true
18+
allow-dependencies-licenses:
19+
- "pkg:npm/thingies" # Docs site (dependency of dependency)

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
- 'src/cpp/src/gguf_utils/**/*'
171171

172172
'category: Structured Output samples':
173+
- 'samples/cpp/text_generation/structured_output_generation'
173174
- 'samples/python/text_generation/structured_output_generation.py'
174175
- 'tests/python_tests/samples/test_structured_output_sample.py'
175176

.github/workflows/linux.yml

Lines changed: 46 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,39 @@ jobs:
164164
- name: CMake Build
165165
run: |
166166
source ${{ env.OV_INSTALL_DIR }}/setupvars.sh
167+
167168
cmake -DOpenVINODeveloperPackage_DIR=${{ env.OV_INSTALL_DIR }}/developer_package/cmake \
168-
-DENABLE_PYTHON=ON \
169+
-DENABLE_PYTHON=OFF \
169170
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
170-
-S ${{ env.SRC_DIR}} \
171+
-S ${{ env.SRC_DIR }} \
171172
-B ${{ env.BUILD_DIR }}
172-
cmake --build ${{ env.BUILD_DIR}} --config ${{ matrix.build-type }} --parallel $(nproc) --verbose
173-
cmake --install ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --prefix ${{ env.INSTALL_DIR }}
173+
cmake --build ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --parallel $(nproc) --verbose
174+
175+
# Need to remove the default Python 3.11 in /venv from the Path so that CMake uses the correct one from newly created venv$py_version
176+
export PATH=${PATH/:\/venv\/bin/}
177+
178+
for py_version in "3.9" "3.10" "3.11" "3.12" "3.13"
179+
do
180+
rm -rf ${{ env.BUILD_DIR }}/CMakeCache.txt
181+
182+
echo "Creating venv for python$py_version"
183+
python$py_version -m venv venv$py_version
184+
source venv$py_version/bin/activate
185+
echo "PATH: $PATH"
186+
187+
echo "Configuring cmake for python$py_version"
188+
cmake -DOpenVINODeveloperPackage_DIR=${{ env.OV_INSTALL_DIR }}/developer_package/cmake \
189+
-DENABLE_PYTHON=ON \
190+
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
191+
-S ${{ env.SRC_DIR }} \
192+
-B ${{ env.BUILD_DIR }}
193+
echo "Configuring cmake done for python$py_version"
194+
195+
cmake --build ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --parallel $(nproc) --verbose
196+
cmake --install ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --prefix ${{ env.INSTALL_DIR }}
197+
deactivate
198+
done
199+
174200
cmake --install ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --prefix ${{ env.INSTALL_TOOLS_DIR }} --component tools_bin
175201
cmake --install ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --prefix ${{ env.INSTALL_TESTS_DIR }} --component tests
176202
@@ -213,7 +239,7 @@ jobs:
213239
genai_build_wheel:
214240
name: Build Wheel
215241
needs: [ openvino_download ]
216-
timeout-minutes: 45
242+
timeout-minutes: 90
217243
defaults:
218244
run:
219245
shell: bash
@@ -265,18 +291,22 @@ jobs:
265291
${{ env.SRC_DIR }}/thirdparty/openvino_tokenizers
266292
working-directory: ${{ env.OV_INSTALL_DIR }}
267293

268-
- name: Build GenAI Wheel
269-
run: |
270-
python -m pip wheel -v --no-deps --wheel-dir ${{ env.WHEELS_DIR }} \
271-
--config-settings=override=cross.arch="manylinux_2_31_x86_64" \
272-
${{ needs.openvino_download.outputs.ov_wheel_source }} \
273-
${{ env.SRC_DIR }}
274-
working-directory: ${{ env.OV_INSTALL_DIR }}
275-
276294
- name: Build WWB Wheel
277295
run: python -m pip wheel -v --no-deps --wheel-dir ${{ env.WHEELS_DIR }} ${{ env.SRC_DIR }}/tools/who_what_benchmark
278296
working-directory: ${{ env.OV_INSTALL_DIR }}
279-
297+
298+
- name: Build GenAI Wheel
299+
run: |
300+
for py_version in "3.9" "3.10" "3.11" "3.12" "3.13"
301+
do
302+
python_exec_path=$(python$py_version -c "import sys; print(sys.executable)")
303+
$python_exec_path -m pip wheel -v --no-deps --wheel-dir ${{ env.WHEELS_DIR }} \
304+
--config-settings=override=cross.arch="manylinux_2_31_x86_64" \
305+
${{ needs.openvino_download.outputs.ov_wheel_source }} \
306+
${{ env.SRC_DIR }}
307+
done
308+
working-directory: ${{ env.OV_INSTALL_DIR }}
309+
280310
- name: Upload Wheels
281311
if: ${{ always() }}
282312
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -482,7 +512,7 @@ jobs:
482512
- name: 'Cacheopt E2E'
483513
cmd: 'tests/python_tests/test_kv_cache_eviction.py'
484514
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).continuous_batching.test }}
485-
timeout: 60
515+
timeout: 180
486516
- name: 'LLM & VLM'
487517
cmd: 'tests/python_tests/test_llm_pipeline.py tests/python_tests/test_llm_pipeline_static.py tests/python_tests/test_vlm_pipeline.py tests/python_tests/test_structured_output.py'
488518
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).visual_language.test || fromJSON(needs.smart_ci.outputs.affected_components).LLM.test }}
@@ -891,8 +921,7 @@ jobs:
891921
PYTHONPATH: "${{ env.BUILD_DIR }}:"
892922
run: |
893923
source ${{ env.OV_INSTALL_DIR }}/setupvars.sh
894-
python3 -m pytest -v ${{ env.SRC_DIR }}/tests/python_tests/test_llm_pipeline.py
895-
# python3 -m pytest -v ${{ env.SRC_DIR }}/tests/python_tests/test_structured_output.py
924+
python3 -m pytest -v ${{ env.SRC_DIR }}/tests/python_tests/test_llm_pipeline.py -k "not test_perf_metrics_with_structured_output"
896925
897926
Overall_Status:
898927
name: ci/gha_overall_status_linux

.github/workflows/mac.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
genai_build_wheel:
211211
name: Build Wheel
212212
needs: [ openvino_download ]
213-
timeout-minutes: 45
213+
timeout-minutes: 90
214214
defaults:
215215
run:
216216
shell: bash
@@ -426,11 +426,11 @@ jobs:
426426
# TODO: skip some tests temporary untill https://github.com/huggingface/datasets/issues/7647 dataset is fixed
427427
cmd: 'tests/python_tests/test_whisper_pipeline.py -k "not test_smoke[sample_from_dataset0 and not test_whisper_constructors[sample_from_dataset0 and not test_max_new_tokens[sample_from_dataset0 and not test_language_mode[language and not test_task_mode[sample_from_dataset0 and not test_language_autodetect[sample_from_dataset0 and not test_whisper_config_constructor and not test_language_autodetect[sample_from_dataset1 and not test_language_autodetect[sample_from_dataset2 and not test_initial_prompt_hotwords[sample_from_dataset0 and not test_random_sampling[sample_from_dataset0"'
428428
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).whisper.test }}
429-
timeout: 45
429+
timeout: 120
430430
- name: 'Cacheopt E2E'
431431
cmd: 'tests/python_tests/test_kv_cache_eviction.py'
432432
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).continuous_batching.test }}
433-
timeout: 60
433+
timeout: 180
434434
- name: 'LLM & VLM'
435435
cmd: 'tests/python_tests/test_llm_pipeline.py tests/python_tests/test_llm_pipeline_static.py tests/python_tests/test_vlm_pipeline.py tests/python_tests/test_structured_output.py'
436436
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).visual_language.test || fromJSON(needs.smart_ci.outputs.affected_components).LLM.test }}
@@ -523,7 +523,7 @@ jobs:
523523
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).Speech_generation_samples.test }}
524524

525525
needs: [ smart_ci, openvino_download, genai_build_cmake, genai_build_wheel, genai_build_samples, genai_build_nodejs ]
526-
timeout-minutes: 45
526+
timeout-minutes: 120
527527
defaults:
528528
run:
529529
shell: bash

0 commit comments

Comments
 (0)