@@ -19,19 +19,21 @@ jobs:
19
19
with :
20
20
python-version : 3.8
21
21
- run : mkdir ./ov/
22
- - run : curl https://storage.openvinotoolkit.org/repositories/openvino/packages/pre-release/2024.2.0rc1 /linux/l_openvino_toolkit_ubuntu20_2024.2.0.dev20240524_x86_64 .tgz | tar --directory ./ov/ --strip-components 1 -xz
22
+ - run : curl https://storage.openvinotoolkit.org/repositories/openvino/packages/pre-release/2024.2.0rc2 /linux/l_openvino_toolkit_ubuntu20_2024.2.0.dev20240529_x86_64 .tgz | tar --directory ./ov/ --strip-components 1 -xz
23
23
- run : sudo ./ov/install_dependencies/install_openvino_dependencies.sh
24
24
- run : source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ -B ./build/
25
25
- run : source ./ov/setupvars.sh && cmake --build ./build/ --config ${{ matrix.build-type }} --target package -j
26
+ - run : source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release
27
+ - run : source ./ov/setupvars.sh && python -m pip install --upgrade-strategy eager -r ./samples/requirements.txt
28
+ - run : source ./ov/setupvars.sh && optimum-cli export openvino --trust-remote-code --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 TinyLlama-1.1B-Chat-v1.0
26
29
- run : source ./ov/setupvars.sh && cmake --install ./build/ --config ${{ matrix.build-type }} --prefix ov
27
30
- run : ov/samples/cpp/build_samples.sh -i ${{ github.workspace }}/s\ pace
28
31
if : ${{ 'Release' == matrix.build-type }} # build_samples enforces Release build
29
32
- run : source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ov/samples/cpp/ -B ./samples\ build/ && cmake --build ./samples\ build/ --config ${{ matrix.build-type }} -j && cmake --install ./samples\ build/ --config ${{ matrix.build-type }} --component samples_bin --prefix s\ pace
30
33
if : ${{ 'Release' != matrix.build-type }}
31
- - run : source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release
32
- - run : source ./ov/setupvars.sh && python -m pip install --upgrade-strategy eager -r ./samples/cpp/requirements.txt
33
- - 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
34
- - run : source ./ov/setupvars.sh && timeout 50s ${{ github.workspace }}/s\ pace/samples_bin/greedy_causal_lm ./TinyLlama-1.1B-Chat-v1.0/ ""
34
+ - run : source ./ov/setupvars.sh && timeout 25s ${{ github.workspace }}/s\ pace/samples_bin/greedy_causal_lm ./TinyLlama-1.1B-Chat-v1.0/ ""
35
+ - run : source ./ov/setupvars.sh && timeout 25s ./ov/samples/python/multinomial_causal_lm/multinomial_causal_lm.py ./TinyLlama-1.1B-Chat-v1.0/ 0
36
+ if : ${{ 'Release' == matrix.build-type }} # Python bindings can be built in Release only
35
37
36
38
macos_genai_package :
37
39
strategy :
@@ -50,19 +52,24 @@ jobs:
50
52
- run : brew install coreutils scons
51
53
- run : source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ -B ./build/
52
54
- run : source ./ov/setupvars.sh && cmake --build ./build/ --config ${{ matrix.build-type }} --target package -j
55
+ - run : source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release
56
+ - run : source ./ov/setupvars.sh && python -m pip install --upgrade-strategy eager -r ./samples/requirements.txt
57
+ - run : source ./ov/setupvars.sh && optimum-cli export openvino --trust-remote-code --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 TinyLlama-1.1B-Chat-v1.0
53
58
- run : source ./ov/setupvars.sh && cmake --install ./build/ --config ${{ matrix.build-type }} --prefix ov
54
59
- run : ov/samples/cpp/build_samples.sh -i ${{ github.workspace }}/s\ pace
55
60
if : ${{ 'Release' == matrix.build-type }} # build_samples enforces Release build
56
- - run : source ./ov/setupvars.sh && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release
57
- if : ${{ 'Release' == matrix.build-type }}
58
- - run : source ./ov/setupvars.sh && python -m pip install --upgrade-strategy eager -r ./samples/cpp/requirements.txt
59
- if : ${{ 'Release' == matrix.build-type }}
60
- - 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
61
- if : ${{ 'Release' == matrix.build-type }}
62
- - run : source ./ov/setupvars.sh && timeout 50s ${{ github.workspace }}/s\ pace/samples_bin/greedy_causal_lm ./TinyLlama-1.1B-Chat-v1.0/ ""
63
- if : ${{ 'Release' == matrix.build-type }}
61
+ - run : >
62
+ source ./ov/setupvars.sh
63
+ && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ov/samples/cpp/ -B ./samples\ build/
64
+ && cmake --build ./samples\ build/ --config ${{ matrix.build-type }} -j
65
+ && cmake --install ./samples\ build/ --config ${{ matrix.build-type }} --component samples_bin --prefix s\ pace
66
+ if: ${{ 'Release' != matrix.build-type }}
67
+ - run : source ./ov/setupvars.sh && timeout 25s ${{ github.workspace }}/s\ pace/samples_bin/greedy_causal_lm ./TinyLlama-1.1B-Chat-v1.0/ ""
68
+ - run : source ./ov/setupvars.sh && timeout 25s ./ov/samples/python/multinomial_causal_lm/multinomial_causal_lm.py ./TinyLlama-1.1B-Chat-v1.0/ 0
69
+ if : ${{ 'Release' == matrix.build-type }} # Python bindings can be built in Release only
64
70
65
71
windows_genai_package :
72
+ if : false
66
73
strategy :
67
74
matrix :
68
75
build-type : [Release, Debug]
@@ -79,20 +86,24 @@ jobs:
79
86
- uses : actions/setup-python@v4
80
87
with :
81
88
python-version : 3.8
82
- - run : curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/pre-release/2024.2.0rc1 /windows/w_openvino_toolkit_windows_2024.2.0.dev20240524_x86_64 .zip
89
+ - run : curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/pre-release/2024.2.0rc2 /windows/w_openvino_toolkit_windows_2024.2.0.dev20240529_x86_64 .zip
83
90
- run : unzip ov.zip
84
91
# Shorten the next setupvars calls.
85
- - run : mklink /D ov w_openvino_toolkit_windows_2024.2.0.dev20240524_x86_64
92
+ - run : mklink /D ov w_openvino_toolkit_windows_2024.2.0.dev20240529_x86_64
86
93
- run : call ov\setupvars.bat && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ -B ./build/
87
94
- run : call ov\setupvars.bat && cmake --build ./build/ --config ${{ matrix.build-type }} --target package -j
88
- - run : call ov\setupvars.bat && cmake --install ./build/ --config ${{ matrix.build-type }} --prefix ov
89
- - run : call ov\samples\cpp\build_samples_msvc.bat -i "${{ github.workspace }}/samples_install"
90
- if : ${{ false && 'Release' == matrix.build-type }} # build_samples enforces Release build
91
95
- run : call ov\setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release
92
- if : ${{ false && 'Release' == matrix.build-type }}
93
- - run : call ov\setupvars.bat && python -m pip install --upgrade-strategy eager -r ./samples/cpp/requirements.txt
94
- if : ${{ false && 'Release' == matrix.build-type }}
96
+ - run : call ov\setupvars.bat && python -m pip install --upgrade-strategy eager -r ./samples/requirements.txt
95
97
- run : call ov\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
96
- if : ${{ false && 'Release' == matrix.build-type }}
98
+ - run : call ov\setupvars.bat && cmake --install ./build/ --config ${{ matrix.build-type }} --prefix ov
99
+ - run : call ov\samples\cpp\build_samples_msvc.bat -i "${{ github.workspace }}/samples_install"
100
+ if : ${{ 'Release' == matrix.build-type }} # build_samples enforces Release build
101
+ - run : >
102
+ call ov\setupvars.bat
103
+ && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ov/samples/cpp/ -B "samples build"
104
+ && cmake --build "samples build" --config ${{ matrix.build-type }} -j
105
+ && cmake --install "samples build" --config ${{ matrix.build-type }} --component samples_bin --prefix samples_install
106
+ if: ${{ 'Release' != matrix.build-type }}
97
107
- run : call ov\setupvars.bat && "${{ github.workspace }}/samples_install/samples_bin/greedy_causal_lm" .\TinyLlama-1.1B-Chat-v1.0\ ""
98
- if : ${{ false && 'Release' == matrix.build-type }}
108
+ - run : call ov\setupvars.bat && ./ov/samples/python/multinomial_causal_lm/multinomial_causal_lm.py ./TinyLlama-1.1B-Chat-v1.0/ 0
109
+ if : ${{ 'Release' == matrix.build-type }} # Python bindings can be built in Release only
0 commit comments