Skip to content
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

[FeatureRequest] support FLUX.1 text to image model #916

Closed
mzbac opened this issue Aug 2, 2024 · 6 comments
Closed

[FeatureRequest] support FLUX.1 text to image model #916

mzbac opened this issue Aug 2, 2024 · 6 comments

Comments

@mzbac
Copy link
Contributor

mzbac commented Aug 2, 2024

It would be great if MLX supported the new FLUX.1 text-to-image model, as it seems to require a fairly large amount of VRAM to run ( would be advantage on Apple Silicon given unified memory). I don't have much experience with diffusion models, but I am happy to help in any way possible.

@mark-lord
Copy link

mark-lord commented Aug 2, 2024

Seconded! I managed to get Flux sort of working on my M1 Max using ComfyUI, but the speed was abysmal (presumably very unoptimised since the vast majority of the community is CUDA-based). Not to mention the output is unfortunately broken. A dedicated MLX implementation would be faster and, hopefully, not broken :)

[Edit: Eventually got it working, was a PyTorch issue as mentioned by Vargol]

@mzbac
Copy link
Contributor Author

mzbac commented Aug 4, 2024

Just found out DiffusionKit is already working on Flux. Hopefully, it will be supported soon
argmaxinc/DiffusionKit#11

@QueryType
Copy link

I too tried. And ran into issues.
comfyanonymous/ComfyUI#4165 (comment)

Seems we need to be patient.

@mgierschdev
Copy link

Following the topic too

@Vargol
Copy link

Vargol commented Aug 7, 2024

The ComfyUI noisy image issues are a PyTorch issue, and can be fixed by downgrading to PyTorch 2.3.1 or (according to one person, I've not tried it myself) upgrading to macOS 15 beta and a PyTorch Nightly, you get the same issue with Diffusers.

But +1 for a FLUX.1 MLX example

@mzbac mzbac closed this as completed Aug 16, 2024
@mzbac
Copy link
Contributor Author

mzbac commented Aug 16, 2024

Closed as supported by https://github.com/filipstrand/mflux and https://github.com/argmaxinc/DiffusionKit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants