lllyasviel / lllyasviel/stable-diffusion-webui-forge

xformers is not working on flux model

Open
#1,019 1 comment 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

torch: 2.4.0+cu124

xformers: 0.0.27.post2

If xformers are enabled when generating images with flux models, TypeError: 'NoneType' object is not iterable error occurs and images are not generated

For other SD models, the image is created normally

To create an image with a flux model, you need to uninstall xformers.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Flux image generation with xformers enabled using torch 2.4.0+cu124 and xformers 0.0.27.post2, then inspect the traceback around the NoneType iteration. Done means Flux images generate with xformers enabled while other Stable Diffusion models continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.