Skip to content

Commit

Permalink
Ubuntu-22
Browse files Browse the repository at this point in the history
  • Loading branch information
Wovchena committed May 27, 2024
1 parent 4adaa33 commit 0d7f893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/genai_python_lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: genai_python_lib
on: pull_request
jobs:
ubuntu_genai_python_lib:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
# A tokenizer's dependency fails to compile with Ninja in CenOS7 env
CMAKE_GENERATOR: Unix Makefiles
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stable_diffusion_1_5_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,27 @@ jobs:
run: |
conda activate openvino_sd_cpp
conda install -c conda-forge -c conda-forge/label/openvino_dev openvino==2024.2.0.dev20240513 c-compiler cxx-compiler git make cmake
- name: Install python dependencies
working-directory: ${{ env.working_directory }}
run: |
conda activate openvino_sd_cpp
python -m pip install ../../../thirdparty/openvino_tokenizers/[transformers]
python -m pip install -r requirements.txt
- name: Download and convert model and tokenizer
working-directory: ${{ env.working_directory }}
run: |
conda activate openvino_sd_cpp
optimum-cli export openvino --model runwayml/stable-diffusion-v1-5 --task stable-diffusion --weight-format fp16 models/stable_diffusion_v1_5_ov/FP16
- name: Build app
working-directory: ${{ env.working_directory }}
run: |
conda activate openvino_sd_cpp
cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
cmake --build ./build/ --config Release --parallel
- name: Run app
working-directory: ${{ env.working_directory }}
run: '& "./build/Release/stable_diffusion.exe" -m ./models/stable_diffusion_v1_5_ov -t FP16 --dynamic'

0 comments on commit 0d7f893

Please sign in to comment.