Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Wovchena committed Jan 22, 2024
1 parent eca1796 commit ec58789
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 120 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/lcm_dreamshaper_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,27 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: ./image_generation/lcm_dreamshaper_v7/cpp/set_up_and_run.sh
- name: Initialize OpenVINO / libeigen3-dev
run: |
curl https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.0.0-14004-a240ae8fadd/l_openvino_toolkit_ubuntu20_2024.0.0.dev20240116_x86_64.tgz | tar --directory ./openvino/ --strip-components 1 -xz
sudo ./openvino/install_dependencies/install_openvino_dependencies.sh
sudo apt install libeigen3-dev
- name: Download / convert a model / tokenizer
run: |
source ./openvino/setupvars.sh
cd ./image_generation/lcm_dreamshaper_v7/cpp/scripts/
python -m pip install -U pip
python -m pip install -r ./requirements.txt
python -m pip install ../../../../thirdparty/openvino_contrib/modules/custom_operations/
python convert_model.py -lcm "SimianLuo/LCM_Dreamshaper_v7" -t "FP16"
- name: Build app
run: |
source ./openvino/setupvars.sh
cd ./image_generation/lcm_dreamshaper_v7/cpp/
cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
cmake --build ./build/ --config Release --parallel
- name: Run app
run: |
source ./openvino/setupvars.sh
cd ./image_generation/lcm_dreamshaper_v7/cpp/build/
./lcm_dreamshaper
4 changes: 3 additions & 1 deletion .github/workflows/llm_bench-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:
python ./llm_bench/python/convert.py --model_id bigscience/bloomz-560m --output_dir ./ov_models/bloomz-560m --precision FP16
python ./llm_bench/python/benchmark.py -m ./ov_models/bloomz-560m/pytorch/dldt/FP16/ -d cpu -n 1
- name: Test tiny-stable-diffusion on Linux
run: llm_bench/python/llm_run_stable_diffusion_on_linux.sh
run: |
python ./llm_bench/python/convert.py --model_id segmind/tiny-sd --output_dir ./ov_models/tiny-sd --precision FP16
python ./llm_bench/python/benchmark.py -m ./ov_models/tiny-sd/pytorch/dldt/FP16/ -pf ./llm_bench/python/prompts/stable-diffusion.jsonl -d cpu -n 1
stateful:
runs-on: ubuntu-20.04
steps:
Expand Down
38 changes: 0 additions & 38 deletions image_generation/lcm_dreamshaper_v7/cpp/set_up_and_run.sh

This file was deleted.

40 changes: 0 additions & 40 deletions llm_bench/python/llm_run_bloomz_560m_on_linux.sh

This file was deleted.

40 changes: 0 additions & 40 deletions llm_bench/python/llm_run_stable_diffusion_on_linux.sh

This file was deleted.

0 comments on commit ec58789

Please sign in to comment.