Skip to content

Sage Attention 2 not work with Pytorch Compile #162

@pivtienduc

Description

@pivtienduc

Hi @jt-zhang

It seem that with the pytorch compile have not worked with the sage attention

I try to use just Flux basic ksampler workflow but get an full of noise image like this, the inference speed still increase but image is broken

Image

This is my comfyUI:

Image

When I turn off Sage Attention either pytorch cross attention or xformers, everything work fine:

Image

I already test many time with many ComfyUI version and pytorch version, reinstall ComfyUI many times the problem still persist

Anything involve with Sage Attention and Torch Compile will create a noise image

However someone who own RTX4000s series will not encouter this problem. My gpu is 3090, is it a hardware related ?

Please support us, thank you so much

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