Skip to content

support SageAttention #11121

Closed
Closed
@a120092009

Description

@a120092009

Sage Attention provide low-bit quantization of attention. https://github.com/thu-ml/SageAttention

Seems like SageAttention supports plug-and-play way.. Will Diffusers plan to support sage attention by options?

import torch.nn.functional as F

+ from sageattention import sageattn
+ F.scaled_dot_product_attention = sageattn

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions