-
Notifications
You must be signed in to change notification settings - Fork 503
add support for flux2 klein #1193
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
Conversation
|
Currently, there are still some issues with the support for flux.2 klein. Padding needs to be applied during tokenization and |
|
So the |
|
It doesn’t work on my side. |
|
I think I’ve correctly fixed the attention_mask issue. |
Not sure about cfg, but they use Also they use (ref is 4b variants on hf) edit: cfg of 5 seems comparatively high for models that take larger llm embedding inputs. edit3: So cfg should be 1 for the distilled model. |
|
@leejet you talk about guidance scale, but your command only shows the cfg scale change. Or did you code the guidance scale? |
|
Oh and have you tried reference image(s) ? This is a clear advantage over eg z-image. |
guidance_scale in diffusers == --cfg-scale in sd.cpp |
Here I’m comparing the performance for T2I. Using a reference image means it’s image editing, which is a different task. Currently, z-image turbo does not support image editing. |
You are right, I did not know that.
Yes, I was asking because you did not show any examples yet. :) |
I’ve updated some examples of image editing. You can take a look. I think the overall quality of the image edits is pretty good. |




Flux.2 klein 4B
Flux.2 klein 9B
Flux.2 klein 4B edit
Flux.2 klein 9B edit