Skip to content

Reproducibility improvement of SD generation with xFormers #1997

@takuma104

Description

@takuma104

I wrote a patch related to #1339. This patch makes xFormers use Flash Attention as a priority. More details to see: Generating (almost) reproducible pictures using Diffusers with xFormers

fig_xformers_flash_attention_seed_7

main...takuma104:diffusers:force_xformers_flash_attention

I would like to get some feedback.

  • Is it worth opening a PR?
  • I have put an argument to enable_xformers_memory_efficient_attention() to specify if this patch is enabled or not, is there a better way to specify it?
  • Any other advice?

Metadata

Metadata

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