Skip to content

Commit 5eb7011

Browse files
committed
Revert test to drop mac
1 parent eaaa971 commit 5eb7011

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

.github/workflows/causal_lm_cpp.yml

+35-30
Original file line numberDiff line numberDiff line change
@@ -681,42 +681,47 @@ jobs:
681681
diff pred2.txt ref.txt
682682
echo "Chat sample python" passed
683683
684-
visual_language_sample:
685-
strategy:
686-
fail-fast: false
687-
# Windows fails to compile Jinja2Cpp.
688-
matrix: {runs-on: [ubuntu-20.04-16-cores, macos-13]}
689-
runs-on: ${{ matrix.runs-on }}
684+
visual_chat_sample-ubuntu:
685+
runs-on: ubuntu-22.04-16-cores
686+
defaults:
687+
run:
688+
shell: bash
690689
steps:
691690
- uses: actions/checkout@v4
692-
with: {submodules: recursive}
691+
with:
692+
submodules: recursive
693693
- uses: actions/setup-python@v4
694-
with: {python-version: 3.12}
695-
- run: mkdir ./ov/
696-
- if: ${{ 'ubuntu-20.04-16-cores' == matrix.runs-on }}
697-
run: >
698-
curl ${{ env.l_ov_link }} | tar --directory ./ov/ --strip-components 1 -xz
699-
&& sudo ./ov/install_dependencies/install_openvino_dependencies.sh
700-
- if: ${{ 'macos-13' == matrix.runs-on }}
701-
run: >
702-
curl ${{ env.m_ov_link }} | tar --directory ./ov/ --strip-components 1 -xz
703-
&& brew install coreutils scons
704-
- run: OpenVINO_DIR=./ov/runtime/cmake/ cmake -DCMAKE_BUILD_TYPE=Release -B ./build/ ./
705-
- run: >
706-
LD_LIBRARY_PATH=${{ github.workspace }}/ov/runtime/3rdparty/tbb/lib/:$LD_LIBRARY_PATH
694+
with:
695+
python-version: 3.11
696+
- name: Install OpenVINO
697+
run: |
698+
mkdir ./ov/
699+
curl ${{ env.l_u22_ov_link }} | tar --directory ./ov/ --strip-components 1 -xz
700+
sudo ./ov/install_dependencies/install_openvino_dependencies.sh
701+
- name: Build app
702+
run: |
703+
source ./ov/setupvars.sh
704+
cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
707705
cmake --build ./build/ --config Release --target visual_language_chat -j
708-
- run: >
706+
- name: Download and convert and model
707+
run: |
709708
source ./ov/setupvars.sh
710-
&& python -m pip install --upgrade-strategy eager ./thirdparty/openvino_tokenizers/[transformers] -r ./samples/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
711-
- run: >
709+
python -m pip install --upgrade-strategy eager -r ./samples/requirements.txt --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
710+
python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
711+
python ./samples/cpp/visual_language_chat/export_MiniCPM-V-2_6.py ./miniCPM-V-2_6/
712+
wget https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/d5fbbd1a-d484-415c-88cb-9986625b7b11
713+
714+
- name: Run C++ chat sample
715+
run: |
712716
source ./ov/setupvars.sh
713-
&& python ./samples/cpp/visual_language_chat/export_MiniCPM-V-2_6.py ./miniCPM-V-2_6/
714-
- run: wget https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/d5fbbd1a-d484-415c-88cb-9986625b7b11 --output-document cat.jpg
715-
- run: >
717+
timeout --verbose 120s ./build/samples/cpp/visual_language_chat/visual_language_chat ./miniCPM-V-2_6/ cat.jpg <<< $'What is on the image?\nWhat is special on the image?'
718+
- name: Run Python chat sample
719+
run: |
716720
source ./ov/setupvars.sh
717-
&& ./build/samples/cpp/visual_language_chat/visual_language_chat ./miniCPM-V-2_6/ cat.jpg
718-
<<< $'What is on the image?\nWhat is special on the image?'
719-
timeout-minutes: 110
721+
export PYTHONPATH=./build/:$PYTHONPATH
722+
printf 'What is on the image?\nWhat is special on the image?\n' > ./input.txt
723+
timeout 120s python ./samples/python/vlm_chat_sample/vlm_chat_sample.py ./miniCPM-V-2_6/ d5fbbd1a-d484-415c-88cb-9986625b7b11 < input.txt > ./pred.txt || ( [[ $? -eq 124 ]] && \
724+
echo "Timeout reached, but it's excpected." )
720725
721726
cpp-continuous-batching-ubuntu:
722727
runs-on: ubuntu-20.04-8-cores
@@ -860,7 +865,7 @@ jobs:
860865
cpp-beam_search_causal_lm-Qwen-7B-Chat, cpp-beam_search_causal_lm-Qwen1_5-7B-Chat, cpp-beam_search_causal_lm-Phi-2,
861866
cpp-beam_search_causal_lm-notus-7b-v1, cpp-speculative_decoding_lm-ubuntu, cpp-prompt_lookup_decoding_lm-ubuntu,
862867
cpp-Phi-1_5, cpp-greedy_causal_lm-redpajama-3b-chat, cpp-chat_sample-ubuntu, cpp-continuous-batching-ubuntu,
863-
visual_language_sample,
868+
visual_language_sample-ubuntu,
864869
cpp-continuous-batching-windows, cpp-continuous-batching-macos]
865870
if: ${{ always() }}
866871
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)