Skip to content

FLUX's inference speed is so slow #9095

@chenbinghui1

Description

@chenbinghui1

I run FLUX1.-dev on V100-32G GPU card, the inference code is like:
`
pipe = FluxPipeline.from_pretrained("checkpoints/FLUX.1-dev",
torch_dtype=torch.bfloat16,
low_cpu_mem_usage=True)
pipe.enable_model_cpu_offload()

image = pipe(
prompt,
height=1024,
width=1024,
guidance_scale=3.5,
output_type="np",
num_inference_steps=50,
max_sequence_length=512,
generator=generator
).images
`

the inference time costs nearly 7minutes:
image

is this normal? Does anyone meet this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions