Skip to content

Commit 13fc195

Browse files
committed
Merge branch 'gha/rid_vlm_samples' of https://github.com/mryzhov/openvino.genai into gha/rid_vlm_samples
2 parents 13e30ec + f3a5c0d commit 13fc195

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1387
-1401
lines changed

.github/workflows/genai-tools.yml

+24-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
python ./tools/llm_bench/benchmark.py -m ./ov_models/tiny-random-qwen2 --draft_model ./ov_models/tiny-random-qwen2-int8 -p "Why is the Sun yellow?" -d cpu --draft_device cpu -n 1 --num_assistant_tokens 5 -ic 20
104104
rm -rf ./tiny-random-qwen2
105105
rm -rf ./ov_models/
106-
- name: Create prompt file for for image generation
106+
- name: Create prompt file for image generation
107107
run: |
108108
prompt="side profile centered painted portrait, Gandhi rolling a blunt, Gloomhaven, matte painting concept art, art nouveau, 8K HD Resolution, beautifully background"
109109
json_template='{steps: $steps, width: $width, height: $height, guidance_scale: $guidance_scale, prompt: $prompt}'
@@ -113,13 +113,34 @@ jobs:
113113
run: |
114114
optimum-cli export openvino --model echarlaix/tiny-random-latent-consistency --trust-remote-code --weight-format fp16 ./ov_models/tiny-random-latent-consistency
115115
python ./tools/llm_bench/benchmark.py -m ./ov_models/tiny-random-latent-consistency/ -pf ./image_generation.jsonl -d cpu -n 1 --optimum --num_steps 4
116-
- name: Test echarlaix/tiny-random-latent-consistency with GenAI
116+
- name: Test echarlaix/tiny-random-latent-consistency with GenAI Text to Image
117117
run: python ./tools/llm_bench/benchmark.py -m ./ov_models/tiny-random-latent-consistency/ -pf ./image_generation.jsonl -d cpu -n 1 --num_steps 4
118118
- name: Test echarlaix/tiny-random-latent-consistency with GenAI and LoRA
119119
run: |
120120
huggingface-cli download katuni4ka/tiny-random-latent-consistency-lora --local-dir ./lora
121121
python ./tools/llm_bench/benchmark.py -m ./ov_models/tiny-random-latent-consistency/ -pf ./image_generation.jsonl -d cpu -n 1 --num_steps 4 --lora ./lora/tiny-random-latent-consistency-lora.safetensors --lora_alphas 0.7
122-
rm -rf ./ov_models/ ./lora ./image_generation.jsonl
122+
rm -rf ./lora ./image_generation.jsonl
123+
- name: Create prompt file for inpainting image generation
124+
run: |
125+
prompt="side profile centered painted portrait, Gandhi rolling a blunt, Gloomhaven, matte painting concept art, art nouveau, 8K HD Resolution, beautifully background"
126+
media="https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png"
127+
mask_image="https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png"
128+
json_template='{steps: $steps, width: $width, height: $height, guidance_scale: $guidance_scale, strength: $strength, prompt: $prompt, media: $media, mask_image: $mask_image}'
129+
jq -n -c --arg steps "30" --arg width "64" --arg height "128" --arg guidance_scale "1.0" --arg strength "0.8" --arg prompt "$prompt" --arg media "$media" --arg mask_image "$mask_image" "$json_template" > ./image_generation_inpainting.jsonl
130+
- name: Test echarlaix/tiny-random-latent-consistency Inpainting
131+
run: |
132+
python ./tools/llm_bench/benchmark.py -m ./ov_models/tiny-random-latent-consistency/ -pf ./image_generation_inpainting.jsonl -d cpu -n 1 --num_steps 4 --task inpainting
133+
rm -rf ./image_generation_inpainting.jsonl
134+
- name: Create prompt file for for image to image generation
135+
run: |
136+
prompt="cat wizard, gandalf, lord of the rings, detailed, fantasy, cute, adorable, Pixar, Disney, 8k"
137+
media="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
138+
json_template='{steps: $steps, width: $width, height: $height, guidance_scale: $guidance_scale, strength: $strength, prompt: $prompt, media: $media}'
139+
jq -n -c --arg steps "30" --arg width "64" --arg height "128" --arg guidance_scale "1.0" --arg strength "0.8" --arg prompt "$prompt" --arg media "$media" "$json_template" > ./image_generation_i2i.jsonl
140+
- name: Test echarlaix/tiny-random-latent-consistency Image to Image
141+
run: |
142+
python ./tools/llm_bench/benchmark.py -m ./ov_models/tiny-random-latent-consistency/ -pf ./image_generation_i2i.jsonl -d cpu -n 1 --num_steps 4 --task image-to-image
143+
rm -rf ./ov_models/ ./image_generation_i2i.jsonl
123144
- name: Test openai/whisper-tiny via Optimum
124145
run: |
125146
GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 --branch main --single-branch https://huggingface.co/datasets/facebook/multilingual_librispeech

.github/workflows/lcm_dreamshaper_cpp.yml

-232
This file was deleted.

.github/workflows/linux.yml

+4
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@ jobs:
336336
marker: 'vlm'
337337
cmd: 'tests/python_tests/samples'
338338
runner: 'aks-linux-8-cores-64gb'
339+
- name: 'Image generation'
340+
marker: 'image_generation'
341+
cmd: 'tests/python_tests/samples'
342+
runner: 'aks-linux-8-cores-64gb'
339343

340344
needs: [ openvino_download, genai_build_cmake, genai_build_wheel, genai_build_samples ]
341345
timeout-minutes: 60

0 commit comments

Comments
 (0)