-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Script to merge Flux diffuser into 1 safetensor file #10137
Comments
You can load the model using |
@hlky Should we close this issue as PR is already raised for this ? |
Yes I will close it |
Typically issues are not closed until they are resolved i.e. by a PR merging. |
Actually I found another way to solve it so don't need this one anymore |
It would have been helpful to others if you had shared the solution you found here. Please take note that yours was uncooperative behavior, then reflect upon it before making future requests for help from the community. |
Hi @clort81, here's an example of from diffusers import DiffusionPipeline, FluxTransformer2DModel
pipeline = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell")
pipeline.save_pretrained("FLUX.1-schnell/", max_shard_size="30GB")
transformer = FluxTransformer2DModel.from_pretrained("black-forest-labs/FLUX.1-schnell", subfolder="transformer")
transformer.save_pretrained("FLUX.1-schnell/transformer/", max_shard_size="30GB") |
Hi everyone
I found Flux model which is split into 3 parts. So far I can't find any script to merge splitted parts of Flux model into one
Can anyone help me to do it
Thank in advance
The text was updated successfully, but these errors were encountered: