Skip to content

with a custom attention processor for Flux.dev, inference time changes when manually load and inject the transformer model into a flux pipeline versus let the flux pipeline constructor load the transformer internally. #11607

Closed
@LinchuanXuTheSEAAI

Description

@LinchuanXuTheSEAAI

With a custom attention processor for Flux.dev transformer, the inference time is different between the following two ways:

  1. Manually load and inject the transformer into a flux.dev pipeline

  2. Let the pipeline constructor load the transformer internally

The inference time of the first way is about 15% slower than second way.
What is the reason?
I built diffusers from the source code.
Any insights are appreciated!

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