Flux.1#1331
Flux.1#1331KimBioInfoStudio wants to merge 33 commits intohuggingface:mainfrom KimBioInfoStudio:kim/flux
Conversation
|
lazy mode w/o graph python text_to_image_generation.py \
--model_name_or_path black-forest-labs/FLUX.1-schnell \
--prompts "A cat holding a sign that says hello world" \
--num_images_per_prompt 1 \
--batch_size 1 \
--num_inference_steps 28 \
--image_save_dir /tmp/flux_1_images \
--scheduler flow_match_euler_discrete\
--use_habana \
--gaudi_config Habana/stable-diffusion \
--bf16got output as following: |
Signed-off-by: Daniel Socek <daniel.socek@intel.com>
Signed-off-by: Daniel Socek <daniel.socek@intel.com> Co-authored-by: Deepak Narayana <deepak.narayana@intel.com>
|
graph mode: python text_to_image_generation.py \
--model_name_or_path black-forest-labs/FLUX.1-schnell \
--prompts "A cat holding a sign that says hello world" \
--num_images_per_prompt 1 \
--batch_size 1 \
--num_inference_steps 28 \
--image_save_dir /tmp/flux_1_images \
--scheduler flow_match_euler_discrete\
--use_habana \
--use_hpu_graphs \
--gaudi_config Habana/stable-diffusion \
--bf16output: python text_to_image_generation.py \
--model_name_or_path black-forest-labs/FLUX.1-schnell \
--prompts "A cat holding a sign that says hello world" \
--num_images_per_prompt 1 \
--batch_size 1 \
--num_inference_steps 4 \
--image_save_dir /tmp/flux_1_images \
--scheduler flow_match_euler_discrete\
--use_habana \
--use_hpu_graphs \
--gaudi_config Habana/stable-diffusion \
--bf16output: |
|
eager: PT_HPU_LAZY_MODE=0 \
python text_to_image_generation.py \
--model_name_or_path black-forest-labs/FLUX.1-schnell \
--prompts "A cat holding a sign that says hello world" \
--num_images_per_prompt 1 \
--batch_size 1 \
--num_inference_steps 28 \
--image_save_dir /tmp/flux_1_images \
--scheduler flow_match_euler_discrete\
--use_habana \
--gaudi_config Habana/stable-diffusion \
--bf16output: PT_HPU_LAZY_MODE=0 \
python text_to_image_generation.py \
--model_name_or_path black-forest-labs/FLUX.1-schnell \
--prompts "A cat holding a sign that says hello world" \
--num_images_per_prompt 1 \
--batch_size 1 \
--num_inference_steps 4 \
--image_save_dir /tmp/flux_1_images \
--scheduler flow_match_euler_discrete\
--use_habana \
--gaudi_config Habana/stable-diffusion \
--bf16 |
Signed-off-by: Daniel Socek <daniel.socek@intel.com>
Signed-off-by: Daniel Socek <daniel.socek@intel.com>
|
@regisss please help to review this PR. 28 inference steps: |
ssarkar2
left a comment
There was a problem hiding this comment.
please delete measure_all_500, measure_all etc. binary files like npz needn't be uploaded
|
Performance With Batching Enabled:
|
@ssarkar2 removed, pls review again |
keep text_ids latent_image_ids split for diffuser 0.30.x
|
This work is inlcuded in #1450 @hsubramony @libinta @regisss |

What does this PR do?
adaption of diffuser.pipelines.FluxPipeline
Env:
Performance:
Fixes # (issue)
Before submitting