@@ -103,7 +103,7 @@ jobs:
103
103
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
104
104
rm -rf ./tiny-random-qwen2
105
105
rm -rf ./ov_models/
106
- - name : Create prompt file for for image generation
106
+ - name : Create prompt file for image generation
107
107
run : |
108
108
prompt="side profile centered painted portrait, Gandhi rolling a blunt, Gloomhaven, matte painting concept art, art nouveau, 8K HD Resolution, beautifully background"
109
109
json_template='{steps: $steps, width: $width, height: $height, guidance_scale: $guidance_scale, prompt: $prompt}'
@@ -113,13 +113,34 @@ jobs:
113
113
run : |
114
114
optimum-cli export openvino --model echarlaix/tiny-random-latent-consistency --trust-remote-code --weight-format fp16 ./ov_models/tiny-random-latent-consistency
115
115
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
117
117
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
118
118
- name : Test echarlaix/tiny-random-latent-consistency with GenAI and LoRA
119
119
run : |
120
120
huggingface-cli download katuni4ka/tiny-random-latent-consistency-lora --local-dir ./lora
121
121
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
123
144
- name : Test openai/whisper-tiny via Optimum
124
145
run : |
125
146
GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 --branch main --single-branch https://huggingface.co/datasets/facebook/multilingual_librispeech
0 commit comments