-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading Flux Dev transformers from_single_file fails since support for Flux Fill was added #10540
Comments
the bnb-nf4 checkpoint linked above is apparently not only the transformer - but it has the same problem anyway. Other affected transformer-only files can be found on CivitAI, or generated using this Comfy workflow: https://civitai.com/models/982277/flux-lora-merge |
@dxqbYD Do you have a link to a specific checkpoint that is failing to load that isn't a bnb NF4 checkpoint? |
Can confirm that this PR works on all my test cases, which are:
Thanks for your quick reaction! |
closing as fixed in #10545 |
Describe the bug
Flux models are sometimes distributed as transformer only, because all the other pipeline components are usually not changed.
Examples include:
finetunes on CivitAI, to offer a smaller download size
https://huggingface.co/lllyasviel/flux1-dev-bnb-nf4/tree/main
Since support for Flux Fill was added here 862a7d5,
diffusers.FluxTransformer2DModel.from_single_file
fails to load these files:Reproduction
Download one of the example mentioned above, and run
Logs
No response
System Info
HEAD
Who can help?
@DN6
The text was updated successfully, but these errors were encountered: