Skip to content

Commit

Permalink
Update OV version in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
as-suvorov committed Apr 8, 2024
1 parent 5ef19f2 commit cf6e7b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lcm_dreamshaper_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Initialize OpenVINO
run: |
mkdir openvino
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 ./openvino/ --strip-components 1 -xz
curl https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.1.0-14992-621b025bef4/l_openvino_toolkit_ubuntu20_2024.1.0.dev20240405_x86_64.tgz | tar --directory ./openvino/ --strip-components 1 -xz
sudo ./openvino/install_dependencies/install_openvino_dependencies.sh
- name: Download / convert a model / tokenizer
run: |
Expand Down Expand Up @@ -55,26 +55,26 @@ jobs:
- name: Initialize OpenVINO
shell: cmd
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
curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.1.0-14992-621b025bef4/w_openvino_toolkit_windows_2024.1.0.dev20240405_x86_64.zip
unzip ov.zip
- name: Download / convert a model / tokenizer
shell: cmd
run: |
call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64/setupvars.bat
call w_openvino_toolkit_windows_2024.1.0.dev20240405_x86_64/setupvars.bat
cd ./image_generation/lcm_dreamshaper_v7/cpp/scripts/
python -m pip install -r ./requirements.txt
python -m pip install ../../../../thirdparty/openvino_tokenizers/
python convert_model.py -lcm "SimianLuo/LCM_Dreamshaper_v7" -t "FP16"
- name: Build app
shell: cmd
run: |
call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64/setupvars.bat
call w_openvino_toolkit_windows_2024.1.0.dev20240405_x86_64/setupvars.bat
cd ./image_generation/lcm_dreamshaper_v7/cpp/
cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
cmake --build ./build/ --config Release --parallel
- name: Run app
shell: cmd
run: |
call w_openvino_toolkit_windows_2024.1.0.dev20240304_x86_64/setupvars.bat
call w_openvino_toolkit_windows_2024.1.0.dev20240405_x86_64/setupvars.bat
cd ./image_generation/lcm_dreamshaper_v7/cpp/build/
call "./Release/lcm_dreamshaper.exe"
6 changes: 3 additions & 3 deletions .github/workflows/stable_diffusion_1_5_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install OpenVINO and other conda dependencies
run: |
conda activate openvino_sd_cpp
conda install -c conda-forge openvino c-compiler cxx-compiler make cmake
conda install -c conda-forge openvino-nightly c-compiler cxx-compiler make cmake
conda env config vars set LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
- name: Install python dependencies
Expand All @@ -53,7 +53,7 @@ jobs:
run: |
conda activate openvino_sd_cpp
export MODEL_PATH="models/stable_diffusion_v1_5_ov/FP16"
optimum-cli export openvino --model runwayml/stable-diffusion-v1-5 --task stable-diffusion --convert-tokenizer --weight-format fp16 $MODEL_PATH
optimum-cli export openvino-nightly --model runwayml/stable-diffusion-v1-5 --task stable-diffusion --convert-tokenizer --weight-format fp16 $MODEL_PATH
convert_tokenizer $MODEL_PATH/tokenizer/ --tokenizer-output-type i32 -o $MODEL_PATH/tokenizer/
- name: Build app
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Install OpenVINO and other conda dependencies
run: |
conda activate openvino_sd_cpp
conda install -c conda-forge openvino c-compiler cxx-compiler make cmake
conda install -c conda-forge openvino-nightly c-compiler cxx-compiler make cmake
- name: Install python dependencies
working-directory: ${{ env.working_directory }}
Expand Down

0 comments on commit cf6e7b8

Please sign in to comment.